Class ModuleRoot
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultObject
org.nuxeo.ecm.webengine.model.impl.ModuleRoot
- All Implemented Interfaces:
ModuleResource,Resource,Adaptable
- Direct Known Subclasses:
APIRoot,AutomationResource,ConnectClientRoot,EasyShare,Main,Main,OAuth2Callback,RootResource,RootResource,SCIMRoot,Test,UserInvitationObject,WOPIRoot
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.servlet.http.HttpServletRequestprotected com.sun.jersey.server.impl.inject.ServerInjectableProviderContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLink(DocumentModel doc) You should override this method to resolve objects to links.javax.ws.rs.core.ResponsegetSkinResource(String path) voidsetContext(com.sun.jersey.api.core.HttpContext hc) Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapterMethods 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, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapterMethods inherited from interface org.nuxeo.ecm.webengine.model.Resource
checkGuard, dispose, getActiveAdapter, 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
-
Field Details
-
request
@Context protected javax.servlet.http.HttpServletRequest request -
sic
@Context protected com.sun.jersey.server.impl.inject.ServerInjectableProviderContext sic
-
-
Constructor Details
-
ModuleRoot
public ModuleRoot()
-
-
Method Details
-
setContext
@Context public void setContext(com.sun.jersey.api.core.HttpContext hc) -
getSkinResource
-
getLink
You should override this method to resolve objects to links. This method is usually called by a search view to generate links for object that are listed- Specified by:
getLinkin interfaceModuleResource- Parameters:
doc- the document- Returns:
- the link corresponding to that object
-
handleError
- Specified by:
handleErrorin interfaceModuleResource
-