Class SpaceInstManager
- java.lang.Object
-
- org.silverpeas.core.admin.service.SpaceInstManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SpaceInstManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpaceInst
copy(SpaceInst spaceInstToCopy)
Return a copy of space instancevoid
createSpaceInst(SpaceInst spaceInst)
Create a new space in databasevoid
deleteSpaceInst(SpaceInst spaceInst)
String[]
getAllRootSpaceIds()
Return the all the root spaces ids available in SilverpeasString[]
getAllSpaceIds()
Return the all the spaces ids available in SilverpeasList<SpaceInstLight>
getAllSpaces()
String[]
getAllSubSpaceIds(int sDomainFatherId)
List<Integer>
getManageableSpaceIds(String userId, List<String> groupIds)
SpaceInst
getPersonalSpace(String userId)
List<SpaceInstLight>
getRemovedSpaces()
Returns all components which has been removed but not definitely deletedSpaceInst
getSpaceInstById(int spaceInstLocalId)
Get the space instance with the given space idSpaceInstLight
getSpaceInstLightById(int spaceLocalId)
Get the space instance with the given space idList<SpaceInstLight>
getSubSpaces(int spaceLocalId)
Return subspaces of a spacevoid
loadSpaceInstData(SpaceInst spaceInst)
Loads lazy data of given space instance.void
moveSpace(int spaceId, int fatherId)
void
removeSpaceFromBasket(int spaceLocalId)
void
sendSpaceToBasket(SpaceInst spaceInst, String userId)
void
updateSpaceInst(SpaceInst spaceInstNew)
void
updateSpaceOrder(int spaceLocalId, int orderNum)
-
-
-
Field Detail
-
SPACE
public static final String SPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSpaceInst
public void createSpaceInst(SpaceInst spaceInst) throws AdminException
Create a new space in database- Throws:
AdminException
-
getSpaceInstById
public SpaceInst getSpaceInstById(int spaceInstLocalId) throws AdminException
Get the space instance with the given space id- Parameters:
spaceInstLocalId
- driver space id- Returns:
- Space information as SpaceInst object
- Throws:
AdminException
-
loadSpaceInstData
public void loadSpaceInstData(SpaceInst spaceInst) throws AdminException
Loads lazy data of given space instance.- Parameters:
spaceInst
- loadedSpaceInst
instance.- Throws:
AdminException
-
getPersonalSpace
public SpaceInst getPersonalSpace(String userId) throws AdminException
- Throws:
AdminException
-
getSpaceInstLightById
public SpaceInstLight getSpaceInstLightById(int spaceLocalId) throws AdminException
Get the space instance with the given space id- Parameters:
spaceLocalId
- driver space id- Returns:
- Space information as SpaceInst object
- Throws:
AdminException
-
updateSpaceOrder
public void updateSpaceOrder(int spaceLocalId, int orderNum) throws AdminException
- Throws:
AdminException
-
getAllRootSpaceIds
public String[] getAllRootSpaceIds() throws AdminException
Return the all the root spaces ids available in Silverpeas- Throws:
AdminException
-
getAllSpaceIds
public String[] getAllSpaceIds() throws AdminException
Return the all the spaces ids available in Silverpeas- Throws:
AdminException
-
getRemovedSpaces
public List<SpaceInstLight> getRemovedSpaces() throws AdminException
Returns all components which has been removed but not definitely deleted- Throws:
AdminException
-
getSubSpaces
public List<SpaceInstLight> getSubSpaces(int spaceLocalId) throws AdminException
Return subspaces of a space- Returns:
- a List of SpaceInstLight
- Throws:
AdminException
-
getAllSubSpaceIds
public String[] getAllSubSpaceIds(int sDomainFatherId) throws AdminException
- Throws:
AdminException
-
deleteSpaceInst
public void deleteSpaceInst(SpaceInst spaceInst) throws AdminException
- Throws:
AdminException
-
sendSpaceToBasket
public void sendSpaceToBasket(SpaceInst spaceInst, String userId) throws AdminException
- Throws:
AdminException
-
removeSpaceFromBasket
public void removeSpaceFromBasket(int spaceLocalId) throws AdminException
- Throws:
AdminException
-
moveSpace
public void moveSpace(int spaceId, int fatherId) throws AdminException
- Throws:
AdminException
-
updateSpaceInst
public void updateSpaceInst(SpaceInst spaceInstNew) throws AdminException
- Throws:
AdminException
-
getAllSpaces
public List<SpaceInstLight> getAllSpaces() throws AdminException
- Throws:
AdminException
-
getManageableSpaceIds
public List<Integer> getManageableSpaceIds(String userId, List<String> groupIds) throws AdminException
- Throws:
AdminException
-
-