Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.spaces.core.impl
Class SpaceManagerImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.spaces.core.impl.SpaceManagerImpl
All Implemented Interfaces:
SpaceManager, Adaptable, Component, Extensible

public class SpaceManagerImpl
extends DefaultComponent
implements SpaceManager

Author:
10044893

Constructor Summary
SpaceManagerImpl()
           
 
Method Summary
 java.lang.String getProviderName(SpaceProvider provider)
           
 Space getSpace(java.lang.String name, CoreSession session)
           
 Space getSpace(java.lang.String name, SpaceProvider provider, CoreSession session)
          Deprecated. 
 Space getSpace(java.lang.String name, Univers univers, CoreSession session)
          Retrieve a specific space from its name and its parent universe
 Space getSpaceFromId(java.lang.String spaceId, CoreSession session)
           
 java.util.List<Space> getSpacesForUnivers(Univers univers, CoreSession coreSession)
          Space list for a given univers
 java.util.List<SpaceProvider> getSpacesProvider(Univers univers)
           
 java.util.List<SpaceProvider> getSpacesProviders()
           
 Univers getUnivers(java.lang.String name, CoreSession coreSession)
          Get a univers
 Univers getUniversFromId(java.lang.String universId, CoreSession session)
           
 java.util.List<Univers> getUniversList(CoreSession session)
          Universe list
 void registerContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, deactivate, getAdapter, registerExtension, unregisterContribution, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceManagerImpl

public SpaceManagerImpl()
Method Detail

registerContribution

public void registerContribution(java.lang.Object contribution,
                                 java.lang.String extensionPoint,
                                 ComponentInstance contributor)
                          throws java.lang.Exception
Overrides:
registerContribution in class DefaultComponent
Throws:
java.lang.Exception

getUniversList

public java.util.List<Univers> getUniversList(CoreSession session)
                                       throws SpaceException
Universe list

Specified by:
getUniversList in interface SpaceManager
Returns:
the list of all accessible universes
Throws:
SpaceException - a bug has happened

getUnivers

public Univers getUnivers(java.lang.String name,
                          CoreSession coreSession)
                   throws UniversNotFoundException
Get a univers

Specified by:
getUnivers in interface SpaceManager
Parameters:
name - identifier of a univers
coreSession - a core session
Returns:
a specific universe
Throws:
UniversNotFoundException - , SpaceException

getSpacesForUnivers

public java.util.List<Space> getSpacesForUnivers(Univers univers,
                                                 CoreSession coreSession)
                                          throws SpaceException
Space list for a given univers

Specified by:
getSpacesForUnivers in interface SpaceManager
Parameters:
univers - the universe in which you are looking for spaces
Returns:
all accessible univers
Throws:
SpaceException - when a bug has happened

getSpaceFromId

public Space getSpaceFromId(java.lang.String spaceId,
                            CoreSession session)
                     throws SpaceException
Specified by:
getSpaceFromId in interface SpaceManager
Throws:
SpaceException

getSpace

public Space getSpace(java.lang.String name,
                      CoreSession session)
               throws SpaceException
Specified by:
getSpace in interface SpaceManager
Throws:
SpaceException

getSpace

@Deprecated
public Space getSpace(java.lang.String name,
                                 SpaceProvider provider,
                                 CoreSession session)
               throws SpaceException
Deprecated. 

Specified by:
getSpace in interface SpaceManager
Throws:
SpaceException

getSpacesProvider

public java.util.List<SpaceProvider> getSpacesProvider(Univers univers)
Specified by:
getSpacesProvider in interface SpaceManager

getSpacesProviders

public java.util.List<SpaceProvider> getSpacesProviders()
Specified by:
getSpacesProviders in interface SpaceManager

getProviderName

public java.lang.String getProviderName(SpaceProvider provider)
Specified by:
getProviderName in interface SpaceManager

getUniversFromId

public Univers getUniversFromId(java.lang.String universId,
                                CoreSession session)
                         throws SpaceException
Specified by:
getUniversFromId in interface SpaceManager
Returns:
Throws:
SpaceException

getSpace

public Space getSpace(java.lang.String name,
                      Univers univers,
                      CoreSession session)
               throws SpaceException
Description copied from interface: SpaceManager
Retrieve a specific space from its name and its parent universe

Specified by:
getSpace in interface SpaceManager
Parameters:
name - name of the searched space
univers - parent container
Returns:
the space if found , else a SpaceException is thrown
Throws:
SpaceNotFoundException - when the space was not found
SpaceException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.