@Name(value="adminPublishActions") @Scope(value=CONVERSATION) public class AdministrationPublishActions extends AbstractPublishActions implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
currentSectionRootId |
static String |
PUBLICATION_TREE_PLUGIN_NAME |
protected RootSectionFinder |
rootFinder |
protected RootSectionsManager |
rootSectionsManager |
protected DocumentModelList |
sectionRoots |
protected DocumentTreeNode |
sectionsTree |
protected TreeManager |
treeManager |
documentManager, messages, navigationContext
Constructor and Description |
---|
AdministrationPublishActions() |
Modifier and Type | Method and Description |
---|---|
String |
addSection(String sectionId) |
boolean |
canAddSection(DocumentModel section) |
void |
create() |
protected static String |
formatPathFragments(List<String> pathFragments) |
String |
getCurrentSectionRootId() |
List<DocumentTreeNode> |
getCurrentSectionsTree() |
protected DocumentTreeNode |
getDocumentTreeNode(DocumentModel documentModel) |
String |
getDomainNameFor(DocumentModel sectionRoot) |
protected DocumentModel |
getParentDocument(DocumentModel documentModel) |
protected RootSectionFinder |
getRootFinder() |
DocumentModelList |
getSectionRoots() |
DocumentModelList |
getSelectedSections() |
protected TreeManager |
getTreeManager() |
String |
removeSection(String sectionId) |
void |
setCurrentSectionRootId(String currentSectionRootId) |
getFormattedPath, getPathFragments, isDomain
public static final String PUBLICATION_TREE_PLUGIN_NAME
protected transient RootSectionFinder rootFinder
protected transient RootSectionsManager rootSectionsManager
protected transient TreeManager treeManager
protected DocumentTreeNode sectionsTree
protected DocumentModelList sectionRoots
protected String currentSectionRootId
public AdministrationPublishActions()
@Create public void create()
@Factory(value="defaultPublishingRoots", scope=EVENT) public DocumentModelList getSectionRoots()
protected RootSectionFinder getRootFinder()
public String getCurrentSectionRootId()
public List<DocumentTreeNode> getCurrentSectionsTree()
public void setCurrentSectionRootId(String currentSectionRootId)
public String getDomainNameFor(DocumentModel sectionRoot)
protected DocumentTreeNode getDocumentTreeNode(DocumentModel documentModel)
protected TreeManager getTreeManager()
public boolean canAddSection(DocumentModel section)
public String addSection(String sectionId)
public DocumentModelList getSelectedSections()
public String removeSection(String sectionId)
protected static String formatPathFragments(List<String> pathFragments)
protected DocumentModel getParentDocument(DocumentModel documentModel)
getParentDocument
in class AbstractPublishActions
Copyright © 2018 Nuxeo. All rights reserved.