com.jalios.rest.client
Class JcmsApp

java.lang.Object
  extended by com.jalios.rest.client.JcmsApp
All Implemented Interfaces:
JcmsRestConstants

public class JcmsApp
extends Object
implements JcmsRestConstants


Field Summary
 
Fields inherited from interface com.jalios.rest.client.JcmsRestConstants
HTTP_HEADERS, METHOD_OVERRIDE_HTTP_HEADER, UTS_ADMIN, UTS_DATA_PARAM, UTS_DATATYPE_ITEM, UTS_DATATYPE_LIST, UTS_MEMBER_ITEM, UTS_MEMBERS_LIST, UTS_SEARCH, UTS_WORKFLOWS, UTS_WORKFLOWS_ITEM
 
Constructor Summary
JcmsApp(ClientSession session)
           
 
Method Summary
 JcmsResource createData(String dataTypeClassShortName, org.restlet.data.Form fields)
          Create a data of type given by the dataTypeClassShortName and the values set in the form fields.
 JcmsResource createData(String dataTypeClassShortName, org.restlet.data.Form fields, Authentication forcedAuthentication)
          Create a data of type given by the dataTypeClassShortName and the values set in the form fields.
 JcmsResource deleteData(org.restlet.data.Reference dataRef)
           
 JcmsResource deleteData(org.restlet.data.Reference dataRef, Authentication forcedAuthentication)
           
 JcmsResource deleteData(String dataId)
           
 JcmsResource deleteData(String dataId, Authentication forcedAuthentication)
           
 JcmsResource disableDataWrite(String msg)
           
 JcmsResource disableDataWrite(String msg, Authentication forcedAuthentication)
           
 JcmsResource enableDataWrite(String msg)
           
 JcmsResource enableDataWrite(String msg, Authentication forcedAuthentication)
           
 JcmsResource getAdminStatus()
           
 JcmsResource getAdminStatus(Authentication forcedAuthentication)
           
 String getAdminStatusPath()
           
 JcmsResource getAllDataType()
           
 JcmsResource getAllDataType(Authentication forcedAuthentication)
           
 String getAllDataTypePath()
           
 JcmsResource getAllWorkflows()
           
 JcmsResource getAllWorkflows(Authentication forcedAuthentication)
           
 String getAllWorkflowsPath()
           
 String getCreateDataPath(String dataTypeClassShortName)
           
 JcmsResource getData(String dataId)
          Send a request to find a data with a given JCMS id.
 JcmsResource getData(String dataId, Authentication forcedAuthentication)
          Send a request to find a data with a given JCMS id.
 String getDataPath(String dataId)
          Construct the URI for a data, given its JCMS id.
 JcmsResource getDataType(String typeshortclassname)
           
 JcmsResource getDataType(String typeshortclassname, Authentication forcedAuthentication)
           
 String getDataTypePath(String typeshortclassname)
           
 JcmsResource getMember(String login)
           
 JcmsResource getMember(String login, Authentication forcedAuthentication)
           
 JcmsResource getMemberList()
           
 JcmsResource getMemberList(Authentication forcedAuthentication)
           
 String getMemberListPath()
           
 String getMemberPath(String login)
           
 String getSearchPath()
           
 ClientSession getSession()
           
 JcmsResource getWorkflow(String wfId)
           
 JcmsResource getWorkflow(String wfId, Authentication forcedAuthentication)
           
 String getWorkflowPath(String wfId)
           
 JcmsResource importDataFromSource(String importSourceId)
           
 JcmsResource importDataFromSource(String importSourceId, Authentication forcedAuthentication)
           
 JcmsResource search(org.restlet.data.Form fields)
           
 JcmsResource search(org.restlet.data.Form fields, Authentication forcedAuthentication)
           
 JcmsResource updateData(org.restlet.data.Reference dataRef, org.restlet.data.Form fields)
           
 JcmsResource updateData(org.restlet.data.Reference dataRef, org.restlet.data.Form fields, Authentication forcedAuthentication)
           
 JcmsResource updateData(String dataId, org.restlet.data.Form fields)
           
 JcmsResource updateData(String dataId, org.restlet.data.Form fields, Authentication forcedAuthentication)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcmsApp

public JcmsApp(ClientSession session)
Method Detail

getSession

public ClientSession getSession()

getDataPath

public String getDataPath(String dataId)
Construct the URI for a data, given its JCMS id.

Parameters:
dataId - the JCMS id
Returns:
the path.

getData

public JcmsResource getData(String dataId)
                     throws RestException
Send a request to find a data with a given JCMS id.

Parameters:
dataId - the JCMS id
Returns:
the resource
Throws:
RestException

getData

public JcmsResource getData(String dataId,
                            Authentication forcedAuthentication)
                     throws RestException
Send a request to find a data with a given JCMS id.

