public abstract class JcmsRestResource extends org.restlet.resource.Resource implements RestConstants, MashupConstants
Modifier and Type | Field and Description |
---|---|
protected Channel |
channel |
protected org.restlet.Context |
context |
protected org.restlet.data.Form |
formQueryString |
protected javax.servlet.http.HttpServletRequest |
j2eeRequest |
protected JcmsContext |
jcmsContext |
protected PagerData |
pagerData |
protected java.lang.String |
queryString |
protected java.lang.String |
xmlEncoding |
CSRF_HEADER_NAME, 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_LOCK, UTS_MEMBER_ITEM, UTS_SEARCH, UTS_UNLOCK, UTS_WORKFLOWS, UTS_WORKFLOWS_ITEM
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 and Description |
---|
JcmsRestResource(org.restlet.Context context,
org.restlet.data.Request request,
org.restlet.data.Response response) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkReadRight(Data theData)
Check if the given Data may be read by the logged Member.
|
void |
delete() |
protected void |
doDelete() |
protected void |
doPost(org.restlet.resource.Representation entity) |
protected void |
doPost(java.lang.String action,
org.restlet.data.Form requestEntityForm) |
protected void |
doPut(org.restlet.resource.Representation entity) |
protected void |
doStat() |
protected void |
forward(java.lang.String path) |
protected void |
generateErrorRepresentation(java.lang.String errorMessage,
java.lang.String applicationErrorCode,
org.restlet.data.Status httpStatus,
org.restlet.data.Response response)
Generate an XML representation of an error response.
|
protected java.lang.String |
getAtomRepresentation() |
protected java.lang.String |
getItemXmlRepresentation(java.lang.Object item) |
protected java.lang.String |
getJSONRepresentation() |
protected Member |
getLoggedMember() |
protected java.lang.String |
getPlainTextRepresentation() |
org.restlet.resource.Representation |
getRepresentation(org.restlet.resource.Variant variant) |
java.lang.String |
getXmlProlog() |
protected java.lang.String |
getXmlRepresentation() |
protected java.lang.String |
insertAfterXml() |
protected java.lang.String |
insertBeforeXml() |
void |
post(org.restlet.resource.Representation entity) |
void |
put(org.restlet.resource.Representation entity) |
void |
setXmlUTF8Encoding() |
allowDelete, allowGet, allowPost, allowPut, generateRef, getContext, getLogger, getPreferredRepresentation, getPreferredVariant, getRequest, getResponse, getVariants, handleDelete, handleGet, handleHead, handleOptions, handlePost, handlePut, init, isNegotiateContent, setContext, setNegotiateContent, setRequest, setResponse
protected Channel channel
protected javax.servlet.http.HttpServletRequest j2eeRequest
protected JcmsContext jcmsContext
protected java.lang.String xmlEncoding
protected PagerData pagerData
protected java.lang.String queryString
protected org.restlet.data.Form formQueryString
protected org.restlet.Context context
public JcmsRestResource(org.restlet.Context context, org.restlet.data.Request request, org.restlet.data.Response response)
protected Member getLoggedMember()
protected void forward(java.lang.String path)
public java.lang.String getXmlProlog()
public void setXmlUTF8Encoding()
public final org.restlet.resource.Representation getRepresentation(org.restlet.resource.Variant variant)
getRepresentation
in class org.restlet.resource.Resource
protected java.lang.String getXmlRepresentation()
protected java.lang.String getItemXmlRepresentation(java.lang.Object item)
protected java.lang.String insertBeforeXml()
protected java.lang.String insertAfterXml()
protected java.lang.String getPlainTextRepresentation()
protected java.lang.String getJSONRepresentation()
protected java.lang.String getAtomRepresentation()
protected void generateErrorRepresentation(java.lang.String errorMessage, java.lang.String applicationErrorCode, org.restlet.data.Status httpStatus, org.restlet.data.Response response)
errorMessage
- the error message.applicationErrorCode
- the error code.httpStatus
- the HTTP statusresponse
- the responseprotected void doStat()
public final void post(org.restlet.resource.Representation entity)
post
in class org.restlet.resource.Resource
protected void doPost(org.restlet.resource.Representation entity)
protected void doPost(java.lang.String action, org.restlet.data.Form requestEntityForm)
public final void put(org.restlet.resource.Representation entity)
put
in class org.restlet.resource.Resource
protected void doPut(org.restlet.resource.Representation entity)
public final void delete()
delete
in class org.restlet.resource.Resource
protected void doDelete()
protected boolean checkReadRight(Data theData)
theData
- the dataCopyright © 2001-2010 Jalios SA. All Rights Reserved.