Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.spaces.webobject
Class SpacesModuleRoot

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
              extended by 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.

Constructor Summary
SpacesModuleRoot()
           
 
Method Summary
 Object doGet()
          Default view ( index.ftl ) - Lists all available universes.
 Object doGetUnivers(String universeName)
          Load a particular universe from its name with spaces API.
 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.ModuleRoot
getLink, getSkinResource
 
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

SpacesModuleRoot

public SpacesModuleRoot()
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.