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)
          Add publication plugin context to the publication service.
 void addLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
          Add publication plugin to the publication service.
 List<javax.jcr.Node> getContents(String fromstate, String tostate, String date, String user, String lang, String workspace)
          Get all the nodes.
 ContextConfig.Context getContext(String name)
          Get a specific context with the given names.
 List<ContextConfig.Context> getContexts()
          Get all the contexts which were added to service instances.
 LifecyclesConfig.Lifecycle getLifecycle(String name)
          Get a specific lifecycle with the given name.
 List<LifecyclesConfig.Lifecycle> getLifecycles()
          Get all the lifecycles which were added to service instances.
 List<LifecyclesConfig.Lifecycle> getLifecyclesFromUser(String remoteUser, String state)
          Get all the Lifecycle of a specific user.
 void removeContext(org.exoplatform.container.component.ComponentPlugin plugin)
          Remove publication plugin context from the publication service.
 void removeLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
          Remove publication plugin from the publication service.
 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
Add publication plugin to the publication service.

Specified by:
addLifecycle in interface PublicationManager
Parameters:
plugin - The Lifecycle as component plugin to add.

removeLifecycle

public void removeLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface: PublicationManager
Remove publication plugin from the publication service.

Specified by:
removeLifecycle in interface PublicationManager
Parameters:
plugin - The Lifecycle as component plugin to remove.

addContext

public void addContext(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface: PublicationManager
Add publication plugin context to the publication service.

Specified by:
addContext in interface PublicationManager
Parameters:
plugin - The Context as component plugin to add.

removeContext

public void removeContext(org.exoplatform.container.component.ComponentPlugin plugin)
Description copied from interface: PublicationManager
Remove publication plugin context from the publication service.

Specified by:
removeContext in interface PublicationManager
Parameters:
plugin - The Context as component plugin to remove.

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
Get a specific context with the given names.

Specified by:
getContext in interface PublicationManager
Parameters:
name - The name of the wanted lifecycle.
Returns:
Context

getContexts

public List<ContextConfig.Context> getContexts()
Description copied from interface: PublicationManager
Get all the contexts which were added to service instances.

Specified by:
getContexts in interface PublicationManager
Returns:
List

getLifecycle

public LifecyclesConfig.Lifecycle getLifecycle(String name)
Description copied from interface: PublicationManager
Get a specific lifecycle with the given name.

Specified by:
getLifecycle in interface PublicationManager
Returns:
Lifecycle

getLifecycles

public List<LifecyclesConfig.Lifecycle> getLifecycles()
Description copied from interface: PublicationManager
Get all the lifecycles which were added to service instances.

Specified by:
getLifecycles in interface PublicationManager
Returns:
List

getLifecyclesFromUser

public List<LifecyclesConfig.Lifecycle> getLifecyclesFromUser(String remoteUser,
                                                              String state)
Description copied from interface: PublicationManager
Get all the Lifecycle of a specific user.

Specified by:
getLifecyclesFromUser in interface PublicationManager
Parameters:
remoteUser - The current user of publication service.
state - The current state of the node.
Returns:
List

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
Get all the nodes.

Specified by:
getContents in interface PublicationManager
Parameters:
fromstate - The current range state of node.
tostate - The current range state of node.
date - The date of the node.
user - The last user of node.
lang - The node's language.
workspace - The Workspace of the node's location.
Returns:
List
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.