com.silverpeas.admin.spaces
Class SpaceInstanciator

java.lang.Object
  extended by com.silverpeas.admin.spaces.SpaceInstanciator

public class SpaceInstanciator
extends Object

An instanciator of Silverpeas workspaces. A Silverpeas workspace is an area providing specified Silverpeas components and within which some collaborative works can be performed by well authorized users. The Silverpeas collaborative portal is made up of one or more workspaces. By default, each user has its own workspace from which it access its data and collaborative and shared resources.


Field Summary
protected static ResourceLocator configuration
           
 
Constructor Summary
SpaceInstanciator(Map<String,WAComponent> allComponentsModels)
          Constructs a new SpaceInstanciator instance with the specified component models.
 
Method Summary
 Map<String,SpaceTemplate> getAllSpaceTemplates()
          Gets all of the templates on workspace.
 SpaceInst getSpaceToInstanciate(String templateName)
          Gets an instance of a workspace defined by the specified template, identified by its name.
 SpaceInst makeSpaceInst(SpaceTemplate st)
          Method declaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

protected static ResourceLocator configuration
Constructor Detail

SpaceInstanciator

public SpaceInstanciator(Map<String,WAComponent> allComponentsModels)
Constructs a new SpaceInstanciator instance with the specified component models.

Parameters:
allComponentsModels - a map of component models each of them identified by their name.
Method Detail

getAllSpaceTemplates

public Map<String,SpaceTemplate> getAllSpaceTemplates()
Gets all of the templates on workspace. A template is provided by an XML file that defines the Silverpeas components a workspace can contain and for each of them the user profiles.

Returns:
a map between the workspace template name and its definition. If no templates are found, then an empty Map instance is returned.

getSpaceToInstanciate

public SpaceInst getSpaceToInstanciate(String templateName)
Gets an instance of a workspace defined by the specified template, identified by its name.

Parameters:
templateName - the name of the template from which the workspace has to be instanciated.
Returns:
a workspace instance.

makeSpaceInst

public SpaceInst makeSpaceInst(SpaceTemplate st)
Method declaration

Parameters:
st -
Returns:
See Also:


Copyright © 2016 Silverpeas. All Rights Reserved.