public interface PublicationManager
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.
|
org.exoplatform.services.wcm.extensions.publication.context.impl.ContextConfig.Context |
getContext(String name)
Gets a context by a given name.
|
List<org.exoplatform.services.wcm.extensions.publication.context.impl.ContextConfig.Context> |
getContexts()
Gets all contexts.
|
org.exoplatform.services.wcm.extensions.publication.lifecycle.impl.LifecyclesConfig.Lifecycle |
getLifecycle(String name)
Gets a lifecycle by a given name.
|
List<org.exoplatform.services.wcm.extensions.publication.lifecycle.impl.LifecyclesConfig.Lifecycle> |
getLifecycles()
Gets all lifecycles.
|
List<org.exoplatform.services.wcm.extensions.publication.lifecycle.impl.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 addLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
plugin
- The component plugin that defines the lifecycle.void removeLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
plugin
- The component plugin that defines the lifecycle.void addContext(org.exoplatform.container.component.ComponentPlugin plugin)
plugin
- The component plugin that defines the context.void removeContext(org.exoplatform.container.component.ComponentPlugin plugin)
plugin
- The component plugin that defines the context.List<org.exoplatform.services.wcm.extensions.publication.lifecycle.impl.LifecyclesConfig.Lifecycle> getLifecycles()
List<org.exoplatform.services.wcm.extensions.publication.context.impl.ContextConfig.Context> getContexts()
org.exoplatform.services.wcm.extensions.publication.context.impl.ContextConfig.Context getContext(String name)
name
- Name of the context.org.exoplatform.services.wcm.extensions.publication.lifecycle.impl.LifecyclesConfig.Lifecycle getLifecycle(String name)
List<org.exoplatform.services.wcm.extensions.publication.lifecycle.impl.LifecyclesConfig.Lifecycle> getLifecyclesFromUser(String remoteUser, String state)
remoteUser
- The given user.state
- The specified state by which all lifecycles are got.List<javax.jcr.Node> getContents(String fromstate, String tostate, String date, String user, String lang, String workspace) throws Exception
fromstate
- 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.Exception
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.