Class EntityBrokerRESTServiceManager
- java.lang.Object
-
- 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
Constructors Modifier Constructor Description protectedEntityBrokerRESTServiceManager()EntityBrokerRESTServiceManager(EntityBrokerManager entityBrokerManager)Base constructorEntityBrokerRESTServiceManager(EntityBrokerManager entityBrokerManager, HttpServletAccessProviderManager httpServletAccessProviderManager)Full constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Shuts down all services and cleans upEntityActionsManagergetEntityActionsManager()EntityBatchHandlergetEntityBatchHandler()EntityDescriptionManagergetEntityDescriptionManager()EntityEncodingManagergetEntityEncodingManager()EntityRedirectsManagergetEntityRedirectsManager()EntityHandlerImplgetEntityRequestHandler()EntityRESTProviderBasegetEntityRESTProvider()static EntityBrokerRESTServiceManagergetInstance()voidinit()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 thesetEntityBrokerManager(EntityBrokerManager)method has been called (i.e. all the required services are set)voidsetEntityBrokerManager(EntityBrokerManager entityBrokerManager)static voidsetInstance(EntityBrokerRESTServiceManager ersm)voidshutdown()Shutdown the services (just calls over to destroy)
-
-
-
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 servicehttpServletAccessProviderManager- (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 thesetEntityBrokerManager(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()
-
-