public class LifecycleConnector extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
LifecycleConnector() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
byDate(String fromstate,
String date,
String lang,
String workspace,
String json)
Returns a list of content from the given beginning state to the published state and before the given date.
|
javax.ws.rs.core.Response |
byState(String fromstate,
String user,
String lang,
String workspace,
String json)
Returns a list of content from the beginning state.
|
javax.ws.rs.core.Response |
toState(String fromstate,
String tostate,
String user,
String lang,
String workspace,
String json)
Returns a list of content from the beginning state to the last state.
|
public javax.ws.rs.core.Response byState(String fromstate, String user, String lang, String workspace, String json) throws Exception
For example: http://localhost:8080/portal/rest/authoring/bystate/?fromstate
=draft&user=root&lang=en&workspace=collaboration
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.Exception - The exceptionpublic javax.ws.rs.core.Response toState(String fromstate, String tostate, String user, String lang, String workspace, String json) throws Exception
For example: http://localhost:8080/portal/rest/authoring/tostate/?fromstate
=draft&tostate=pending&user=root&lang=en&workspace=collaboration
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.Exception - The exceptionpublic javax.ws.rs.core.Response byDate(String fromstate, String date, String lang, String workspace, String json) throws Exception
For example: http://localhost:8080/portal/rest/authoring/bydate/?fromstate
=staged&date=2&lang=en&workspace=collaboration
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.Exception - The exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.