|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Resource
com.jalios.jcms.rest.JcmsRestResource
com.jalios.jcms.rest.resources.AdminResource
public class AdminResource
Implementation of a JcmsResource, used with GET method to return a represention of the channel through REST (actually, the result of statusXml.jsp). Action are possible with POST method : - disableDataWrite : to disable data write; - enableDataWrite : to enable data write.
Field Summary |
---|
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 |
---|
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_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 | |
---|---|
AdminResource(org.restlet.Context context,
org.restlet.data.Request request,
org.restlet.data.Response response)
|
Method Summary | |
---|---|
boolean |
allowPost()
|
void |
doPost(String action,
org.restlet.data.Form requestEntityForm)
Handle POST requests: stopWrite/startWrite. |
protected String |
getItemXmlRepresentation(Object item)
|
Methods inherited from class com.jalios.jcms.rest.JcmsRestResource |
---|
checkReadRight, delete, doDelete, doPost, doPut, doStat, forward, generateErrorRepresentation, getAtomRepresentation, getJSONRepresentation, getLoggedMember, getPlainTextRepresentation, getRepresentation, getXmlProlog, getXmlRepresentation, insertAfterXml, insertBeforeXml, post, put, setXmlUTF8Encoding |
Methods inherited from class org.restlet.resource.Resource |
---|
allowDelete, allowGet, allowPut, 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 |
---|
public AdminResource(org.restlet.Context context, org.restlet.data.Request request, org.restlet.data.Response response)
Method Detail |
---|
protected String getItemXmlRepresentation(Object item)
getItemXmlRepresentation
in class JcmsRestResource
public boolean allowPost()
allowPost
in class org.restlet.resource.Resource
public void doPost(String action, org.restlet.data.Form requestEntityForm)
doPost
in class JcmsRestResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |