public class TreeHelper extends Object
Emails and Mail envelopes are created within trees of folder.
Modifier and Type | Field and Description |
---|---|
static String |
DELETED_STATE |
static String |
TITLE_PROPERTY_NAME |
Constructor and Description |
---|
TreeHelper() |
Modifier and Type | Method and 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 hierarchy
|
static DocumentModel |
getOrCreatePath(CoreSession session,
DocumentModel root,
String subPath,
String folderType) |
public static final String TITLE_PROPERTY_NAME
public static final String DELETED_STATE
public TreeHelper()
public static DocumentModel getOrCreateDateTreeFolder(CoreSession session, DocumentModel root, Date date, String folderType)
public static DocumentModel getOrCreatePath(CoreSession session, DocumentModel root, String subPath, String folderType)
public static DocumentModel getOrCreate(CoreSession session, String rootPath, String id, String folderType)
Copyright © 2015 Nuxeo SA. All rights reserved.