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 OperationType
type
-
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 Object
doGet()
Object
doGetYaml()
protected static String
entityType(Class<?> clazz)
Object
execute(ExecutionRequest xreq)
String
getId()
protected void
initialize(Object... args)
boolean
isChain()
-
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:
initialize
in 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:
execute
in classExecutableResource
- Throws:
OperationException
-
getId
public String getId()
- Specified by:
getId
in classExecutableResource
-
isChain
public boolean isChain()
- Specified by:
isChain
in classExecutableResource
-
-