com.jalios.jcms.rest.resources
Class DataResource

java.lang.Object
  extended by org.restlet.resource.Resource
      extended by com.jalios.jcms.rest.JcmsRestResource
          extended by com.jalios.jcms.rest.DataRestResource
              extended by com.jalios.jcms.rest.DataCollectionRestResource
                  extended by com.jalios.jcms.rest.resources.DataResource
All Implemented Interfaces:
MashupConstants, RestConstants

public class DataResource
extends DataCollectionRestResource

Rest Resource for Data management. Give a way to access and modify data through REST.

Since:
JCMS-6.0
Author:
dissert

Field Summary
 
Fields inherited from class com.jalios.jcms.rest.DataRestResource
data, relateds
 
Fields inherited from class com.jalios.jcms.rest.JcmsRestResource
channel, context, formQueryString, j2eeRequest, jcmsContext, pagerData, queryString, xmlEncoding
 
Fields inherited from interface com.jalios.jcms.rest.RestConstants
HTTP_HEADERS, METHOD_OVERRIDE_HTTP_HEADER, SERVER_REQUEST_HTTP_HEADER_PREFIX, UTS_ADMIN, UTS_DATA_CHILDREN, UTS_DATA_PARAM, UTS_DATATYPE_ITEM, UTS_DATATYPE_LIST, UTS_DOC, UTS_MEMBER_ITEM, UTS_SEARCH, UTS_WORKFLOWS, UTS_WORKFLOWS_ITEM
 
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG, REVISION
 
Constructor Summary
DataResource(org.restlet.Context context, org.restlet.data.Request request, org.restlet.data.Response response)
           
 
Method Summary
 boolean allowDelete()
           
 boolean allowPost()
           
 boolean allowPut()
           
 void doDelete()
          Handle DELETE requests: delete current pub item.
 void doPost(org.restlet.resource.Representation entity)
          Handle POST requests: create pub item with given dataType.
 void doPut(org.restlet.resource.Representation entity)
          Handle PUT requests: modify current pub item.
 
Methods inherited from class com.jalios.jcms.rest.DataCollectionRestResource
getItemXmlRepresentation
 
Methods inherited from class com.jalios.jcms.rest.JcmsRestResource
checkReadRight, delete, doPost, doStat, forward, generateErrorRepresentation, getAtomRepresentation, getJSONRepresentation, getLoggedMember, getPlainTextRepresentation, getRepresentation, getXmlProlog, getXmlRepresentation, insertAfterXml, insertBeforeXml, post, put, setXmlUTF8Encoding
 
Methods inherited from class org.restlet.resource.Resource
allowGet, generateRef, getContext, getLogger, getPreferredRepresentation, getPreferredVariant, getRequest, getResponse, getVariants, handleDelete, handleGet, handleHead, handleOptions, handlePost, handlePut, init, isNegotiateContent, setContext, setNegotiateContent, setRequest, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataResource

public DataResource(org.restlet.Context context,
                    org.restlet.data.Request request,
                    org.restlet.data.Response response)
Method Detail

allowPost

public boolean allowPost()
Overrides:
allowPost in class org.restlet.resource.Resource

allowPut

public boolean allowPut()
Overrides:
allowPut in class org.restlet.resource.Resource

allowDelete

public boolean allowDelete()
Overrides:
allowDelete in class org.restlet.resource.Resource

doPost

public void doPost(org.restlet.resource.Representation entity)
Handle POST requests: create pub item with given dataType.

Overrides:
doPost in class JcmsRestResource

doPut

public void doPut(org.restlet.resource.Representation entity)
Handle PUT requests: modify current pub item.

Overrides:
doPut in class JcmsRestResource

doDelete

public void doDelete()
Handle DELETE requests: delete current pub item.

Overrides:
doDelete in class JcmsRestResource


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