Class OperationResource
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultObject
-
- org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource
-
- org.nuxeo.ecm.automation.server.jaxrs.OperationResource
-
public class OperationResource extends ExecutableResource
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected OperationTypetype-
Fields inherited from class org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource
request, response, service, session
-
Fields inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
ctx, next, path, prev
-
-
Constructor Summary
Constructors Constructor Description OperationResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoGet()ObjectdoGetYaml()protected static StringentityType(Class<?> clazz)Objectexecute(ExecutionRequest xreq)StringgetId()protected voidinitialize(Object... args)booleanisChain()-
Methods inherited from class org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource
createContext, doPost
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
-
-
-
Field Detail
-
type
protected OperationType type
-
-
Method Detail
-
initialize
protected void initialize(Object... args)
- Overrides:
initializein classAbstractResource<ResourceTypeImpl>
-
doGet
public Object doGet() throws OperationException
- Throws:
OperationException
-
doGetYaml
public Object doGetYaml() throws OperationException
- Throws:
OperationException
-
execute
public Object execute(ExecutionRequest xreq) throws OperationException
- Specified by:
executein classExecutableResource- Throws:
OperationException
-
getId
public String getId()
- Specified by:
getIdin classExecutableResource
-
isChain
public boolean isChain()
- Specified by:
isChainin classExecutableResource
-
-