com.stratelia.webactiv.beans.admin
Class SpaceInstManager

java.lang.Object
  extended by com.stratelia.webactiv.beans.admin.SpaceInstManager

public class SpaceInstManager
extends Object


Constructor Summary
SpaceInstManager()
           
 
Method Summary
 SpaceInst copy(SpaceInst spaceInstToCopy)
          Return a copy of space instance
 String createSpaceInst(SpaceInst spaceInst, DomainDriverManager ddManager)
          Create a new space in database
 void deleteSpaceInst(SpaceInst spaceInst, DomainDriverManager ddManager)
           
 String[] getAllRootSpaceIds(DomainDriverManager ddManager)
          Return the all the root spaces ids available in Silverpeas
 String[] getAllSpaceIds(DomainDriverManager ddManager)
          Return the all the spaces ids available in Silverpeas
 String[] getAllSpaceProfileIds(DomainDriverManager ddManager, String sSpaceId)
          Get all the space profiles of a space
 List<SpaceInstLight> getAllSpaces(DomainDriverManager ddManager)
           
 String[] getAllSubSpaceIds(DomainDriverManager ddManager, String sDomainFatherId)
           
 List<String> getManageableSpaceIds(String userId, List<String> groupIds)
           
 SpaceInst getPersonalSpace(DomainDriverManager ddManager, String userId)
           
 List<SpaceInstLight> getRemovedSpaces(DomainDriverManager ddManager)
          Returns all components which has been removed but not definitely deleted
 List<String> getRootSpaceIds()
           
 SpaceInst getSpaceInstById(DomainDriverManager ddManager, String spaceInstId)
          Get the space instance with the given space id
 SpaceInstLight getSpaceInstLightById(DomainDriverManager ddManager, String spaceId)
          Get the space instance with the given space id
 List<SpaceInstLight> getSubSpaces(DomainDriverManager ddManager, String spaceId)
          Return subspaces of a space
 boolean isSpaceInstExist(DomainDriverManager ddManager, String sSpaceInstId)
          Tests if a space with given space id exists
 void moveSpace(DomainDriverManager ddManager, int spaceId, int fatherId)
           
 void removeSpaceFromBasket(DomainDriverManager ddManager, String spaceId)
           
 void sendSpaceToBasket(DomainDriverManager ddManager, SpaceInst spaceInst, String userId)
           
 void updateSpaceInst(DomainDriverManager ddManager, SpaceInst spaceInstNew)
           
 void updateSpaceOrder(DomainDriverManager ddManager, String sSpaceId, int orderNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceInstManager

public SpaceInstManager()
Method Detail

copy

public SpaceInst copy(SpaceInst spaceInstToCopy)
Return a copy of space instance


createSpaceInst

public String createSpaceInst(SpaceInst spaceInst,
                              DomainDriverManager ddManager)
                       throws AdminException
Create a new space in database

Throws:
AdminException

getSpaceInstById

public SpaceInst getSpaceInstById(DomainDriverManager ddManager,
                                  String spaceInstId)
                           throws AdminException
Get the space instance with the given space id

Parameters:
spaceInstId - driver space id
Returns:
Space information as SpaceInst object
Throws:
AdminException

getPersonalSpace

public SpaceInst getPersonalSpace(DomainDriverManager ddManager,
                                  String userId)
                           throws AdminException
Throws:
AdminException

getSpaceInstLightById

public SpaceInstLight getSpaceInstLightById(DomainDriverManager ddManager,
                                            String spaceId)
                                     throws AdminException
Get the space instance with the given space id

Parameters:
spaceId - driver space id
Returns:
Space information as SpaceInst object
Throws:
AdminException

updateSpaceOrder

public void updateSpaceOrder(DomainDriverManager ddManager,
                             String sSpaceId,
                             int orderNum)
                      throws AdminException
Throws:
AdminException

getAllRootSpaceIds

public String[] getAllRootSpaceIds(DomainDriverManager ddManager)
                            throws AdminException
Return the all the root spaces ids available in Silverpeas

Throws:
AdminException

getAllSpaceIds

public String[] getAllSpaceIds(DomainDriverManager ddManager)
                        throws AdminException
Return the all the spaces ids available in Silverpeas

Throws:
AdminException

getRemovedSpaces

public List<SpaceInstLight> getRemovedSpaces(DomainDriverManager ddManager)
                                      throws AdminException
Returns all components which has been removed but not definitely deleted

Throws:
AdminException

getSubSpaces

public List<SpaceInstLight> getSubSpaces(DomainDriverManager ddManager,
                                         String spaceId)
                                  throws AdminException
Return subspaces of a space

Returns:
a List of SpaceInstLight
Throws:
AdminException

getRootSpaceIds

public List<String> getRootSpaceIds()
                             throws AdminException
Throws:
AdminException

getAllSpaceProfileIds

public String[] getAllSpaceProfileIds(DomainDriverManager ddManager,
                                      String sSpaceId)
                               throws AdminException
Get all the space profiles of a space

Throws:
AdminException

getAllSubSpaceIds

public String[] getAllSubSpaceIds(DomainDriverManager ddManager,
                                  String sDomainFatherId)
                           throws AdminException
Throws:
AdminException

deleteSpaceInst

public void deleteSpaceInst(SpaceInst spaceInst,
                            DomainDriverManager ddManager)
                     throws AdminException
Throws:
AdminException

sendSpaceToBasket

public void sendSpaceToBasket(DomainDriverManager ddManager,
                              SpaceInst spaceInst,
                              String userId)
                       throws AdminException
Throws:
AdminException

removeSpaceFromBasket

public void removeSpaceFromBasket(DomainDriverManager ddManager,
                                  String spaceId)
                           throws AdminException
Throws:
AdminException

moveSpace

public void moveSpace(DomainDriverManager ddManager,
                      int spaceId,
                      int fatherId)
               throws AdminException
Throws:
AdminException

updateSpaceInst

public void updateSpaceInst(DomainDriverManager ddManager,
                            SpaceInst spaceInstNew)
                     throws AdminException
Throws:
AdminException

isSpaceInstExist

public boolean isSpaceInstExist(DomainDriverManager ddManager,
                                String sSpaceInstId)
                         throws AdminException
Tests if a space with given space id exists

Parameters:
ddManager -
sSpaceInstId -
Returns:
true if the given space instance name is an existing space.
Throws:
AdminException

getAllSpaces

public List<SpaceInstLight> getAllSpaces(DomainDriverManager ddManager)
                                  throws AdminException
Throws:
AdminException

getManageableSpaceIds

public List<String> getManageableSpaceIds(String userId,
                                          List<String> groupIds)
                                   throws AdminException
Throws:
AdminException


Copyright © 2016 Silverpeas. All Rights Reserved.