org.exoplatform.services.wcm.extensions.publication
Interface PublicationManager

All Known Implementing Classes:
PublicationManagerImpl

public interface PublicationManager

PublicationManager is to manage the publication.


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.
 

Method Detail

addLifecycle

void addLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Add publication plugin to the publication service.

Parameters:
plugin - The Lifecycle as component plugin to add.

removeLifecycle

void removeLifecycle(org.exoplatform.container.component.ComponentPlugin plugin)
Remove publication plugin from the publication service.

Parameters:
plugin - The Lifecycle as component plugin to remove.

addContext

void addContext(org.exoplatform.container.component.ComponentPlugin plugin)
Add publication plugin context to the publication service.

Parameters:
plugin - The Context as component plugin to add.

removeContext

void removeContext(org.exoplatform.container.component.ComponentPlugin plugin)
Remove publication plugin context from the publication service.

Parameters:
plugin - The Context as component plugin to remove.

getLifecycles

List<LifecyclesConfig.Lifecycle> getLifecycles()
Get all the lifecycles which were added to service instances.

Returns:
List

getContexts

List<ContextConfig.Context> getContexts()
Get all the contexts which were added to service instances.

Returns:
List

getContext

ContextConfig.Context getContext(String name)
Get a specific context with the given names.

Parameters:
name - The name of the wanted lifecycle.
Returns:
Context

getLifecycle

LifecyclesConfig.Lifecycle getLifecycle(String name)
Get a specific lifecycle with the given name.

Returns:
Lifecycle

getLifecyclesFromUser

List<LifecyclesConfig.Lifecycle> getLifecyclesFromUser(String remoteUser,
                                                       String state)
Get all the Lifecycle of a specific user.

Parameters:
remoteUser - The current user of publication service.
state - The current state of the node.
Returns:
List

getContents

List<javax.jcr.Node> getContents(String fromstate,
                                 String tostate,
                                 String date,
                                 String user,
                                 String lang,
                                 String workspace)
                                 throws Exception
Get all the nodes.

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.