Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.model.impl
Class ModuleRoot

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
      extended by org.nuxeo.ecm.webengine.model.impl.DefaultObject
          extended by org.nuxeo.ecm.webengine.model.impl.ModuleRoot
All Implemented Interfaces:
ModuleResource, Resource, Adaptable
Direct Known Subclasses:
ConnectClientRoot, GwtResource, Main, Main, Main, Main, Main, Main, ManagementModule, SamplesRoot, Shell, Sites, Test

public class ModuleRoot
extends DefaultObject
implements ModuleResource

Author:
Bogdan Stefanescu

Constructor Summary
ModuleRoot()
           
 
Method Summary
 String getLink(DocumentModel doc)
          You should override this method to resolve objects to links.
 Response getSkinResource(String path)
           
 Object handleError(WebApplicationException e)
           
 void setHttpHeaders(HttpHeaders headers)
           
 void setHttpRequest(HttpServletRequest request)
           
 void setUriInfo(UriInfo info)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods 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
 
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
 

Constructor Detail

ModuleRoot

public ModuleRoot()
Method Detail

setUriInfo

@Context
public void setUriInfo(UriInfo info)

setHttpHeaders

@Context
public void setHttpHeaders(HttpHeaders headers)

setHttpRequest

@Context
public void setHttpRequest(HttpServletRequest request)

getSkinResource

public Response getSkinResource(String path)

getLink

public String getLink(DocumentModel doc)
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:
getLink in interface ModuleResource
Parameters:
doc - the document
Returns:
the link corresponding to that object

handleError

public Object handleError(WebApplicationException e)
Specified by:
handleError in interface ModuleResource

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.