Package org.silverpeas.core.admin.space
Class SpaceProfileInstManager
- java.lang.Object
-
- org.silverpeas.core.admin.space.SpaceProfileInstManager
-
-
Field Summary
Fields Modifier and Type Field Description static String
SPACE_PROFILE
static String
SPACE_PROFILES_OF_USER
-
Constructor Summary
Constructors Modifier Constructor Description protected
SpaceProfileInstManager()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createSpaceProfileInst(SpaceProfileInst spaceProfileInst, int parentSpaceLocalId)
Create a new space profile instance in databasevoid
deleteSpaceProfileInst(SpaceProfileInst spaceProfileInst)
Deletes space profile instance from SilverpeasSpaceProfileInst
getInheritedSpaceProfileInstByName(int spaceLocalId, String roleName)
get information for given id and store it in the given SpaceProfileInst objectString[]
getSpaceProfileIdsOfGroupType(String groupId)
Get all the space profile Ids for the given groupString[]
getSpaceProfileIdsOfUserType(String sUserId)
Get all the space profile Ids for the given userSpaceProfileInst
getSpaceProfileInst(String spaceProfileId, boolean includeRemovedUsersAndGroups)
Get Space profile information with given id and creates a new SpaceProfileInstSpaceProfileInst
getSpaceProfileInstByName(int spaceLocalId, String roleName)
List<String>
getSpaceProfileNamesOfUser(String userId, List<String> groupIds, int spaceLocalId)
Map<Integer,Set<String>>
getSpaceProfileNamesOfUser(String userId, List<String> groupIds, Collection<Integer> spaceLocalIds)
void
removeUserFromSpaceProfileInst(String userId, String spaceProdileId)
String
updateSpaceProfileInst(SpaceProfileInst spaceProfileInst, SpaceProfileInst spaceProfileInstNew)
Updates space profile instance
-
-
-
Field Detail
-
SPACE_PROFILES_OF_USER
public static final String SPACE_PROFILES_OF_USER
- See Also:
- Constant Field Values
-
SPACE_PROFILE
public static final String SPACE_PROFILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSpaceProfileIdsOfUserType
public String[] getSpaceProfileIdsOfUserType(String sUserId) throws AdminException
Get all the space profile Ids for the given user- Parameters:
sUserId
-- Returns:
- spaceProfile ids
- Throws:
AdminException
-
getSpaceProfileIdsOfGroupType
public String[] getSpaceProfileIdsOfGroupType(String groupId) throws AdminException
Get all the space profile Ids for the given group- Parameters:
groupId
-- Returns:
- spaceProfile ids
- Throws:
AdminException
-
getSpaceProfileNamesOfUser
public List<String> getSpaceProfileNamesOfUser(String userId, List<String> groupIds, int spaceLocalId) throws AdminException
- Throws:
AdminException
-
getSpaceProfileNamesOfUser
public Map<Integer,Set<String>> getSpaceProfileNamesOfUser(String userId, List<String> groupIds, Collection<Integer> spaceLocalIds) throws AdminException
- Throws:
AdminException
-
createSpaceProfileInst
public String createSpaceProfileInst(SpaceProfileInst spaceProfileInst, int parentSpaceLocalId) throws AdminException
Create a new space profile instance in database- Parameters:
spaceProfileInst
-parentSpaceLocalId
-- Returns:
- Throws:
AdminException
-
getSpaceProfileInst
public SpaceProfileInst getSpaceProfileInst(String spaceProfileId, boolean includeRemovedUsersAndGroups) throws AdminException
Get Space profile information with given id and creates a new SpaceProfileInst- Parameters:
spaceProfileId
- identifier for the space profile.includeRemovedUsersAndGroups
- true to take into account removed groups and removed users.- Returns:
- the corresponding
SpaceProfileInst
if any, null otherwise. - Throws:
AdminException
- if an error occurred.
-
getInheritedSpaceProfileInstByName
public SpaceProfileInst getInheritedSpaceProfileInstByName(int spaceLocalId, String roleName) throws AdminException
get information for given id and store it in the given SpaceProfileInst object- Parameters:
spaceLocalId
-roleName
-- Throws:
AdminException
-
getSpaceProfileInstByName
public SpaceProfileInst getSpaceProfileInstByName(int spaceLocalId, String roleName) throws AdminException
- Throws:
AdminException
-
deleteSpaceProfileInst
public void deleteSpaceProfileInst(SpaceProfileInst spaceProfileInst) throws AdminException
Deletes space profile instance from Silverpeas- Parameters:
spaceProfileInst
-- Throws:
AdminException
-
removeUserFromSpaceProfileInst
public void removeUserFromSpaceProfileInst(String userId, String spaceProdileId) throws AdminException
- Throws:
AdminException
-
updateSpaceProfileInst
public String updateSpaceProfileInst(SpaceProfileInst spaceProfileInst, SpaceProfileInst spaceProfileInstNew) throws AdminException
Updates space profile instance- Parameters:
spaceProfileInst
-spaceProfileInstNew
-- Returns:
- Throws:
AdminException
-
-