Class RootSectionsManager
- java.lang.Object
-
- org.nuxeo.ecm.platform.publisher.helper.RootSectionsManager
-
public class RootSectionsManager extends Object
- Author:
- Thomas Roger
-
-
Field Summary
Fields Modifier and Type Field Description protected CoreSession
coreSession
static String
SCHEMA_PUBLISHING
protected static String
SECTION_ROOT_DOCUMENT_TYPE
static String
SECTIONS_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description RootSectionsManager(CoreSession coreSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addSection(String sectionId, DocumentModel currentDocument)
boolean
canAddSection(DocumentModel section, DocumentModel currentDocument)
String
removeSection(String sectionId, DocumentModel currentDocument)
-
-
-
Field Detail
-
SCHEMA_PUBLISHING
public static final String SCHEMA_PUBLISHING
- See Also:
- Constant Field Values
-
SECTIONS_PROPERTY_NAME
public static final String SECTIONS_PROPERTY_NAME
- See Also:
- Constant Field Values
-
SECTION_ROOT_DOCUMENT_TYPE
protected static final String SECTION_ROOT_DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
coreSession
protected CoreSession coreSession
-
-
Constructor Detail
-
RootSectionsManager
public RootSectionsManager(CoreSession coreSession)
-
-
Method Detail
-
canAddSection
public boolean canAddSection(DocumentModel section, DocumentModel currentDocument)
-
addSection
public String addSection(String sectionId, DocumentModel currentDocument)
-
removeSection
public String removeSection(String sectionId, DocumentModel currentDocument)
-
-