org.exoplatform.wcm.extensions.component.rest
Class LifecycleConnector

java.lang.Object
  extended by org.exoplatform.wcm.extensions.component.rest.LifecycleConnector
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class LifecycleConnector
extends java.lang.Object
implements org.exoplatform.services.rest.resource.ResourceContainer

Return a list of content during a given state range of the publication lifecycle.


Constructor Summary
LifecycleConnector()
           
 
Method Summary
 javax.ws.rs.core.Response byDate(java.lang.String fromstate, java.lang.String date, java.lang.String lang, java.lang.String workspace, java.lang.String json)
          Return a list of content from the given beginning to published state and before the given date.
 javax.ws.rs.core.Response byState(java.lang.String fromstate, java.lang.String user, java.lang.String lang, java.lang.String workspace, java.lang.String json)
          Return a list of content from a given to the last state.
 javax.ws.rs.core.Response toState(java.lang.String fromstate, java.lang.String tostate, java.lang.String user, java.lang.String lang, java.lang.String workspace, java.lang.String json)
          Return a list of content from the beginning to the last state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleConnector

public LifecycleConnector()
Method Detail

byState

public javax.ws.rs.core.Response byState(java.lang.String fromstate,
                                         java.lang.String user,
                                         java.lang.String lang,
                                         java.lang.String workspace,
                                         java.lang.String json)
                                  throws java.lang.Exception
Return a list of content from a given to the last state. For example: http://localhost:8080/ecmdemo/rest-ecmdemo/authoring/bystate/?fromstate =draft&user=root&lang=en&workspace=collaboration

Parameters:
fromstate - The beginning state of the content.
user - The author of the content.
lang - The language of the content.
workspace - The workspace name which contains the content.
json - The format of the returned data.
path -
Returns:
Throws:
java.lang.Exception

toState

public javax.ws.rs.core.Response toState(java.lang.String fromstate,
                                         java.lang.String tostate,
                                         java.lang.String user,
                                         java.lang.String lang,
                                         java.lang.String workspace,
                                         java.lang.String json)
                                  throws java.lang.Exception
Return a list of content from the beginning to the last state. For example: http://localhost:8080/ecmdemo/rest-ecmdemo/authoring/tostate/?fromstate =draft&tostate=pending&user=root&lang=en&workspace=collaboration

Parameters:
fromstate - The beginning state of the content.
tostate - The destination state of the content.
user - The author of the content.
lang - The language of the content.
workspace - The workspace name which contains the content.
json - The format of the returned data.
path -
Returns:
Throws:
java.lang.Exception

byDate

public javax.ws.rs.core.Response byDate(java.lang.String fromstate,
                                        java.lang.String date,
                                        java.lang.String lang,
                                        java.lang.String workspace,
                                        java.lang.String json)
                                 throws java.lang.Exception
Return a list of content from the given beginning to published state and before the given date. For example: http://localhost:8080/ecmdemo/rest-ecmdemo/authoring/bydate/?fromstate =staged&date=2&lang=en&workspace=collaboration

Parameters:
fromstate - The beginning state of the content.
date - The date before when the content is published.
workspace - The workspace name which contains the content.
lang - The language of the content.
json - The format of the returned data.
path -
Returns:
Throws:
java.lang.Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.