org.sakaiproject.entitybroker.rest
Class EntityBrokerRESTServiceManager

java.lang.Object
  extended by org.sakaiproject.entitybroker.rest.EntityBrokerRESTServiceManager

public class EntityBrokerRESTServiceManager
extends Object

This creates all the needed services (as if it were a service manager), this will let us create the services we need without too much confusion and ensure we are using the same ones
If this is used then the services should not be created in some other way but should be initiated here and then exported from this class only

Author:
Aaron Zeckoski (azeckoski @ gmail.com)

Constructor Summary
protected EntityBrokerRESTServiceManager()
           
  EntityBrokerRESTServiceManager(EntityBrokerManager entityBrokerManager)
          Base constructor
  EntityBrokerRESTServiceManager(EntityBrokerManager entityBrokerManager, HttpServletAccessProviderManager httpServletAccessProviderManager)
          Full constructor
 
Method Summary
 void destroy()
          Shuts down all services and cleans up
 EntityActionsManager getEntityActionsManager()
           
 EntityBatchHandler getEntityBatchHandler()
           
 EntityDescriptionManager getEntityDescriptionManager()
           
 EntityEncodingManager getEntityEncodingManager()
           
 EntityRedirectsManager getEntityRedirectsManager()
           
 EntityHandlerImpl getEntityRequestHandler()
           
 EntityRESTProviderBase getEntityRESTProvider()
           
static EntityBrokerRESTServiceManager getInstance()
           
 void init()
          WARNING: If you use the non-empty constructors to make this object then do not run this, it has already been run and should not be run a second time
Startup all the REST services for the EB system, this can only be run after this is constructed with a full constructor or the setEntityBrokerManager(EntityBrokerManager) method has been called (i.e. all the required services are set)
 void setEntityBrokerManager(EntityBrokerManager entityBrokerManager)
           
static void setInstance(EntityBrokerRESTServiceManager ersm)
           
 void shutdown()
          Shutdown the services (just calls over to destroy)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityBrokerRESTServiceManager

protected EntityBrokerRESTServiceManager()

EntityBrokerRESTServiceManager

public EntityBrokerRESTServiceManager(EntityBrokerManager entityBrokerManager)
Base constructor

Parameters:
entityBrokerManager - the main entity broker manager service

EntityBrokerRESTServiceManager

public EntityBrokerRESTServiceManager(EntityBrokerManager entityBrokerManager,
                                      HttpServletAccessProviderManager httpServletAccessProviderManager)
Full constructor

Parameters:
entityBrokerManager - the main entity broker manager service
httpServletAccessProviderManager - (optional)
Method Detail

getInstance

public static EntityBrokerRESTServiceManager getInstance()

setInstance

public static void setInstance(EntityBrokerRESTServiceManager ersm)

setEntityBrokerManager

public void setEntityBrokerManager(EntityBrokerManager entityBrokerManager)

init

public void init()
WARNING: If you use the non-empty constructors to make this object then do not run this, it has already been run and should not be run a second time
Startup all the REST services for the EB system, this can only be run after this is constructed with a full constructor or the setEntityBrokerManager(EntityBrokerManager) method has been called (i.e. all the required services are set)


shutdown

public void shutdown()
Shutdown the services (just calls over to destroy)


destroy

public void destroy()
Shuts down all services and cleans up


getEntityActionsManager

public EntityActionsManager getEntityActionsManager()

getEntityDescriptionManager

public EntityDescriptionManager getEntityDescriptionManager()

getEntityEncodingManager

public EntityEncodingManager getEntityEncodingManager()

getEntityRedirectsManager

public EntityRedirectsManager getEntityRedirectsManager()

getEntityRequestHandler

public EntityHandlerImpl getEntityRequestHandler()

getEntityBatchHandler

public EntityBatchHandler getEntityBatchHandler()

getEntityRESTProvider

public EntityRESTProviderBase getEntityRESTProvider()


Copyright © 2007-2013 Sakai Project. All Rights Reserved.