org.nuxeo.opensocial.spaces.webobject
Class SpacesModuleRoot
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
org.nuxeo.opensocial.spaces.webobject.SpacesModuleRoot
- All Implemented Interfaces:
- ModuleResource, Resource, Adaptable
public class SpacesModuleRoot
- extends ModuleRoot
JAX-RS Root Resource class specialized for WebEngine
- Author:
- 10044893.
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 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 |
SpacesModuleRoot
public SpacesModuleRoot()
getUniversList
public List<Univers> getUniversList()
throws SpaceException,
Exception
- Throws:
SpaceException
Exception
doGet
public Object doGet()
- Default view ( index.ftl ) - Lists all available universes.
doGetUnivers
public Object doGetUnivers(String universeName)
- Load a particular universe from its name with spaces API. Redirect to
sub-resources UniversDocumentObject indirectly
handleError
public javax.ws.rs.core.Response handleError(javax.ws.rs.WebApplicationException e)
- Exception handler
- Specified by:
handleError
in interface ModuleResource
- Overrides:
handleError
in class ModuleRoot
Copyright © 2011 Nuxeo SAS. All Rights Reserved.