Class PublicationManagerImpl
- java.lang.Object
-
- org.exoplatform.services.wcm.extensions.publication.impl.PublicationManagerImpl
-
- All Implemented Interfaces:
PublicationManager,org.picocontainer.Startable
public class PublicationManagerImpl extends Object implements PublicationManager, org.picocontainer.Startable
PublicationManager is to manage the publication.
-
-
Constructor Summary
Constructors Constructor Description PublicationManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContext(org.exoplatform.container.component.ComponentPlugin plugin)Adds definitions of a context to the publication plugin.voidaddLifecycle(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.ContextgetContext(String name)Gets a context by a given name.List<ContextConfig.Context>getContexts()Gets all contexts.LifecyclesConfig.LifecyclegetLifecycle(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.voidremoveContext(org.exoplatform.container.component.ComponentPlugin plugin)Removes definitions of a context from the publication plugin.voidremoveLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)Removes definitions of a lifecycle from the publication plugin.voidstart()voidstop()
-
-
-
Method Detail
-
addLifecycle
public void addLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface:PublicationManagerAdds definitions of a lifecycle to the publication plugin.- Specified by:
addLifecyclein interfacePublicationManager- Parameters:
plugin- The component plugin that defines the lifecycle.
-
removeLifecycle
public void removeLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface:PublicationManagerRemoves definitions of a lifecycle from the publication plugin.- Specified by:
removeLifecyclein interfacePublicationManager- Parameters:
plugin- The component plugin that defines the lifecycle.
-
addContext
public void addContext(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface:PublicationManagerAdds definitions of a context to the publication plugin.- Specified by:
addContextin interfacePublicationManager- Parameters:
plugin- The component plugin that defines the context.
-
removeContext
public void removeContext(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface:PublicationManagerRemoves definitions of a context from the publication plugin.- Specified by:
removeContextin interfacePublicationManager- Parameters:
plugin- The component plugin that defines the context.
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
getContext
public ContextConfig.Context getContext(String name)
Description copied from interface:PublicationManagerGets a context by a given name.- Specified by:
getContextin interfacePublicationManager- Parameters:
name- Name of the context.- Returns:
- The context.
-
getContexts
public List<ContextConfig.Context> getContexts()
Description copied from interface:PublicationManagerGets all contexts.- Specified by:
getContextsin interfacePublicationManager- Returns:
- The list of contexts.
-
getLifecycle
public LifecyclesConfig.Lifecycle getLifecycle(String name)
Description copied from interface:PublicationManagerGets a lifecycle by a given name.- Specified by:
getLifecyclein interfacePublicationManager- Returns:
- The lifecycle.
-
getLifecycles
public List<LifecyclesConfig.Lifecycle> getLifecycles()
Description copied from interface:PublicationManagerGets all lifecycles.- Specified by:
getLifecyclesin interfacePublicationManager- Returns:
- The list of lifecycles.
-
getLifecyclesFromUser
public List<LifecyclesConfig.Lifecycle> getLifecyclesFromUser(String remoteUser, String state)
Description copied from interface:PublicationManagerGets all lifecycles of a user by a specified state.- Specified by:
getLifecyclesFromUserin interfacePublicationManager- Parameters:
remoteUser- The given user.state- The specified state by which all lifecycles are got.- Returns:
- The list of lifecycles.
-
getContents
public List<javax.jcr.Node> getContents(String fromstate, String tostate, String date, String user, String lang, String workspace) throws Exception
Description copied from interface:PublicationManagerGets all content nodes.- Specified by:
getContentsin interfacePublicationManager- Parameters:
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.- Returns:
- The list of content nodes.
- Throws:
Exception
-
-