Class TreeHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.core.persistence.TreeHelper
-
public class TreeHelper extends Object
Helper to create tree structure based on dateEmails and Mail envelopes are created within trees of folder.
- Author:
- Anahide Tchertchian
-
-
Field Summary
Fields Modifier and Type Field Description static String
DELETED_STATE
Deprecated.since 10.3, useTrashService
insteadstatic String
TITLE_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description TreeHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentModel
getOrCreate(CoreSession session, String rootPath, String id, String folderType)
static DocumentModel
getOrCreateDateTreeFolder(CoreSession session, DocumentModel root, Date date, String folderType)
Find or create a set of folders representing the date hierarchystatic DocumentModel
getOrCreatePath(CoreSession session, DocumentModel root, String subPath, String folderType)
-
-
-
Field Detail
-
TITLE_PROPERTY_NAME
public static final String TITLE_PROPERTY_NAME
- See Also:
- Constant Field Values
-
DELETED_STATE
@Deprecated public static final String DELETED_STATE
Deprecated.since 10.3, useTrashService
instead- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TreeHelper
public TreeHelper()
-
-
Method Detail
-
getOrCreateDateTreeFolder
public static DocumentModel getOrCreateDateTreeFolder(CoreSession session, DocumentModel root, Date date, String folderType)
Find or create a set of folders representing the date hierarchy- Returns:
- the last child created (day)
-
getOrCreatePath
public static DocumentModel getOrCreatePath(CoreSession session, DocumentModel root, String subPath, String folderType)
-
getOrCreate
public static DocumentModel getOrCreate(CoreSession session, String rootPath, String id, String folderType)
-
-