Parameters:
dataId - the JCMS id
forcedAuthentication - possible specific authentication for this request
Returns:
the resource
Throws:
RestException

getSearchPath

public String getSearchPath()

search

public JcmsResource search(org.restlet.data.Form fields)
                    throws RestException
Throws:
RestException

search

public JcmsResource search(org.restlet.data.Form fields,
                           Authentication forcedAuthentication)
                    throws RestException
Throws:
RestException

getMemberListPath

public String getMemberListPath()

getMemberList

public JcmsResource getMemberList()
                           throws RestException
Throws:
RestException

getMemberList

public JcmsResource getMemberList(Authentication forcedAuthentication)
                           throws RestException
Throws:
RestException

getMemberPath

public String getMemberPath(String login)

getMember

public JcmsResource getMember(String login)
                       throws RestException
Throws:
RestException

getMember

public JcmsResource getMember(String login,
                              Authentication forcedAuthentication)
                       throws RestException
Throws:
RestException

getDataTypePath

public String getDataTypePath(String typeshortclassname)

getDataType

public JcmsResource getDataType(String typeshortclassname)
                         throws RestException
Throws:
RestException

getDataType

public JcmsResource getDataType(String typeshortclassname,
                                Authentication forcedAuthentication)
                         throws RestException
Throws:
RestException

getAllDataTypePath

public String getAllDataTypePath()

getAllDataType

public JcmsResource getAllDataType()
                            throws RestException
Throws:
RestException

getAllDataType

public JcmsResource getAllDataType(Authentication forcedAuthentication)
                            throws RestException
Throws:
RestException

getAllWorkflowsPath

public String getAllWorkflowsPath()

getAllWorkflows

public JcmsResource getAllWorkflows()
                             throws RestException
Throws:
RestException

getAllWorkflows

public JcmsResource getAllWorkflows(Authentication forcedAuthentication)
                             throws RestException
Throws:
RestException

getWorkflowPath

public String getWorkflowPath(String wfId)

getWorkflow

public JcmsResource getWorkflow(String wfId)
                         throws RestException
Throws:
RestException

getWorkflow

public JcmsResource getWorkflow(String wfId,
                                Authentication forcedAuthentication)
                         throws RestException
Throws:
RestException

getAdminStatusPath

public String getAdminStatusPath()

getAdminStatus

public JcmsResource getAdminStatus()
                            throws RestException
Throws:
RestException

getAdminStatus

public JcmsResource getAdminStatus(Authentication forcedAuthentication)
                            throws RestException
Throws:
RestException

getCreateDataPath

public String getCreateDataPath(String dataTypeClassShortName)

createData

public JcmsResource createData(String dataTypeClassShortName,
                               org.restlet.data.Form fields)
Create a data of type given by the dataTypeClassShortName and the values set in the form fields.

Parameters:
dataTypeClassShortName - type of the data to be created
fields - values to create the new data

createData

public JcmsResource createData(String dataTypeClassShortName,
                               org.restlet.data.Form fields,
                               Authentication forcedAuthentication)
Create a data of type given by the dataTypeClassShortName and the values set in the form fields.

Parameters:
dataTypeClassShortName - type of the data to be created
fields - values to create the new data
forcedAuthentication - possible authenticatio nto use for this request

updateData

public JcmsResource updateData(String dataId,
                               org.restlet.data.Form fields)

updateData

public JcmsResource updateData(org.restlet.data.Reference dataRef,
                               org.restlet.data.Form fields)

updateData

public JcmsResource updateData(String dataId,
                               org.restlet.data.Form fields,
                               Authentication forcedAuthentication)

updateData

public JcmsResource updateData(org.restlet.data.Reference dataRef,
                               org.restlet.data.Form fields,
                               Authentication forcedAuthentication)

deleteData

public JcmsResource deleteData(String dataId)

deleteData

public JcmsResource deleteData(org.restlet.data.Reference dataRef)

deleteData

public JcmsResource deleteData(String dataId,
                               Authentication forcedAuthentication)

deleteData

public JcmsResource deleteData(org.restlet.data.Reference dataRef,
                               Authentication forcedAuthentication)

disableDataWrite

public JcmsResource disableDataWrite(String msg)

disableDataWrite

public JcmsResource disableDataWrite(String msg,
                                     Authentication forcedAuthentication)

enableDataWrite

public JcmsResource enableDataWrite(String msg)

enableDataWrite

public JcmsResource enableDataWrite(String msg,
                                    Authentication forcedAuthentication)

importDataFromSource

public JcmsResource importDataFromSource(String importSourceId)

importDataFromSource

public JcmsResource importDataFromSource(String importSourceId,
                                         Authentication forcedAuthentication)


Copyright © 2001-2007 Jalios SA. All Rights Reserved.