public class PublicationManagerImpl extends Object implements PublicationManager, org.picocontainer.Startable
| Constructor and Description |
|---|
PublicationManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContext(org.exoplatform.container.component.ComponentPlugin plugin)
Adds definitions of a context to the publication plugin.
|
void |
addLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Adds definitions of a lifecycle to the publication plugin.
|
List<javax.jcr.Node> |
getContents(String fromstate,
String tostate,
String date,
String user,
String lang,
String workspace)
Gets all content nodes.
|
ContextConfig.Context |
getContext(String name)
Gets a context by a given name.
|
List<ContextConfig.Context> |
getContexts()
Gets all contexts.
|
LifecyclesConfig.Lifecycle |
getLifecycle(String name)
Gets a lifecycle by a given name.
|
List<LifecyclesConfig.Lifecycle> |
getLifecycles()
Gets all lifecycles.
|
List<LifecyclesConfig.Lifecycle> |
getLifecyclesFromUser(String remoteUser,
String state)
Gets all lifecycles of a user by a specified state.
|
void |
removeContext(org.exoplatform.container.component.ComponentPlugin plugin)
Removes definitions of a context from the publication plugin.
|
void |
removeLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Removes definitions of a lifecycle from the publication plugin.
|
void |
start() |
void |
stop() |
public void addLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
PublicationManageraddLifecycle in interface PublicationManagerplugin - The component plugin that defines the lifecycle.public void removeLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
PublicationManagerremoveLifecycle in interface PublicationManagerplugin - The component plugin that defines the lifecycle.public void addContext(org.exoplatform.container.component.ComponentPlugin plugin)
PublicationManageraddContext in interface PublicationManagerplugin - The component plugin that defines the context.public void removeContext(org.exoplatform.container.component.ComponentPlugin plugin)
PublicationManagerremoveContext in interface PublicationManagerplugin - The component plugin that defines the context.public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic ContextConfig.Context getContext(String name)
PublicationManagergetContext in interface PublicationManagername - Name of the context.public List<ContextConfig.Context> getContexts()
PublicationManagergetContexts in interface PublicationManagerpublic LifecyclesConfig.Lifecycle getLifecycle(String name)
PublicationManagergetLifecycle in interface PublicationManagerpublic List<LifecyclesConfig.Lifecycle> getLifecycles()
PublicationManagergetLifecycles in interface PublicationManagerpublic List<LifecyclesConfig.Lifecycle> getLifecyclesFromUser(String remoteUser, String state)
PublicationManagergetLifecyclesFromUser in interface PublicationManagerremoteUser - The given user.state - The specified state by which all lifecycles are got.public List<javax.jcr.Node> getContents(String fromstate, String tostate, String date, String user, String lang, String workspace) throws Exception
PublicationManagergetContents in interface PublicationManagerfromstate - The current state of the content.tostate - The state by which lifecycles are retrieved from a user.date - Any given date.
The publication dates of returned content nodes are smaller than this given date.user - The last user who changes the state.lang - Language of the content nodes.workspace - The workspace where content nodes are got.ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.