org.exoplatform.services.wcm.extensions.publication.impl
Class PublicationManagerImpl

java.lang.Object
  extended by 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
PublicationManagerImpl()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicationManagerImpl

public PublicationManagerImpl()
Method Detail

addLifecycle

public void addLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface: PublicationManager
Adds definitions of a lifecycle to the publication plugin.

Specified by:
addLifecycle in interface PublicationManager
Parameters:
plugin - The component plugin that defines the lifecycle.

removeLifecycle

public void removeLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface: PublicationManager
Removes definitions of a lifecycle from the publication plugin.

Specified by:
removeLifecycle in interface PublicationManager
Parameters:
plugin - The component plugin that defines the lifecycle.

addContext

public void addContext(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface: PublicationManager
Adds definitions of a context to the publication plugin.

Specified by:
addContext in interface PublicationManager
Parameters:
plugin - The component plugin that defines the context.

removeContext

public void removeContext(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface: PublicationManager
Removes definitions of a context from the publication plugin.

Specified by:
removeContext in interface PublicationManager
Parameters:
plugin - The component plugin that defines the context.

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable

getContext

public ContextConfig.Context getContext(String name)
Description copied from interface: PublicationManager
Gets a context by a given name.

Specified by:
getContext in interface PublicationManager
Parameters:
name - Name of the context.
Returns:
The context.

getContexts

public List<ContextConfig.Context> getContexts()
Description copied from interface: PublicationManager
Gets all contexts.

Specified by:
getContexts in interface PublicationManager
Returns:
The list of contexts.

getLifecycle

public LifecyclesConfig.Lifecycle getLifecycle(String name)
Description copied from interface: PublicationManager
Gets a lifecycle by a given name.

Specified by:
getLifecycle in interface PublicationManager
Returns:
The lifecycle.

getLifecycles

public List<LifecyclesConfig.Lifecycle> getLifecycles()
Description copied from interface: PublicationManager
Gets all lifecycles.

Specified by:
getLifecycles in interface PublicationManager
Returns:
The list of lifecycles.

getLifecyclesFromUser

public List<LifecyclesConfig.Lifecycle> getLifecyclesFromUser(String remoteUser,
                                                              String state)
Description copied from interface: PublicationManager
Gets all lifecycles of a user by a specified state.

Specified by:
getLifecyclesFromUser in interface PublicationManager
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: PublicationManager
Gets all content nodes.

Specified by:
getContents in interface PublicationManager
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


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.