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, registerExtension, unregisterExtension
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic 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) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
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 © 2011 Nuxeo SA. All Rights Reserved.