Class ResourceWebScriptDelete
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.alfresco.rest.framework.webscripts.ApiWebScript
org.alfresco.rest.framework.webscripts.AbstractResourceWebScript
org.alfresco.rest.framework.webscripts.ResourceWebScriptDelete
- All Implemented Interfaces:
HttpMethodSupport,ActionExecutor,RecognizedParamsExtractor,ResponseWriter,ParamsExtractor,org.springframework.extensions.webscripts.WebScript
public class ResourceWebScriptDelete
extends AbstractResourceWebScript
implements ParamsExtractor, RecognizedParamsExtractor
Handles the HTTP DELETE for a Resource
- Author:
- Gethin James
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails -
Field Summary
Fields inherited from class org.alfresco.rest.framework.webscripts.AbstractResourceWebScript
helper, locatorFields inherited from class org.alfresco.rest.framework.webscripts.ApiWebScript
assistant, encryptTempFiles, maxContentSize, memoryThreshold, streamFactory, tempDirectoryName, transactionServiceFields inherited from interface org.alfresco.rest.framework.tools.RecognizedParamsExtractor
KNOWN_PARAMS, PARAM_FILTER_FIELDS, PARAM_FILTER_PROPERTIES, PARAM_INCLUDE, PARAM_INCLUDE_SOURCE_ENTITY, PARAM_ORDERBY, PARAM_PAGING_MAX, PARAM_PAGING_SKIP, PARAM_RELATIONS, PARAM_SELECT, PARAM_WHEREFields inherited from interface org.alfresco.rest.framework.tools.ResponseWriter
CACHE_NEVER, DEFAULT_JSON_CONTENT, DEFAULT_SUCCESS, UTF8 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ResourceWithMetadata resource, Params params, org.springframework.extensions.webscripts.WebScriptResponse res, boolean isReadOnly) executeAction(ResourceWithMetadata resource, Params params, WithResponse withResponse) Executes the action on the resourceextractParams(ResourceMetadata resourceMeta, org.springframework.extensions.webscripts.WebScriptRequest req) Methods inherited from class org.alfresco.rest.framework.webscripts.AbstractResourceWebScript
execute, getHttpMethod, getTransactionHelper, resetRequest, setHelper, setHttpMethod, setLocator, setParamsExtractor, setStreamer, streamResponseMethods inherited from class org.alfresco.rest.framework.webscripts.ApiWebScript
execute, getRequest, getResponse, init, setAssistant, setEncryptTempFiles, setMaxContentSize, setMemoryThreshold, setStreamFactory, setTempDirectoryName, setTransactionServiceMethods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.rest.framework.core.HttpMethodSupport
getHttpMethodMethods inherited from interface org.alfresco.rest.framework.tools.RecognizedParamsExtractor
findPaging, getClause, getFilter, getFilter, getIncludeClause, getPaging, getRecognizedParams, getRelationFilter, getRequestParameters, getSelectClause, getSort, getWhereClause, rpeLoggerMethods inherited from interface org.alfresco.rest.framework.tools.ResponseWriter
renderErrorResponse, renderException, renderJsonResponse, resWriterLogger, setContentInfoOnResponse, setResponse, setResponse
-
Constructor Details
-
ResourceWebScriptDelete
public ResourceWebScriptDelete()
-
-
Method Details
-
extractParams
public Params extractParams(ResourceMetadata resourceMeta, org.springframework.extensions.webscripts.WebScriptRequest req) - Specified by:
extractParamsin interfaceParamsExtractor
-
executeAction
public Object executeAction(ResourceWithMetadata resource, Params params, WithResponse withResponse) Executes the action on the resource- Specified by:
executeActionin interfaceActionExecutor- Parameters:
resource- ResourceWithMetadataparams- parameters to use- Returns:
- anObject the result of the execute
-
execute
public Void execute(ResourceWithMetadata resource, Params params, org.springframework.extensions.webscripts.WebScriptResponse res, boolean isReadOnly) - Overrides:
executein classAbstractResourceWebScript
-