public interface WCMPublicationService
| Modifier and Type | Field and Description |
|---|---|
static String |
UPDATE_EVENT |
| Modifier and Type | Method and Description |
|---|---|
void |
addPublicationPlugin(WebpagePublicationPlugin p)
Add a Web Publication Plugin to the service.
|
void |
enrollNodeInLifecycle(javax.jcr.Node node,
String lifecycleName)
Enroll in a web page publication lifecycle.
|
void |
enrollNodeInLifecycle(javax.jcr.Node node,
String siteName,
String remoteUser)
Enroll this node in the default publication lifecycle.
|
String |
getContentState(javax.jcr.Node node)
returns the current state of the content.
|
Map<String,WebpagePublicationPlugin> |
getWebpagePublicationPlugins()
Retrieves all added web page publication plugins.
|
boolean |
isEnrolledInWCMLifecycle(javax.jcr.Node node)
Checks if is enrolled in wcm lifecycle.
|
void |
unsubcribeLifecycle(javax.jcr.Node node)
Unsubcribe node from a lifecycle plugin.
|
void |
updateLifecyleOnChangeContent(javax.jcr.Node node,
String siteName,
String remoteUser)
Called by create and edit listeners.
|
void |
updateLifecyleOnChangeContent(javax.jcr.Node node,
String siteName,
String remoteUser,
String newState)
It allows to update the lifecycle of the content with a new state.
|
static final String UPDATE_EVENT
void addPublicationPlugin(WebpagePublicationPlugin p)
p - the plugin to addMap<String,WebpagePublicationPlugin> getWebpagePublicationPlugins()
boolean isEnrolledInWCMLifecycle(javax.jcr.Node node)
throws NotInPublicationLifecycleException,
Exception
node - the nodeNotInPublicationLifecycleException - the not in publication lifecycle exceptionException - the exceptionvoid enrollNodeInLifecycle(javax.jcr.Node node,
String lifecycleName)
throws Exception
node - the nodelifecycleName - the lifecycle nameException - the exceptionvoid enrollNodeInLifecycle(javax.jcr.Node node,
String siteName,
String remoteUser)
throws Exception
node - siteName - remoteUser - Exceptionvoid unsubcribeLifecycle(javax.jcr.Node node)
throws NotInPublicationLifecycleException,
Exception
node - the nodeNotInPublicationLifecycleException - the not in publication lifecycle exceptionException - the exceptionvoid updateLifecyleOnChangeContent(javax.jcr.Node node,
String siteName,
String remoteUser)
throws Exception
node - siteName - remoteUser - ExceptionPostCreateContentEventListener,
PostEditContentEventListenervoid updateLifecyleOnChangeContent(javax.jcr.Node node,
String siteName,
String remoteUser,
String newState)
throws Exception
node - siteName - remoteUser - newState - ExceptionString getContentState(javax.jcr.Node node) throws Exception
node - ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.