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 SilverpeasString[]
getAllSpaceProfileIds(int spaceLocalId)
Get all the space profiles of a spaceList<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 deletedList<Integer>
getRootSpaceIds()
SpaceInst
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 spaceboolean
isSpaceInstExist(int spaceLocalId)
Tests if a space with given space id existsvoid
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
-
getRootSpaceIds
public List<Integer> getRootSpaceIds() throws AdminException
- Throws:
AdminException
-
getAllSpaceProfileIds
public String[] getAllSpaceProfileIds(int spaceLocalId) throws AdminException
Get all the space profiles of a space- 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
-
isSpaceInstExist
public boolean isSpaceInstExist(int spaceLocalId) throws AdminException
Tests if a space with given space id exists- Parameters:
spaceLocalId
- the local id of the space- Returns:
- true if the given space instance name is an existing space.
- 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
-
-