PublicationService to manage the publication

|| *Method* || *Return* || *Prototype* || *Description* ||
| *addLifecycle* | {{void}} | {{addLifecycle(ComponentPlugin plugin); }} |  Adds plugins context for the publication service. |
| *getLifecycle* | {{Lifecycle}} | {{Lifecycle getLifecycle(String name) ; }} | Gets a specific lifecycle with the given name. {example}{example} @param name: The name of the wanted lifecycle.|
| *getLifecycles* | {{List<Lifecycle>}} | {{List<Lifecycle> getLifecycles(); }} | Gets all the lifecycles which were added to service instances. |
| *getContext* | {{Context}} | {{Context getContext(String name) ; }} | Gets a specific context with the given names. |
| *getContexts* | {{List<Context>}} | {{List<Context> getContexts();}} | Gets all the contexts which were added to service instances. |
| *getContents* | {{List<Node>}} | {{List<Node> getContents(String fromstate, String tostate, String date, String user, String lang , String workspace) throws Exception; }} | Gets all the node.{example}{example}@param fromstate/tostate: the current range state of node.{example}{example}@param user: The last user of node.{example}{example}@param lang: the node's language.{example}{example}@param workspace: the Workspace of the node's location. |
| *getLifecyclesFromUser* | {{List<Lyfecycle>}} | {{List<Lyfecycle> getLifecyclesFromUser(String remoteUser, String state);}} | Gets all the Lifecycle of a specific user. {example}{example} @param remoteUser: the current user of publication service.{example}{example}@param state: The current state of the node. |
