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.
Method Summary |
java.lang.Object |
doGet()
Default view ( index.ftl ) - Lists all available universes. |
java.lang.Object |
doGetUnivers(java.lang.String universeName)
Load a particular universe from its name with spaces API. |
java.util.List<Univers> |
getUniversList()
|
javax.ws.rs.core.Response |
handleError(javax.ws.rs.WebApplicationException e)
Exception handler |
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 |
SpacesModuleRoot
public SpacesModuleRoot()
getUniversList
public java.util.List<Univers> getUniversList()
throws SpaceException,
java.lang.Exception
- Throws:
SpaceException
java.lang.Exception
doGet
public java.lang.Object doGet()
- Default view ( index.ftl ) - Lists all available universes.
doGetUnivers
public java.lang.Object doGetUnivers(java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.