public class SpaceManagerImpl extends DefaultComponent implements SpaceManager
Constructor and Description |
---|
SpaceManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
List<String> |
getAvailablePermissions() |
Space |
getSpace(String spaceProviderName,
CoreSession session) |
Space |
getSpace(String spaceProviderName,
CoreSession session,
DocumentModel contextDocument) |
Space |
getSpace(String spaceProviderName,
CoreSession session,
DocumentModel contextDocument,
String spaceName) |
Space |
getSpace(String spaceProviderName,
CoreSession session,
DocumentModel contextDocument,
String spaceName,
Map<String,String> parameters) |
Space |
getSpace(String spaceProviderName,
DocumentModel contextDocument) |
Space |
getSpace(String spaceProviderName,
DocumentModel contextDocument,
String spaceName) |
Space |
getSpaceFromId(String spaceId,
CoreSession session) |
SpaceProvider |
getSpaceProvider(String providerName) |
Collection<SpaceProvider> |
getSpaceProviders() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic Space getSpaceFromId(String spaceId, CoreSession session) throws SpaceException
getSpaceFromId
in interface SpaceManager
SpaceException
public Space getSpace(String spaceProviderName, CoreSession session, DocumentModel contextDocument, String spaceName, Map<String,String> parameters) throws SpaceException
getSpace
in interface SpaceManager
SpaceException
public Space getSpace(String spaceProviderName, CoreSession session, DocumentModel contextDocument, String spaceName) throws SpaceException
getSpace
in interface SpaceManager
SpaceException
public Space getSpace(String spaceProviderName, CoreSession session, DocumentModel contextDocument) throws SpaceException
getSpace
in interface SpaceManager
SpaceException
public Space getSpace(String spaceProviderName, CoreSession session) throws SpaceException
getSpace
in interface SpaceManager
SpaceException
public Space getSpace(String spaceProviderName, DocumentModel contextDocument, String spaceName) throws SpaceException
getSpace
in interface SpaceManager
SpaceException
public Space getSpace(String spaceProviderName, DocumentModel contextDocument) throws SpaceException
getSpace
in interface SpaceManager
SpaceException
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public Collection<SpaceProvider> getSpaceProviders()
getSpaceProviders
in interface SpaceManager
public SpaceProvider getSpaceProvider(String providerName) throws SpaceException
getSpaceProvider
in interface SpaceManager
SpaceException
public List<String> getAvailablePermissions()
getAvailablePermissions
in interface SpaceManager
Copyright © 2015 Nuxeo SA. All rights reserved.