public abstract class PublicationPlugin
extends org.exoplatform.container.component.BaseComponentPlugin
| Constructor and Description |
|---|
PublicationPlugin() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addMixin(javax.jcr.Node node)
Add the specific plugin mixin to the node.
|
abstract boolean |
canAddMixin(javax.jcr.Node node)
Return if the plugin can add the specific mixin for the publication.
|
abstract void |
changeState(javax.jcr.Node node,
String newState,
HashMap<String,String> context)
Change the state of the specified Node.
|
String |
getLifecycleName()
Retrieves the lifecycleName.
|
abstract String |
getLocalizedAndSubstituteMessage(Locale locale,
String key,
String[] values)
Get localized log messages and substitute variables.
|
String |
getNodeLifecycleDesc(javax.jcr.Node node)
Retrieves the description of the plugin.
|
abstract javax.jcr.Node |
getNodeView(javax.jcr.Node node,
Map<String,Object> context)
Retrieves a node view of the specific node in a context
|
abstract String[] |
getPossibleStates()
Retrieves all possible states in the publication lifecycle.
|
abstract byte[] |
getStateImage(javax.jcr.Node node,
Locale locale)
Retrieves an image showing the lifecycle state of the specified Node.
|
abstract org.exoplatform.webui.form.UIForm |
getStateUI(javax.jcr.Node node,
org.exoplatform.webui.core.UIComponent component)
Retrieves the WebUI form corresponding to the current state of the
specified node.
|
abstract String |
getUserInfo(javax.jcr.Node node,
Locale locale)
Retrieves description information explaining to the user the current
publication state of the specified Node.
|
public abstract String[] getPossibleStates()
public abstract void changeState(javax.jcr.Node node,
String newState,
HashMap<String,String> context)
throws IncorrectStateUpdateLifecycleException,
Exception
node - the Node whose state needs to be changednewState - the new state.context - a Hashmap containing contextual information needed
to change the state. The information set is defined on a State basis.IncorrectStateUpdateLifecycleException - if the update is not
allowedException - the exceptionpublic abstract org.exoplatform.webui.form.UIForm getStateUI(javax.jcr.Node node,
org.exoplatform.webui.core.UIComponent component)
throws Exception
node - the Node from which the state UI should be retrievedcomponent - the componentException - the exceptionpublic abstract byte[] getStateImage(javax.jcr.Node node,
Locale locale)
throws IOException,
FileNotFoundException,
Exception
node - the node from which the image should be obtainedlocale - the localeIOException - Signals that an I/O exception has occurred.FileNotFoundException - the file not found exceptionException - the exceptionpublic abstract String getUserInfo(javax.jcr.Node node, Locale locale) throws Exception
node - the node from which the publication state should be retrievedlocale - the localeException - the exceptionpublic String getLifecycleName()
public String getNodeLifecycleDesc(javax.jcr.Node node)
node - the nodepublic abstract boolean canAddMixin(javax.jcr.Node node)
throws Exception
node - the node to add the mixinException - the exceptionpublic abstract void addMixin(javax.jcr.Node node)
throws Exception
node - the nodeException - the exceptionpublic abstract javax.jcr.Node getNodeView(javax.jcr.Node node,
Map<String,Object> context)
throws Exception
node - the nodecontext - the contextException - the exceptionpublic abstract String getLocalizedAndSubstituteMessage(Locale locale, String key, String[] values) throws Exception
locale - : the locale to usekey - : the key to translatevalues - : array of string to susbtitute in the stringExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.