Class 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 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
      • 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