public class WCMComposerImpl extends Object implements WCMComposer, org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
static String |
EXO_RESTORELOCATION |
BASE_VERSION, FILTER_LANGUAGE, FILTER_LIMIT, FILTER_MODE, FILTER_OFFSET, FILTER_ORDER_BY, FILTER_ORDER_TYPE, FILTER_PRIMARY_TYPE, FILTER_QUERY, FILTER_QUERY_FULL, FILTER_RECURSIVE, FILTER_REMOTE_USER, FILTER_SITE_NAME, FILTER_STATE, FILTER_TOTAL, FILTER_VERSION, FILTER_VISIBILITY, IS_RECURSIVE, MODE_EDIT, MODE_LIVE, PORTLET_MODE, VISIBILITY_PUBLIC, VISIBILITY_USER| Constructor and Description |
|---|
WCMComposerImpl(org.exoplatform.container.xml.InitParams params)
Instantiates a new WCM composer impl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanTemplates()
Resets the template filters.
|
List<String> |
getAllowedStates(String mode)
We currently support 2 modes :
MODE_LIVE : PUBLISHED state only
MODE_EDIT : PUBLISHED, DRAFT, PENDING, STAGED, APPROVED allowed.
|
List<javax.jcr.Node> |
getCategories(javax.jcr.Node node) |
javax.jcr.Node |
getContent(String workspace,
String nodeIdentifier,
HashMap<String,String> filters,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Gets a content node at a specified path based on given filters.
|
List<javax.jcr.Node> |
getContents(String workspace,
String path,
HashMap<String,String> filters,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Gets content nodes at a specified path based on given filters.
|
Result |
getPaginatedContents(NodeLocation nodeLocation,
HashMap<String,String> filters,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Gets content nodes that are paginated at a specified path based on given filters.
|
List<String> |
getUsedLanguages() |
List<String> |
getUsedOrderBy() |
List<String> |
getUsedPrimaryTypes() |
void |
start() |
void |
stop() |
String |
updateTemplatesSQLFilter()
Update all document nodetypes and write a query statement
|
public static final String EXO_RESTORELOCATION
public javax.jcr.Node getContent(String workspace, String nodeIdentifier, HashMap<String,String> filters, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
WCMComposergetContent in interface WCMComposerworkspace - The workspace that includes the content node.nodeIdentifier - Identifier of the content node.filters - The given filters.sessionProvider - The session provider.Exception - The exceptionpublic List<javax.jcr.Node> getContents(String workspace, String path, HashMap<String,String> filters, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
WCMComposergetContents in interface WCMComposerworkspace - The workspace that includes the content nodes.path - The path.filters - The given filters.sessionProvider - The session provider.Exception - The exceptionpublic Result getPaginatedContents(NodeLocation nodeLocation, HashMap<String,String> filters, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
WCMComposergetPaginatedContents in interface WCMComposernodeLocation - Location of the content nodes.filters - The given filters.sessionProvider - The session provider.Exception - The exceptionpublic List<javax.jcr.Node> getCategories(javax.jcr.Node node) throws Exception
Exceptionpublic List<String> getAllowedStates(String mode)
getAllowedStates in interface WCMComposermode - the current mode (MODE_LIVE or MODE_EDIT)public void cleanTemplates()
throws Exception
WCMComposercleanTemplates in interface WCMComposerException - the exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic String updateTemplatesSQLFilter()
updateTemplatesSQLFilter in interface WCMComposerCopyright © 2003–2019 eXo Platform SAS. All rights reserved.