Class DocResource
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.automation.server.jaxrs.doc.DocResource
-
public class DocResource extends AbstractResource<ResourceTypeImpl>
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected List<OperationDocumentation>
ops
protected AutomationService
service
-
Constructor Summary
Constructors Constructor Description DocResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canManageTraces()
Object
doGet(String id, String browse)
String
doGetTrace(String opId)
Object
doGetWiki()
String[]
getInputs(OperationDocumentation op)
String
getInputsAsString(OperationDocumentation op)
String[]
getOutputs(OperationDocumentation op)
String
getOutputsAsString(OperationDocumentation op)
String
getParamDefaultValue(OperationDocumentation.Param param)
protected Template
getTemplateFor(String browse)
protected Template
getTemplateView(String name)
boolean
hasOperation(OperationDocumentation op)
void
initialize(Object... args)
boolean
isTraceEnabled()
Object
toggleStackDisplay()
Object
toggleTraces()
-
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, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
-
-
-
Field Detail
-
service
protected AutomationService service
-
ops
protected List<OperationDocumentation> ops
-
-
Constructor Detail
-
DocResource
public DocResource()
-
-
Method Detail
-
initialize
public void initialize(Object... args)
- Overrides:
initialize
in classAbstractResource<ResourceTypeImpl>
-
getTemplateFor
protected Template getTemplateFor(String browse)
-
getTemplateView
protected Template getTemplateView(String name)
-
canManageTraces
protected boolean canManageTraces()
-
isTraceEnabled
public boolean isTraceEnabled()
-
toggleTraces
public Object toggleTraces()
-
toggleStackDisplay
public Object toggleStackDisplay()
-
doGetTrace
public String doGetTrace(String opId)
-
getInputs
public String[] getInputs(OperationDocumentation op)
-
getOutputs
public String[] getOutputs(OperationDocumentation op)
-
getInputsAsString
public String getInputsAsString(OperationDocumentation op)
-
getOutputsAsString
public String getOutputsAsString(OperationDocumentation op)
-
getParamDefaultValue
public String getParamDefaultValue(OperationDocumentation.Param param)
-
hasOperation
public boolean hasOperation(OperationDocumentation op)
-
-