Interface Administration
-
public interface Administration
This interface defines all the required services to manage administration data (domains, spaces, components, users, groups,...).- Author:
- Yohann Chastagnier
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Administration.Constants
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activateUser(String userId)
Activate the user represented by the given identifier.String
addComponentInst(String sUserId, ComponentInst componentInst)
String
addDomain(Domain theDomain)
Create a new domainString
addGroup(GroupDetail group)
Add the given group in Silverpeas.String
addGroup(GroupDetail group, boolean onlyInSilverpeas)
Add the given group in Silverpeas.void
addGroupProfileInst(GroupProfileInst spaceProfileInst)
String
addProfileInst(ProfileInst profileInst)
String
addProfileInst(ProfileInst profileInst, String userId)
String
addSpaceInst(String userId, SpaceInst spaceInst)
add a space instance in databaseString
addSpaceProfileInst(SpaceProfileInst spaceProfile, String userId)
String
addUser(UserDetail userDetail)
Add the given user in Silverpeas and specific domain.String
addUser(UserDetail userDetail, boolean addOnlyInSilverpeas)
Add the given user in Silverpeas and specific domainvoid
addUserInGroup(String sUserId, String sGroupId)
void
assignRightsFromGroupToGroup(RightAssignationContext.MODE operationMode, String sourceGroupId, String targetGroupId, boolean nodeAssignRights, String authorId)
Assign rights of a group to a groupvoid
assignRightsFromGroupToUser(RightAssignationContext.MODE operationMode, String sourceGroupId, String targetUserId, boolean nodeAssignRights, String authorId)
Assign rights of a group to a uservoid
assignRightsFromUserToGroup(RightAssignationContext.MODE operationMode, String sourceUserId, String targetGroupId, boolean nodeAssignRights, String authorId)
Assign rights of a user to a groupvoid
assignRightsFromUserToUser(RightAssignationContext.MODE operationMode, String sourceUserId, String targetUserId, boolean nodeAssignRights, String authorId)
Assign rights of a user to a uservoid
blankDeletedUsers(String targetDomainId, List<String> userIds)
Blanks the specified users in the specified domain.void
blockUser(String userId)
Blocks the user represented by the given identifier.String
copyAndPasteComponent(PasteDetail pasteDetail)
String
copyAndPasteSpace(PasteDetail pasteDetail)
void
createComponentIndex(String componentId)
Create the index for the specified component.void
createComponentIndex(SilverpeasComponentInstance componentInst)
Create the index for the specified component.void
createSpaceIndex(int spaceId)
void
createSpaceIndex(SpaceInstLight spaceInst)
void
deactivateUser(String userId)
Deactivates the user represented by the given identifier.void
deleteAllComponentIndexes()
void
deleteAllSpaceIndexes()
String
deleteComponentInst(String userId, String componentId, boolean definitive)
Delete the specified component.List<GroupDetail>
deleteGroupById(String sGroupId)
Delete the group with the given Id.List<GroupDetail>
deleteGroupById(String sGroupId, boolean onlyInSilverpeas)
Delete the group with the given id.void
deleteGroupProfileInst(String groupId)
String
deleteProfileInst(String sProfileId, String userId)
void
deleteSpaceIndex(SpaceInst spaceInst)
String
deleteSpaceInstById(String userId, String spaceId, boolean definitive)
Delete the given space.void
deleteSpaceProfileInst(String sSpaceProfileId, String userId)
String
deleteUser(String sUserId)
Delete the given user from silverpeas and specific domainString
deleteUser(String sUserId, boolean onlyInSilverpeas)
Delete the given user from silverpeas and specific domainvoid
disableDataSensitivity(String domainId, List<String> userIds)
Disables the privacy of the data marked as potentially sensitive for the specified users in the given domain.static Administration
get()
String[]
getAdministratorUserIds(String fromUserId)
Get the identifiers of the administrators accessible by the given user.String[]
getAllComponentIds(String sSpaceId)
Returns all the component identifiers of the space represented by the given identifier.String[]
getAllComponentIdsRecur(String sSpaceId)
Returns all the component identifiers of the space, and its sub spaces, represented by the given identifier.Domain[]
getAllDomains()
Get all domainsList<GroupDetail>
getAllGroups()
Get the all theGroupState.VALID
groups available in Silverpeas.SpaceWithSubSpacesAndComponents
getAllowedFullTreeview(String userId)
SpaceWithSubSpacesAndComponents
getAllowedFullTreeview(String userId, String spaceId)
SpaceWithSubSpacesAndComponents
getAllowedFullTreeviewOnComponentName(String userId, String componentName)
String[]
getAllowedSubSpaceIds(String userId, String spaceFatherId)
List<ProfileInst>
getAllProfiles(String userId, String componentId)
Gets all the profiles of the specified user in the given component instance.String[]
getAllProfilesNames(String sComponentName)
Get all the profiles name available for the given component.List<GroupDetail>
getAllRootGroups()
Gets allGroupState.VALID
root groups in Silverpeas.String[]
getAllRootSpaceIds()
Return all the root spaces Ids available in Silverpeas.String[]
getAllRootSpaceIds(String sUserId)
String[]
getAllSpaceIds()
Return the all the spaces Ids available in Silverpeas.String[]
getAllSpaceIds(String sUserId)
GroupDetail[]
getAllSubGroups(String parentGroupId)
For use in userPanel : return the directGroupState.VALID
subgroups.String[]
getAllSubSpaceIds(String domainFatherId)
Get all the subspaces Ids available in Silverpeas given a domainFatherId (client id format)String[]
getAllSubSpaceIds(String sSpaceId, String sUserId)
int
getAllSubUsersNumber(String sGroupId)
For use in userPanel: return the total number of users recursively contained in a groupList<UserDetail>
getAllUsers()
Get all users (except delete ones) from all domains.List<UserDetail>
getAllUsersFromNewestToOldest()
Get all users (except delete ones) from all domains.String[]
getAllUsersIds()
UserDetail[]
getAllUsersOfGroup(String groupId)
Gets all users of a group, including these ofGroupState.VALID
subgroups.Map<String,WAComponent>
getAllWAComponents()
Return all the components of silverpeas read in the xmlComponent directory.List<String>
getAvailableComponentsByUser(String userId)
Gets the component instance identifiers available for the specified user?String[]
getAvailCompoIds(String userId)
Get the component ids allowed for the given user id.String[]
getAvailCompoIds(String sClientSpaceId, String sUserId)
Get the component ids allowed for the given user id in the given spaceString[]
getAvailCompoIdsAtRoot(String sClientSpaceId, String sUserId)
Get ids of components allowed to user in given space (not in subspaces)List<String>
getAvailCompoIdsAtRoot(String sClientSpaceId, String sUserId, String componentNameRoot)
Get the componentIds allowed for the given user Id in the given space and the componentNameRootList<ComponentInstLight>
getAvailCompoInSpace(String userId, String spaceId)
Get components of a given space (and subspaces) available to a user.List<ComponentInstLight>
getAvailComponentInstLights(String userId, String componentName)
Gets the available component for a given userString
getClientSpaceId(String sDriverSpaceId)
Converts driver space id to client space idString[]
getClientSpaceIds(String[] asDriverSpaceIds)
Converts driver space ids to client space idsCompoSpace[]
getCompoForUser(String sUserId, String sComponentName)
Get the tuples (space id, compo id) allowed for the given user and given component nameString[]
getCompoId(String sComponentName)
Return the compo id for the given component nameString[]
getComponentIdsByNameAndUserId(String sUserId, String sComponentName)
ComponentInst
getComponentInst(String sClientComponentId)
Return the component Inst corresponding to the given IDSilverpeasComponentInstance
getComponentInstance(String componentInstanceIdentifier)
Gets the component instance related to the given identifier.
In contrary togetComponentInst(String)
,getComponentInstLight(String)
signatures, this one is able to return different kinds of implementation ofSilverpeasComponentInstance
:PersonalComponentInstance
ComponentInstLight
So, this signature is useful into contexts of transversal treatments.ComponentInstLight
getComponentInstLight(String componentId)
Return the component Inst Light corresponding to the given IDString
getComponentParameterValue(String componentId, String parameterName)
Return the value of the parameter for the given component and the given name of parameterList<ComponentInstLight>
getComponentsWithParameter(String paramName, String paramValue)
String[]
getCurrentProfiles(String sUserId, String componentId)
Get the profile names of the given user for the given component instanceString[]
getCurrentProfiles(String sUserId, ComponentInst componentInst)
Get the profile names of the given user for the given component instanceList<GroupDetail>
getDirectGroupsOfUser(String userId)
Domain
getDomain(String domainId)
Get a domain with given idlong
getDomainActions(String domainId)
UserDetail[]
getFilteredDirectUsers(String sGroupId, String sUserLastNameFilter)
For use in userPanel: return the users that are direct child of a given groupSpaceWithSubSpacesAndComponents
getFullTreeview()
GroupDetail
getGroup(String groupId)
Get group information with the given idGroupDetail
getGroupByNameInDomain(String groupName, String domainFatherId)
Get group information with the given group name.String[]
getGroupManageableSpaceIds(String sGroupId)
Get all the spaces ids manageable by given group id.String
getGroupName(String sGroupId)
Get the group name corresponding to the given group id.GroupProfileInst
getGroupProfileInst(String groupId)
Get the group profile instance corresponding to the given IDGroupDetail[]
getGroups(String[] asGroupId)
Get groups information with the given ids.String
getNextDomainId()
List<UserDetail>
getNonBlankedDeletedUsers(String... domainIds)
Gets all the users that were deleted in the specified domains and that weren't blanked.Map<String,Map<String,String>>
getParameterValuesByComponentIdThenByParamName(Collection<String> componentIds, Collection<String> paramNames)
Gets all parameters values by component and by parameter name.List<SpaceInstLight>
getPathToComponent(String componentId)
Retrieve spaces from root to componentList<String>
getPathToGroup(String groupId)
List<SpaceInstLight>
getPathToSpace(String spaceId, boolean includeTarget)
Retrieve all the spaces that are parent to the given space up to the root space.SpaceInst
getPersonalSpace(String userId)
String[]
getProfileIds(String sUserId)
Get all the profile ids for the given userString[]
getProfileIdsOfGroup(String sGroupId)
Get all the profile ids for the given groupProfileInst
getProfileInst(String sProfileId)
Get the profile instance corresponding to the given idString
getProfileLabelFromName(String sComponentName, String sProfileName, String lang)
Get the profile label from its name.List<ProfileInst>
getProfilesByObject(ProfiledObjectId objectRef, String componentId)
String[]
getProfilesByObjectAndGroupId(ProfiledObjectId objectRef, String componentId, String groupId)
String[]
getProfilesByObjectAndUserId(ProfiledObjectId objectRef, String componentId, String userId)
Map<String,List<String>>
getProfilesByObjectTypeAndUserId(ProfiledObjectType profiledObjectType, String componentId, String userId)
GroupDetail[]
getRecursivelyAllSubGroups(String parentGroupId)
For use in userPanel: return recursively the directGroupState.VALID
subgroups of the specified group.List<ComponentInstLight>
getRemovedComponents()
Returns all components which has been removed but not definitely deleted.List<GroupDetail>
getRemovedGroups(String... domainIds)
Gets all the groups that were removed in the specified domains.List<SpaceInstLight>
getRemovedSpaces()
Returns all spaces which has been removed but not definitely deleted.List<UserDetail>
getRemovedUsers(String... domainIds)
Gets all the users that were removed in the specified domains.String
getRequestRouter(String sComponentName)
GroupDetail[]
getRootGroupsOfDomain(String domainId)
Gets allGroupState.VALID
groups at the root of a domain.SpaceInstLight
getRootSpace(String spaceId)
Return the higher space according to a subspace (N level compliant)List<SpaceInstLight>
getRootSpacesContainingComponent(String userId, String componentName)
This method returns all root spaces which contains at least one allowed component of type componentName in this space or subspaces.String
getSilverpeasEmail()
Gets the email of Silverpeas.String
getSilverpeasName()
Gets the name of Silverpeas to use when it sends notifications to users.SpaceInst
getSpaceInstById(String spaceId)
Get the space instance with the given space id.SpaceInstLight
getSpaceInstLightById(String sClientSpaceId)
Get the space instance light (only space id, father id and name) with the given space idString[]
getSpaceNames(String[] asClientSpaceIds)
Return the spaces name corresponding to the given space idsSpaceProfile
getSpaceProfile(String spaceId, SilverpeasRole role)
Gets the space profile instance which provides all user and group identifiers through simple methods.SpaceProfileInst
getSpaceProfileInst(String spaceProfileId)
Get the space profile instance corresponding to the given IDList<String>
getSpaceUserProfilesBySpaceId(String userId, String spaceId)
Get the profile names of the given user for the given space.Map<String,Set<String>>
getSpaceUserProfilesBySpaceIds(String userId, Collection<String> spaceIds)
Gets the space profile names of given user indexed by the given spaces.List<DomainProperty>
getSpecificPropertiesToImportUsers(String domainId, String language)
List<SpaceInstLight>
getSubSpaces(String spaceId)
List<SpaceInstLight>
getSubSpacesContainingComponent(String spaceId, String userId, String componentName)
This method returns all sub spaces which contains at least one allowed component of type componentName in this space or subspaces.List<GroupDetail>
getSynchronizedGroups()
UserDetail
getUserDetail(String sUserId)
Get the user detail corresponding to the given user IdUserDetail[]
getUserDetails(String[] userIds)
Get the user details corresponding to the given user Ids.UserFull
getUserFull(String sUserId)
Get full information about the user with the given unique identifier (only info in cache table) from its domain.UserFull
getUserFull(String domainId, String specificId)
List<UserFull>
getUserFulls(Collection<String> userIds)
Gets full information about users corresponding to given unique identifiers (only info in cache table) from its domain.String
getUserIdByAuthenticationKey(String authenticationKey)
String
getUserIdByLoginAndDomain(String sLogin, String sDomainId)
Get the user id corresponding to Domain/Login (ignoring the login case)String[]
getUserIdsOfDomain(String domainId)
List<String>
getUserManageableGroupIds(String sUserId)
String[]
getUserManageableSpaceIds(String sUserId)
Get all the spaces ids manageable by given user id.String[]
getUserManageableSubSpaceIds(String sUserId, String sParentSpaceId)
Get the subspace manageable by given user id in given spaceMap<String,Set<String>>
getUserProfilesByComponentId(String userId, Collection<String> componentIds)
Gets the profile names of given user indexed by the given component instances.Map<org.silverpeas.kernel.util.Pair<String,String>,Set<String>>
getUserProfilesByComponentIdAndObjectId(ProfiledObjectIds profiledObjectIds, Collection<String> componentIds, String userId)
Gets the profile names of given user indexed by couple of given component instances and object instances.String[]
getUserRootSpaceIds(String sUserId)
Get the root spaces ids allowed for the given userUserDetail[]
getUsers(boolean bAllProfiles, String sProfile, String sClientComponentId)
Gets all the users in the given profile for the given component instance in the given space.UserDetail[]
getUsersOfDomain(String domainId)
List<UserDetail>
getUsersOfDomains(List<String> domainIds)
Get all users (except delete ones) from specified domains.List<UserDetail>
getUsersOfDomainsFromNewestToOldest(List<String> domainIds)
Get all users (except delete ones) from specified domains.UserSpaceAvailabilityChecker
getUserSpaceAvailabilityChecker(String userId)
This method allows callers to perform several space availability checks for a given user.String[]
getUserSpaceIds(String sUserId)
Get the spaces ids allowed for the given userList<SpaceInstLight>
getUserSpaceTreeview(String userId)
Get all spaces available to a user.String[]
getUserSubSpaceIds(String sUserId, String spaceId)
Get the subspaces ids in the specified space that are allowed for the given userList<UserDetail>
getUsersWithSensitiveData(String... domainIds)
Gets all the users in the specified domains having sensitive data.String
identify(String sKey, String sSessionId, boolean isAppInMaintenance)
String
identify(String sKey, String sSessionId, boolean isAppInMaintenance, boolean removeKey)
void
indexAllGroups()
void
indexAllUsers()
void
indexGroups(String domainId)
void
indexUsers(String domainId)
void
initSynchronization()
boolean
isAnAdminTool(String toolId)
Is the specified tool belongs to the administration component?boolean
isComponentAvailableToGroup(String componentId, String groupId)
Is the specified component instance available among the components instances accessible by the specified group of users?boolean
isComponentAvailableToUser(String componentId, String userId)
Is the specified component instance available among the components instances accessible by the specified user?boolean
isComponentManageable(String componentId, String userId)
Is the specified component instance manageable by the given user?boolean
isDomainManagerUser(String userId, String domainId)
Is the specified user a manager of the specified domain?boolean
isEmailExisting(String email)
Checks if an existing user already have the given emailboolean
isGroupExist(String groupName)
Tests ifGroupState.VALID
group exists in Silverpeas.boolean
isObjectAvailableToGroup(String componentId, ProfiledObjectId objectRef, String groupId)
boolean
isObjectAvailableToUser(String componentId, ProfiledObjectId objectRef, String userId)
boolean
isSpaceAvailable(String userId, String spaceId)
This method permit knowing if the given space is allowed to the given user.void
migrateUser(UserDetail userDetail, String targetDomainId)
void
moveComponentInst(String spaceId, String componentId, String idComponentBefore, ComponentInst[] componentInsts)
Move the given component in Silverpeas.void
moveSpace(String spaceId, String fatherId)
void
reloadCache()
String
removeDomain(String domainId)
Remove a domainList<GroupDetail>
removeGroup(String groupId)
Removes the given group from silverpeas and specific domainString
removeUser(String sUserId)
Removes the given user from silverpeas and specific domainvoid
removeUserFromGroup(String sUserId, String sGroupId)
void
restoreComponentFromBasket(String componentId)
List<GroupDetail>
restoreGroup(String groupId)
Restores the given group from silverpeas and specific domainvoid
restoreSpaceFromBasket(String spaceId)
Restores the space from the basket.String
restoreUser(String sUserId)
Restores the given user from silverpeas and specific domainSilverpeasList<GroupDetail>
searchGroups(GroupsSearchCriteria searchCriteria)
List<String>
searchUserIdsByProfile(List<String> profileIds, boolean includeRemovedUsersAndGroups)
UserDetail[]
searchUsers(String domainId, Map<String,String> query)
SilverpeasList<UserDetail>
searchUsers(UserDetailsSearchCriteria searchCriteria)
void
setComponentPlace(String componentId, String idComponentBefore, ComponentInst[] brothersComponents)
void
setSpaceProfilesToComponent(ComponentInst component, SpaceInst space)
void
setSpaceProfilesToSubSpace(SpaceInst subSpace, SpaceInst space)
Set space profiles to a subspace.void
setSpaceProfilesToSubSpace(SpaceInst subSpace, SpaceInst space, boolean persist)
void
setUserSensitiveData(String userId, boolean sensitive)
Sets some data of the specified user as or not sensitive information.String
synchronizeGroup(String groupId, boolean recurs)
void
synchronizeGroupByRule(String groupId, boolean scheduledMode)
String
synchronizeImportGroup(String domainId, String groupKey, String askedParentId, boolean recurs, boolean isIdKey)
String
synchronizeImportUser(String domainId, String specificId, boolean recurs)
Synchronize Users and groups between cache and domain's datastoreString
synchronizeImportUserByLogin(String domainId, String userLogin, boolean recurs)
Synchronize Users and groups between cache and domain's datastoreString
synchronizeRemoveGroup(String groupId)
String
synchronizeRemoveUser(String userId)
String
synchronizeSilverpeasWithDomain(String sDomainId)
String
synchronizeSilverpeasWithDomain(String sDomainId, boolean threaded)
String
synchronizeUser(String userId, boolean recurs)
Synchronize Users and groups between cache and domain's datastorevoid
unblockUser(String userId)
Unblock the user represented by the given identifier.String
updateComponentInst(ComponentInst component)
Update the given component in Silverpeas.String
updateDomain(Domain domain)
Update a domainString
updateGroup(GroupDetail group)
Update the given group in Silverpeas and specific.String
updateGroup(GroupDetail group, boolean onlyInSilverpeas)
Update the given group in Silverpeas and specificvoid
updateGroupProfileInst(GroupProfileInst groupProfileInstNew)
String
updateProfileInst(ProfileInst profileInstNew)
String
updateProfileInst(ProfileInst profileInstNew, String userId)
String
updateSpaceInst(SpaceInst spaceInstNew)
Updates the space (with the given name) with the given space Updates only the nodevoid
updateSpaceOrderNum(String spaceId, int orderNum)
String
updateSpaceProfileInst(SpaceProfileInst newSpaceProfile, String userId)
String
updateUser(UserDetail user)
Update the given user (ONLY IN SILVERPEAS)String
updateUserFull(UserFull user)
Update the given user in Silverpeas and specific domainvoid
userAcceptsTermsOfService(String userId)
Updates the acceptance date of a user from its id.
-
-
-
Method Detail
-
get
static Administration get()
-
reloadCache
void reloadCache()
-
initSynchronization
void initSynchronization()
-
createSpaceIndex
void createSpaceIndex(int spaceId)
-
createSpaceIndex
void createSpaceIndex(SpaceInstLight spaceInst)
-
deleteSpaceIndex
void deleteSpaceIndex(SpaceInst spaceInst)
-
deleteAllSpaceIndexes
void deleteAllSpaceIndexes()
-
addSpaceInst
String addSpaceInst(String userId, SpaceInst spaceInst) throws AdminException
add a space instance in database- Parameters:
userId
- Id of user who add the spacespaceInst
- SpaceInst object containing information about the space to be created- Returns:
- the created space id
- Throws:
AdminException
-
deleteSpaceInstById
String deleteSpaceInstById(String userId, String spaceId, boolean definitive) throws AdminException
Delete the given space. It is applied recursively to the sub-spaces- Parameters:
userId
- Id of user who deletes the spacespaceId
- Id of the space to be deleteddefinitive
- is the deletion is definitive?- Returns:
- the deleted space id
- Throws:
AdminException
- if an error occurs while deleting the space.
-
restoreSpaceFromBasket
void restoreSpaceFromBasket(String spaceId) throws AdminException
Restores the space from the basket.- Parameters:
spaceId
- the unique identifier of the space to restore.- Throws:
AdminException
- if an error occurs while restoring the space.
-
getSpaceInstById
SpaceInst getSpaceInstById(String spaceId) throws AdminException
Get the space instance with the given space id.- Parameters:
spaceId
- client space id- Returns:
- Space information as SpaceInst object.
- Throws:
AdminException
- if an error occurs while getting the space.
-
getPersonalSpace
SpaceInst getPersonalSpace(String userId) throws AdminException
- Throws:
AdminException
-
getAllSubSpaceIds
String[] getAllSubSpaceIds(String domainFatherId) throws AdminException
Get all the subspaces Ids available in Silverpeas given a domainFatherId (client id format)- Parameters:
domainFatherId
- Id of the father space- Returns:
- an array of String containing the ids of spaces that are child of given space.
- Throws:
AdminException
- if an error occurs all the subspaces.
-
updateSpaceInst
String updateSpaceInst(SpaceInst spaceInstNew) throws AdminException
Updates the space (with the given name) with the given space Updates only the node- Parameters:
spaceInstNew
- SpaceInst object containing new information for space to be updated- Returns:
- the updated space id.
- Throws:
AdminException
- if an error occurs while updating the space.
-
updateSpaceOrderNum
void updateSpaceOrderNum(String spaceId, int orderNum) throws AdminException
- Throws:
AdminException
-
getAllRootSpaceIds
String[] getAllRootSpaceIds() throws AdminException
Return all the root spaces Ids available in Silverpeas.- Returns:
- all the root spaces Ids available in Silverpeas.
- Throws:
AdminException
- if an error occurs
-
getPathToComponent
List<SpaceInstLight> getPathToComponent(String componentId) throws AdminException
Retrieve spaces from root to component- Parameters:
componentId
- the target component- Returns:
- a List of SpaceInstLight
- Throws:
AdminException
- if an error occurs
-
getPathToSpace
List<SpaceInstLight> getPathToSpace(String spaceId, boolean includeTarget) throws AdminException
Retrieve all the spaces that are parent to the given space up to the root space.- Parameters:
spaceId
- the target spaceincludeTarget
- is the target space should be included with the returned spaces.- Returns:
- an ordered list of space, from the root space down to the targeted space.
- Throws:
AdminException
- if an error occurs
-
getAllSpaceIds
String[] getAllSpaceIds() throws AdminException
Return the all the spaces Ids available in Silverpeas.- Returns:
- the all the spaces Ids available in Silverpeas.
- Throws:
AdminException
- if an error occurs
-
getRemovedSpaces
List<SpaceInstLight> getRemovedSpaces() throws AdminException
Returns all spaces which has been removed but not definitely deleted.- Returns:
- a List of SpaceInstLight
- Throws:
AdminException
- if an error occurs
-
getRemovedComponents
List<ComponentInstLight> getRemovedComponents() throws AdminException
Returns all components which has been removed but not definitely deleted.- Returns:
- a List of ComponentInstLight
- Throws:
AdminException
- if an error occurs
-
getSpaceNames
String[] getSpaceNames(String[] asClientSpaceIds) throws AdminException
Return the spaces name corresponding to the given space ids- Parameters:
asClientSpaceIds
- the global space identifiers- Returns:
- the name of the specified spaces
- Throws:
AdminException
- if an error occurs
-
getAllWAComponents
Map<String,WAComponent> getAllWAComponents()
Return all the components of silverpeas read in the xmlComponent directory.- Returns:
- all the components of silverpeas read in the xmlComponent directory.
-
getComponentInstance
SilverpeasComponentInstance getComponentInstance(String componentInstanceIdentifier) throws AdminException
Gets the component instance related to the given identifier.
In contrary togetComponentInst(String)
,getComponentInstLight(String)
signatures, this one is able to return different kinds of implementation ofSilverpeasComponentInstance
: So, this signature is useful into contexts of transversal treatments.- Parameters:
componentInstanceIdentifier
- the identifier of the requested component instance.- Returns:
- an optional component instance.
- Throws:
AdminException
-
getComponentInst
ComponentInst getComponentInst(String sClientComponentId) throws AdminException
Return the component Inst corresponding to the given ID- Parameters:
sClientComponentId
- the global component instance identifier.- Returns:
- the component Inst corresponding to the given ID
- Throws:
AdminException
- if an error occurs
-
getComponentInstLight
ComponentInstLight getComponentInstLight(String componentId) throws AdminException
Return the component Inst Light corresponding to the given ID- Parameters:
componentId
- the component instance identifier- Returns:
- the component Inst Light corresponding to the given ID
- Throws:
AdminException
- if an error occurs
-
getComponentParameterValue
String getComponentParameterValue(String componentId, String parameterName)
Return the value of the parameter for the given component and the given name of parameter- Parameters:
componentId
- the component instance identifierparameterName
- the name of the parameter- Returns:
- the value of the parameter for the given component and the given name of parameter
-
getParameterValuesByComponentIdThenByParamName
Map<String,Map<String,String>> getParameterValuesByComponentIdThenByParamName(Collection<String> componentIds, Collection<String> paramNames)
Gets all parameters values by component and by parameter name.- Parameters:
componentIds
- list of component identifier.paramNames
- optional list of parameter name. All parameters are retrieved if it is not filled or null- Returns:
- a map filled with couples of parameter name / value per component instance identifier.
-
getComponentsWithParameter
List<ComponentInstLight> getComponentsWithParameter(String paramName, String paramValue)
-
restoreComponentFromBasket
void restoreComponentFromBasket(String componentId) throws AdminException
- Throws:
AdminException
-
createComponentIndex
void createComponentIndex(String componentId)
Create the index for the specified component.- Parameters:
componentId
- the unique identifier of a component instance
-
createComponentIndex
void createComponentIndex(SilverpeasComponentInstance componentInst)
Create the index for the specified component.- Parameters:
componentInst
- a component instance
-
deleteAllComponentIndexes
void deleteAllComponentIndexes()
-
addComponentInst
String addComponentInst(String sUserId, ComponentInst componentInst) throws AdminException, QuotaException
- Throws:
AdminException
QuotaException
-
deleteComponentInst
String deleteComponentInst(String userId, String componentId, boolean definitive) throws AdminException
Delete the specified component.- Parameters:
userId
- the unique identifier of a usercomponentId
- the unique identifier of a component instancedefinitive
- is the deletion definitive?- Returns:
- the identifier of the deleted component instance.
- Throws:
AdminException
- if an error occurs
-
updateComponentInst
String updateComponentInst(ComponentInst component) throws AdminException
Update the given component in Silverpeas.- Parameters:
component
- the component instance.- Returns:
- the unique identifier of the updated component instance.
- Throws:
AdminException
- if an error occurs
-
setSpaceProfilesToSubSpace
void setSpaceProfilesToSubSpace(SpaceInst subSpace, SpaceInst space) throws AdminException
Set space profiles to a subspace. There is no persistance. The subspace object is enriched.- Parameters:
subSpace
- the object to set profilesspace
- the object to get profiles- Throws:
AdminException
- if an error occurs
-
setSpaceProfilesToSubSpace
void setSpaceProfilesToSubSpace(SpaceInst subSpace, SpaceInst space, boolean persist) throws AdminException
- Throws:
AdminException
-
setSpaceProfilesToComponent
void setSpaceProfilesToComponent(ComponentInst component, SpaceInst space) throws AdminException
- Throws:
AdminException
-
moveSpace
void moveSpace(String spaceId, String fatherId) throws AdminException
- Throws:
AdminException
-
moveComponentInst
void moveComponentInst(String spaceId, String componentId, String idComponentBefore, ComponentInst[] componentInsts) throws AdminException
Move the given component in Silverpeas.- Parameters:
spaceId
- the unique identifier of the targeted space.componentId
- the unique identifier of the component.idComponentBefore
- the unique identifier of the component placed before the new position of the component in the targeted space.componentInsts
- the list of component instances in the targeted spaces.- Throws:
AdminException
- if an error occurs
-
setComponentPlace
void setComponentPlace(String componentId, String idComponentBefore, ComponentInst[] brothersComponents) throws AdminException
- Throws:
AdminException
-
getAllProfilesNames
String[] getAllProfilesNames(String sComponentName)
Get all the profiles name available for the given component.- Parameters:
sComponentName
- the unique identifier of the component instance.- Returns:
- an array of role profiles defined for the given component instance.
-
getProfileLabelFromName
String getProfileLabelFromName(String sComponentName, String sProfileName, String lang)
Get the profile label from its name.- Parameters:
sComponentName
- the unique identifier of the component instance.sProfileName
- the name of the role profile- Returns:
- the label of the profile
-
getProfileInst
ProfileInst getProfileInst(String sProfileId) throws AdminException
Get the profile instance corresponding to the given id- Parameters:
sProfileId
- the unique identifier of the profile.- Returns:
- the role profile
- Throws:
AdminException
- if an error occurs
-
getAllProfiles
List<ProfileInst> getAllProfiles(String userId, String componentId)
Gets all the profiles of the specified user in the given component instance. A profile is a mapping between a role and the privileges the role provides to a user in a given space or applications in Silverpeas. Both inherited and explicit profiles of the given component instance are taken into account, either through a group of users or by the user himself.- Parameters:
userId
- the unique identifier of a user.componentId
- the unique identifier of a component instance in Silverpeas.- Returns:
- a list with the profiles the user has in the given component instance.
-
getProfilesByObject
List<ProfileInst> getProfilesByObject(ProfiledObjectId objectRef, String componentId) throws AdminException
- Throws:
AdminException
-
getProfilesByObjectAndGroupId
String[] getProfilesByObjectAndGroupId(ProfiledObjectId objectRef, String componentId, String groupId) throws AdminException
- Throws:
AdminException
-
getProfilesByObjectAndUserId
String[] getProfilesByObjectAndUserId(ProfiledObjectId objectRef, String componentId, String userId) throws AdminException
- Throws:
AdminException
-
getUserProfilesByComponentIdAndObjectId
Map<org.silverpeas.kernel.util.Pair<String,String>,Set<String>> getUserProfilesByComponentIdAndObjectId(ProfiledObjectIds profiledObjectIds, Collection<String> componentIds, String userId) throws AdminException
Gets the profile names of given user indexed by couple of given component instances and object instances.- Parameters:
profiledObjectIds
- if NOTHING is given, then all the rows associated to the type are returned, otherwise all the rows associated to type and ids.componentIds
- list of component instance identifier as string.userId
- a user identifier as string.- Returns:
- a map filled with list of profile name as string by couple component instance identifier as string - object identifier as integer.
- Throws:
AdminException
-
getProfilesByObjectTypeAndUserId
Map<String,List<String>> getProfilesByObjectTypeAndUserId(ProfiledObjectType profiledObjectType, String componentId, String userId) throws AdminException
- Throws:
AdminException
-
isObjectAvailableToUser
boolean isObjectAvailableToUser(String componentId, ProfiledObjectId objectRef, String userId) throws AdminException
- Throws:
AdminException
-
isObjectAvailableToGroup
boolean isObjectAvailableToGroup(String componentId, ProfiledObjectId objectRef, String groupId) throws AdminException
- Throws:
AdminException
-
addProfileInst
String addProfileInst(ProfileInst profileInst) throws AdminException
- Throws:
AdminException
-
addProfileInst
String addProfileInst(ProfileInst profileInst, String userId) throws AdminException
- Throws:
AdminException
-
deleteProfileInst
String deleteProfileInst(String sProfileId, String userId) throws AdminException
- Throws:
AdminException
-
updateProfileInst
String updateProfileInst(ProfileInst profileInstNew) throws AdminException
- Throws:
AdminException
-
updateProfileInst
String updateProfileInst(ProfileInst profileInstNew, String userId) throws AdminException
- Throws:
AdminException
-
getSpaceProfileInst
SpaceProfileInst getSpaceProfileInst(String spaceProfileId) throws AdminException
Get the space profile instance corresponding to the given ID- Parameters:
spaceProfileId
- the unique profile identifier.- Returns:
- the profile instance.
- Throws:
AdminException
- if an error occurs
-
addSpaceProfileInst
String addSpaceProfileInst(SpaceProfileInst spaceProfile, String userId) throws AdminException
- Throws:
AdminException
-
deleteSpaceProfileInst
void deleteSpaceProfileInst(String sSpaceProfileId, String userId) throws AdminException
- Throws:
AdminException
-
updateSpaceProfileInst
String updateSpaceProfileInst(SpaceProfileInst newSpaceProfile, String userId) throws AdminException
- Throws:
AdminException
-
getGroupName
String getGroupName(String sGroupId) throws AdminException
Get the group name corresponding to the given group id.- Parameters:
sGroupId
- the unique identifier of a group.- Returns:
- the name of the group.
- Throws:
AdminException
- if an error occurs
-
getAllGroups
List<GroupDetail> getAllGroups() throws AdminException
Get the all theGroupState.VALID
groups available in Silverpeas.- Returns:
- a list of available user groups in Silverpeas.
- Throws:
AdminException
- if an error occurs
-
isGroupExist
boolean isGroupExist(String groupName) throws AdminException
Tests ifGroupState.VALID
group exists in Silverpeas.- Parameters:
groupName
- the name of a group- Returns:
- true if a group with the given name
- Throws:
AdminException
- if an error occurs
-
getGroup
GroupDetail getGroup(String groupId) throws AdminException
Get group information with the given id- Parameters:
groupId
- the unique identifier of a group- Returns:
- a user group instance.
- Throws:
AdminException
- if an error occurs
-
getPathToGroup
List<String> getPathToGroup(String groupId) throws AdminException
- Throws:
AdminException
-
getGroupByNameInDomain
GroupDetail getGroupByNameInDomain(String groupName, String domainFatherId) throws AdminException
Get group information with the given group name.- Parameters:
groupName
- the name of the group.domainFatherId
- the identifier of a user domain.- Returns:
- a user group instance.
- Throws:
AdminException
- if an error occurs
-
getGroups
GroupDetail[] getGroups(String[] asGroupId) throws AdminException
Get groups information with the given ids.- Parameters:
asGroupId
- one or more group identifiers.- Returns:
- the group instances of the specified identifiers.
- Throws:
AdminException
- if an error occurs
-
addGroup
String addGroup(GroupDetail group) throws AdminException
Add the given group in Silverpeas.- Parameters:
group
- a user group.- Returns:
- the identifier of the new group.
- Throws:
AdminException
- if an error occurs
-
addGroup
String addGroup(GroupDetail group, boolean onlyInSilverpeas) throws AdminException
Add the given group in Silverpeas.- Parameters:
group
- a user group.onlyInSilverpeas
- performs the operation only in Silverpeas- Returns:
- the identifier of the new group
- Throws:
AdminException
- if an error occurs
-
restoreGroup
List<GroupDetail> restoreGroup(String groupId) throws AdminException
Restores the given group from silverpeas and specific domain- Parameters:
groupId
- the group identifier- Returns:
- all the group instance which have been restored from the given one.
- Throws:
AdminException
- if an error occurs
-
removeGroup
List<GroupDetail> removeGroup(String groupId) throws AdminException
Removes the given group from silverpeas and specific domain- Parameters:
groupId
- the group identifier- Returns:
- all the group instance which have been removed from the given one.
- Throws:
AdminException
- if an error occurs
-
deleteGroupById
List<GroupDetail> deleteGroupById(String sGroupId) throws AdminException
Delete the group with the given Id. The deletion is applied recursively to the subgroups.- Parameters:
sGroupId
- the unique identifier of a group- Returns:
- the identifier of the deleted group.
- Throws:
AdminException
- if an error occurs
-
deleteGroupById
List<GroupDetail> deleteGroupById(String sGroupId, boolean onlyInSilverpeas) throws AdminException
Delete the group with the given id. The deletion is applied recursively to the subgroups.- Parameters:
sGroupId
- the unique identifier of a group.onlyInSilverpeas
- performs the operation only in Silverpeas.- Returns:
- the identifier of the deleted group.
- Throws:
AdminException
- if an error occurs.
-
updateGroup
String updateGroup(GroupDetail group) throws AdminException
Update the given group in Silverpeas and specific.- Parameters:
group
- the group to update- Returns:
- the unique identifier of the updated group
- Throws:
AdminException
- if an error occurs
-
updateGroup
String updateGroup(GroupDetail group, boolean onlyInSilverpeas) throws AdminException
Update the given group in Silverpeas and specific- Parameters:
group
- the group to updateonlyInSilverpeas
- performs the operation only in Silverpeas- Returns:
- the unique identifier of the updated group
- Throws:
AdminException
- if an error occurs
-
removeUserFromGroup
void removeUserFromGroup(String sUserId, String sGroupId) throws AdminException
- Throws:
AdminException
-
addUserInGroup
void addUserInGroup(String sUserId, String sGroupId) throws AdminException
- Throws:
AdminException
-
getAllRootGroups
List<GroupDetail> getAllRootGroups() throws AdminException
Gets allGroupState.VALID
root groups in Silverpeas. A root group is the group of users without any other parent group.- Returns:
- a list of user groups.
- Throws:
AdminException
- if an error occurs whil getting the root user groups.
-
getGroupProfileInst
GroupProfileInst getGroupProfileInst(String groupId) throws AdminException
Get the group profile instance corresponding to the given ID- Throws:
AdminException
-
addGroupProfileInst
void addGroupProfileInst(GroupProfileInst spaceProfileInst) throws AdminException
- Throws:
AdminException
-
deleteGroupProfileInst
void deleteGroupProfileInst(String groupId) throws AdminException
- Throws:
AdminException
-
updateGroupProfileInst
void updateGroupProfileInst(GroupProfileInst groupProfileInstNew) throws AdminException
- Throws:
AdminException
-
indexAllGroups
void indexAllGroups() throws AdminException
- Throws:
AdminException
-
indexGroups
void indexGroups(String domainId) throws AdminException
- Throws:
AdminException
-
getAllUsersIds
String[] getAllUsersIds() throws AdminException
- Throws:
AdminException
-
getUserDetail
UserDetail getUserDetail(String sUserId) throws AdminException
Get the user detail corresponding to the given user Id- Parameters:
sUserId
- the user id.- Returns:
- the user detail corresponding to the given user Id
- Throws:
AdminException
- if an error occurs
-
getUserDetails
UserDetail[] getUserDetails(String[] userIds)
Get the user details corresponding to the given user Ids.- Parameters:
userIds
- one or more user identifiers- Returns:
- the user details corresponding to the given user Ids.
-
getAllUsers
List<UserDetail> getAllUsers() throws AdminException
Get all users (except delete ones) from all domains.- Returns:
- the user details from all domains sort by alphabetical order
- Throws:
AdminException
- if an error occurs
-
getAllUsersFromNewestToOldest
List<UserDetail> getAllUsersFromNewestToOldest() throws AdminException
Get all users (except delete ones) from all domains.- Returns:
- the user details from all domains sort by reverse creation order
- Throws:
AdminException
- if an error occurs
-
isEmailExisting
boolean isEmailExisting(String email) throws AdminException
Checks if an existing user already have the given email- Parameters:
email
- email to check- Returns:
- true if at least one user with given email is found
- Throws:
AdminException
- if an error occurs
-
getUserIdByLoginAndDomain
String getUserIdByLoginAndDomain(String sLogin, String sDomainId) throws AdminException
Get the user id corresponding to Domain/Login (ignoring the login case)- Parameters:
sLogin
- the user loginsDomainId
- the domain of the user- Returns:
- the unique identifier of the user
- Throws:
AdminException
- if an error occurs
-
getUserIdByAuthenticationKey
String getUserIdByAuthenticationKey(String authenticationKey) throws AdminException
- Parameters:
authenticationKey
- The authentication key.- Returns:
- The user id corresponding to the authentication key.
- Throws:
AdminException
- if an error occurs
-
getUserFull
UserFull getUserFull(String sUserId) throws AdminException
Get full information about the user with the given unique identifier (only info in cache table) from its domain.- Parameters:
sUserId
- the unique identifier of the user to get.- Returns:
- a
UserFull
instance. - Throws:
AdminException
- if an error occurs while getting the user.
-
getUserFulls
List<UserFull> getUserFulls(Collection<String> userIds) throws AdminException
Gets full information about users corresponding to given unique identifiers (only info in cache table) from its domain.- Parameters:
userIds
- the unique identifiers of user to get.- Returns:
- list of
UserFull
instance. - Throws:
AdminException
- if an error occurs while getting the user.
-
getUserFull
UserFull getUserFull(String domainId, String specificId) throws AdminException
- Throws:
AdminException
-
addUser
String addUser(UserDetail userDetail) throws AdminException
Add the given user in Silverpeas and specific domain.- Parameters:
userDetail
- a user- Returns:
- the new user id.
- Throws:
AdminException
- if an error occurs
-
addUser
String addUser(UserDetail userDetail, boolean addOnlyInSilverpeas) throws AdminException
Add the given user in Silverpeas and specific domain- Parameters:
userDetail
- user to addaddOnlyInSilverpeas
- true if user must not be added in distant datasource (used by synchronization tools)- Returns:
- id of created user
- Throws:
AdminException
-
migrateUser
void migrateUser(UserDetail userDetail, String targetDomainId) throws AdminException
- Throws:
AdminException
-
blockUser
void blockUser(String userId) throws AdminException
Blocks the user represented by the given identifier.- Parameters:
userId
- the unique identifier of the user- Throws:
AdminException
- if an error occurs
-
unblockUser
void unblockUser(String userId) throws AdminException
Unblock the user represented by the given identifier.- Parameters:
userId
- the unique identifier of the user- Throws:
AdminException
- if an error occurs
-
deactivateUser
void deactivateUser(String userId) throws AdminException
Deactivates the user represented by the given identifier.- Parameters:
userId
- the unique identifier of the user- Throws:
AdminException
- if an error occurs
-
activateUser
void activateUser(String userId) throws AdminException
Activate the user represented by the given identifier.- Parameters:
userId
- the unique identifier of the user- Throws:
AdminException
- if an error occurs
-
setUserSensitiveData
void setUserSensitiveData(String userId, boolean sensitive) throws AdminException
Sets some data of the specified user as or not sensitive information. The data to be potentially sensitive are defined in the user domain to which the user belongs.- Parameters:
userId
- the unique identifier of the user.sensitive
- a boolean indicating whether the data potentially sensitive are actually sensitive or not.- Throws:
AdminException
- if the setting fails.
-
userAcceptsTermsOfService
void userAcceptsTermsOfService(String userId) throws AdminException
Updates the acceptance date of a user from its id.- Parameters:
userId
- the unique identifier of the user- Throws:
AdminException
- if an error occurs
-
restoreUser
String restoreUser(String sUserId) throws AdminException
Restores the given user from silverpeas and specific domain- Parameters:
sUserId
- the user identifier- Returns:
- the user identifier
- Throws:
AdminException
- if an error occurs
-
removeUser
String removeUser(String sUserId) throws AdminException
Removes the given user from silverpeas and specific domain- Parameters:
sUserId
- the user identifier- Returns:
- the user identifier
- Throws:
AdminException
- if an error occurs
-
deleteUser
String deleteUser(String sUserId) throws AdminException
Delete the given user from silverpeas and specific domain- Parameters:
sUserId
- the user identifier- Returns:
- the user identifier
- Throws:
AdminException
- if an error occurs
-
deleteUser
String deleteUser(String sUserId, boolean onlyInSilverpeas) throws AdminException
Delete the given user from silverpeas and specific domain- Parameters:
sUserId
- the user identifieronlyInSilverpeas
- performs the operation only in Silverpeas- Returns:
- the user identifier
- Throws:
AdminException
- if an error occurs
-
updateUser
String updateUser(UserDetail user) throws AdminException
Update the given user (ONLY IN SILVERPEAS)- Parameters:
user
- the user- Returns:
- the user identifier
- Throws:
AdminException
- if an error occurs
-
updateUserFull
String updateUserFull(UserFull user) throws AdminException
Update the given user in Silverpeas and specific domain- Parameters:
user
- the user- Returns:
- the user identifier
- Throws:
AdminException
- if an error occurs
-
getClientSpaceId
String getClientSpaceId(String sDriverSpaceId)
Converts driver space id to client space id- Parameters:
sDriverSpaceId
- the local space identifier- Returns:
- the global space identifier
-
getClientSpaceIds
String[] getClientSpaceIds(String[] asDriverSpaceIds)
Converts driver space ids to client space ids- Parameters:
asDriverSpaceIds
- one or more local space identifiers- Returns:
- the global identifier of the specified spaces.
-
getNextDomainId
String getNextDomainId() throws AdminException
- Throws:
AdminException
-
addDomain
String addDomain(Domain theDomain) throws AdminException
Create a new domain- Parameters:
theDomain
- the user domain to create.- Returns:
- the unique identifier of the domain
- Throws:
AdminException
-
updateDomain
String updateDomain(Domain domain) throws AdminException
Update a domain- Parameters:
domain
- the domain to update- Returns:
- the unique identifier of the updated domain.
- Throws:
AdminException
-
removeDomain
String removeDomain(String domainId) throws AdminException
Remove a domain- Parameters:
domainId
- the unique identifier of a domain- Returns:
- the unique identifier of the deleted domain
- Throws:
AdminException
-
getAllDomains
Domain[] getAllDomains() throws AdminException
Get all domains- Returns:
- an array with all the user domains in Silverpeas
- Throws:
AdminException
-
getDomain
Domain getDomain(String domainId) throws AdminException
Get a domain with given id- Parameters:
domainId
- the unique domain identifier- Returns:
- the user domain
- Throws:
AdminException
-
getDomainActions
long getDomainActions(String domainId) throws AdminException
- Throws:
AdminException
-
getRootGroupsOfDomain
GroupDetail[] getRootGroupsOfDomain(String domainId) throws AdminException
Gets allGroupState.VALID
groups at the root of a domain.- Parameters:
domainId
- identifier of a domain.- Returns:
- an array of
GroupDetail
instance. - Throws:
AdminException
- on any technical error.
-
getSynchronizedGroups
List<GroupDetail> getSynchronizedGroups() throws AdminException
- Throws:
AdminException
-
getAllUsersOfGroup
UserDetail[] getAllUsersOfGroup(String groupId) throws AdminException
Gets all users of a group, including these ofGroupState.VALID
subgroups.- Parameters:
groupId
- the identifier of the group from which users are retrieved.- Returns:
- an array of
UserDetail
instance. - Throws:
AdminException
- on any technical error.
-
getUsersOfDomain
UserDetail[] getUsersOfDomain(String domainId) throws AdminException
- Throws:
AdminException
-
getUsersOfDomains
List<UserDetail> getUsersOfDomains(List<String> domainIds) throws AdminException
Get all users (except delete ones) from specified domains.- Parameters:
domainIds
- a list of domain identifiers- Returns:
- the user details from specified domains sort by alphabetical order
- Throws:
AdminException
- if an error occurs
-
getUsersOfDomainsFromNewestToOldest
List<UserDetail> getUsersOfDomainsFromNewestToOldest(List<String> domainIds) throws AdminException
Get all users (except delete ones) from specified domains.- Parameters:
domainIds
- a list of domain identifiers.- Returns:
- the user details from specified domains sort by reverse creation order
- Throws:
AdminException
- if an error occurs
-
getUserIdsOfDomain
String[] getUserIdsOfDomain(String domainId) throws AdminException
- Throws:
AdminException
-
identify
String identify(String sKey, String sSessionId, boolean isAppInMaintenance) throws AdminException
- Throws:
AdminException
-
identify
String identify(String sKey, String sSessionId, boolean isAppInMaintenance, boolean removeKey) throws AdminException
- Throws:
AdminException
-
getDirectGroupsOfUser
List<GroupDetail> getDirectGroupsOfUser(String userId) throws AdminException
- Throws:
AdminException
-
getUserSpaceIds
String[] getUserSpaceIds(String sUserId) throws AdminException
Get the spaces ids allowed for the given user- Parameters:
sUserId
- the unique identifier of a user- Returns:
- the unique identifier of the allowed spaces.
- Throws:
AdminException
- if an error occurs
-
getUserRootSpaceIds
String[] getUserRootSpaceIds(String sUserId) throws AdminException
Get the root spaces ids allowed for the given user- Parameters:
sUserId
- the unique identifier of a user- Returns:
- the unique identifier of the allowed root spaces.
- Throws:
AdminException
- if an error occurs
-
getUserSubSpaceIds
String[] getUserSubSpaceIds(String sUserId, String spaceId) throws AdminException
Get the subspaces ids in the specified space that are allowed for the given user- Parameters:
sUserId
- the unique identifier of a userspaceId
- the unique identifier of the space parent.- Returns:
- the unique identifier of the allowed root spaces.
- Throws:
AdminException
- if an error occurs
-
isSpaceAvailable
boolean isSpaceAvailable(String userId, String spaceId) throws AdminException
This method permit knowing if the given space is allowed to the given user.- Parameters:
userId
- the unique identifier of a userspaceId
- the unique identifier of a space- Returns:
- true if user is allowed to access to one component (at least) in given space, false otherwise.
- Throws:
AdminException
- if an error occurs
-
getUserSpaceAvailabilityChecker
UserSpaceAvailabilityChecker getUserSpaceAvailabilityChecker(String userId) throws AdminException
This method allows callers to perform several space availability checks for a given user.This is useful for treatments requiring highest performances than calling each time
isSpaceAvailable(String, String)
for example.IMPORTANT: the
UserSpaceAvailabilityChecker
MUST not be an attribute of a singleton instance.- Parameters:
userId
- the unique identifier of a user- Returns:
- a
UserSpaceAvailabilityChecker
instance initialized for the given user identifier. - Throws:
AdminException
- if an error occurs
-
getSubSpaces
List<SpaceInstLight> getSubSpaces(String spaceId) throws AdminException
- Throws:
AdminException
-
getAvailCompoInSpace
List<ComponentInstLight> getAvailCompoInSpace(String userId, String spaceId) throws AdminException
Get components of a given space (and subspaces) available to a user.- Parameters:
userId
- the unique identifier of a userspaceId
- the unique identifier of a space- Returns:
- a list of ComponentInstLight
- Throws:
AdminException
- if an error occurs
-
getUserSpaceTreeview
List<SpaceInstLight> getUserSpaceTreeview(String userId) throws AdminException
Get all spaces available to a user. N levels compliant. Infos of each space are in SpaceInstLight object.- Parameters:
userId
- the unique identifier of a user- Returns:
- an ordered list of SpaceInstLight. Built according a depth-first algorithm.
- Throws:
AdminException
- if an error occurs
-
getAllowedSubSpaceIds
String[] getAllowedSubSpaceIds(String userId, String spaceFatherId) throws AdminException
- Throws:
AdminException
-
getSpaceInstLightById
SpaceInstLight getSpaceInstLightById(String sClientSpaceId) throws AdminException
Get the space instance light (only space id, father id and name) with the given space id- Parameters:
sClientSpaceId
- client space id (as WAxx)- Returns:
- Space information as SpaceInstLight object
- Throws:
AdminException
- if an error occurs
-
getRootSpace
SpaceInstLight getRootSpace(String spaceId) throws AdminException
Return the higher space according to a subspace (N level compliant)- Parameters:
spaceId
- the subspace id- Returns:
- a SpaceInstLight object
- Throws:
AdminException
- if an error occurs
-
getGroupManageableSpaceIds
String[] getGroupManageableSpaceIds(String sGroupId) throws AdminException
Get all the spaces ids manageable by given group id.It means the direct space ids the group is indicated to and all the sub spaces ids by inheritance.
- Parameters:
sGroupId
- the unique identifier of a group- Returns:
- an array of space identifiers.
- Throws:
AdminException
- if an error occurs
-
getUserManageableSpaceIds
String[] getUserManageableSpaceIds(String sUserId) throws AdminException
Get all the spaces ids manageable by given user id.It means the direct space ids the user is indicated to and all the sub spaces ids by inheritance.
- Parameters:
sUserId
- the unique identifier of a user- Returns:
- an array of space identifiers
- Throws:
AdminException
- if an error occurs
-
getUserManageableSubSpaceIds
String[] getUserManageableSubSpaceIds(String sUserId, String sParentSpaceId) throws AdminException
Get the subspace manageable by given user id in given space- Parameters:
sUserId
- the unique identifier of a usersParentSpaceId
- the identifier of the parent space- Returns:
- an array of space identifiers
- Throws:
AdminException
- if an error occurs
-
getSpaceProfile
SpaceProfile getSpaceProfile(String spaceId, SilverpeasRole role) throws AdminException
Gets the space profile instance which provides all user and group identifiers through simple methods.- Parameters:
spaceId
- the identifier of aimed space.role
- the aimed technical role name.- Returns:
- the
SpaceProfile
instance. - Throws:
AdminException
- on a technical error.
-
getUserManageableGroupIds
List<String> getUserManageableGroupIds(String sUserId) throws AdminException
- Throws:
AdminException
-
getAvailCompoIds
String[] getAvailCompoIds(String sClientSpaceId, String sUserId) throws AdminException
Get the component ids allowed for the given user id in the given space- Parameters:
sClientSpaceId
- the global space identifiersUserId
- the unique identifier of a user- Returns:
- an array of component instance identifiers
- Throws:
AdminException
- if an error occurs
-
isAnAdminTool
boolean isAnAdminTool(String toolId)
Is the specified tool belongs to the administration component? The administration component (or administrative console) forms a particular component made up of several tools, each of them providing an administrative feature. Each tool in the administration component have the same identifier that refers in fact the administration console.- Parameters:
toolId
- the unique identifier of the tool.- Returns:
- true if the tool belongs to the administration component.
-
getAvailableComponentsByUser
List<String> getAvailableComponentsByUser(String userId) throws AdminException
Gets the component instance identifiers available for the specified user? A component is an application in Silverpeas to perform some tasks and to manage some resources. Each component in Silverpeas can be instantiated several times, each of them corresponding then to a running application in Silverpeas, and it is uniquely identified from others instances by a given identifier.- Parameters:
userId
- the unique identifier of a user.- Returns:
- a list of component instance identifier as string.
- Throws:
AdminException
- if an error occurs
-
isComponentAvailableToUser
boolean isComponentAvailableToUser(String componentId, String userId) throws AdminException
Is the specified component instance available among the components instances accessible by the specified user? A component is an application in Silverpeas to perform some tasks and to manage some resources. Each component in Silverpeas can be instantiated several times, each of them corresponding then to a running application in Silverpeas, and it is uniquely identified from others instances by a given identifier.- Parameters:
componentId
- the unique identifier of a component instance.userId
- the unique identifier of a user.- Returns:
- true if the component instance is available, false otherwise.
- Throws:
AdminException
- if an error occurs
-
isComponentAvailableToGroup
boolean isComponentAvailableToGroup(String componentId, String groupId) throws AdminException
Is the specified component instance available among the components instances accessible by the specified group of users? A component is an application in Silverpeas to perform some tasks and to manage some resources. Each component in Silverpeas can be instantiated several times, each of them corresponding then to a running application in Silverpeas, and it is uniquely identified from others instances by a given identifier.- Parameters:
componentId
- the unique identifier of a component instance.groupId
- the unique identifier of a group of users.- Returns:
- true if the component instance is available, false otherwise.
- Throws:
AdminException
- if an error occurs
-
isComponentManageable
boolean isComponentManageable(String componentId, String userId) throws AdminException
Is the specified component instance manageable by the given user? The component instance is manageable if the user has enough access right to manage it.- Parameters:
componentId
- the unique identifier of the component instance.userId
- the unique identifier of a user.- Returns:
- true of the user can manage the specified component instance. False otherwise.
- Throws:
AdminException
- if an error occurs while checking the access right of the user.
-
getAvailCompoIdsAtRoot
String[] getAvailCompoIdsAtRoot(String sClientSpaceId, String sUserId) throws AdminException
Get ids of components allowed to user in given space (not in subspaces)- Parameters:
sClientSpaceId
- the identifier of a spacesUserId
- the unique identifier of a user- Returns:
- an array of componentId (kmelia12, hyperlink145...)
- Throws:
AdminException
- if an error occurs
-
getAvailCompoIdsAtRoot
List<String> getAvailCompoIdsAtRoot(String sClientSpaceId, String sUserId, String componentNameRoot) throws AdminException
Get the componentIds allowed for the given user Id in the given space and the componentNameRoot- Parameters:
sClientSpaceId
- the unique identifier of a spacesUserId
- the unique identifier of a usercomponentNameRoot
- the root name of the component- Returns:
- a list of component ids
- Throws:
AdminException
- if an error occurs
-
getAvailCompoIds
String[] getAvailCompoIds(String userId) throws AdminException
Get the component ids allowed for the given user id.- Parameters:
userId
- the unique identifier of a user- Throws:
AdminException
- if an error occurs
-
getComponentIdsByNameAndUserId
String[] getComponentIdsByNameAndUserId(String sUserId, String sComponentName) throws AdminException
- Throws:
AdminException
-
getAvailComponentInstLights
List<ComponentInstLight> getAvailComponentInstLights(String userId, String componentName) throws AdminException
Gets the available component for a given user- Parameters:
userId
- user identifier used to get componentcomponentName
- type of component to retrieve ( for example : kmelia, forums, blog)- Returns:
- a list of ComponentInstLight object
- Throws:
AdminException
- if an error occurs
-
getRootSpacesContainingComponent
List<SpaceInstLight> getRootSpacesContainingComponent(String userId, String componentName) throws AdminException
This method returns all root spaces which contains at least one allowed component of type componentName in this space or subspaces.- Parameters:
userId
- the unique identifier of a usercomponentName
- the component type (kmelia, gallery...)- Returns:
- a list of root spaces
- Throws:
AdminException
- if an error occurs
-
getSubSpacesContainingComponent
List<SpaceInstLight> getSubSpacesContainingComponent(String spaceId, String userId, String componentName) throws AdminException
This method returns all sub spaces which contains at least one allowed component of type componentName in this space or subspaces.- Parameters:
userId
- the unique identifier of a usercomponentName
- the component type (kmelia, gallery...)- Returns:
- a list of root spaces
- Throws:
AdminException
- if an error occurs
-
getCompoForUser
CompoSpace[] getCompoForUser(String sUserId, String sComponentName) throws AdminException
Get the tuples (space id, compo id) allowed for the given user and given component name- Parameters:
sUserId
- the user identifiersComponentName
- the name of a component- Returns:
- an array of tuples (space id, component instance id)
- Throws:
AdminException
- if an error occurs
-
getCompoId
String[] getCompoId(String sComponentName) throws AdminException
Return the compo id for the given component name- Parameters:
sComponentName
- a name of a component- Returns:
- an array with the identifier of the instances of the specified component
- Throws:
AdminException
- if an error occurs
-
getProfileIds
String[] getProfileIds(String sUserId) throws AdminException
Get all the profile ids for the given user- Parameters:
sUserId
- the unique identifier of a user- Returns:
- an array with the identifier of all profiles of the user
- Throws:
AdminException
- if an error occurs
-
getProfileIdsOfGroup
String[] getProfileIdsOfGroup(String sGroupId) throws AdminException
Get all the profile ids for the given group- Parameters:
sGroupId
- the unique identifier of a group- Returns:
- an array with the identifier of all profiles of the group
- Throws:
AdminException
- if an error occurs
-
getCurrentProfiles
String[] getCurrentProfiles(String sUserId, ComponentInst componentInst)
Get the profile names of the given user for the given component instance- Parameters:
sUserId
- a unique identifier of a usercomponentInst
- a component instance- Returns:
- an array of all the name of the profiles in which the given user is for the given component instance
-
getCurrentProfiles
String[] getCurrentProfiles(String sUserId, String componentId) throws AdminException
Get the profile names of the given user for the given component instance- Parameters:
sUserId
- a unique identifier of a usercomponentId
- the unique identifier of a component instance- Returns:
- an array of all the name of the profiles in which the given user is for the given component instance
- Throws:
AdminException
- if an error occurs
-
getUserProfilesByComponentId
Map<String,Set<String>> getUserProfilesByComponentId(String userId, Collection<String> componentIds) throws AdminException
Gets the profile names of given user indexed by the given component instances.- Parameters:
userId
- a user identifier as string.componentIds
- list of component instance identifier as string.- Returns:
- a map filled with list of profile name as string by component instance identifier as string.
- Throws:
AdminException
- if an error occurs
-
getSpaceUserProfilesBySpaceId
List<String> getSpaceUserProfilesBySpaceId(String userId, String spaceId) throws AdminException
Get the profile names of the given user for the given space.- Parameters:
userId
- a unique identifier of a user.spaceId
- the unique identifier of a space.- Returns:
- an list of all the name of the profiles in which the given user is for the given space.
- Throws:
AdminException
- if an error occurs
-
getSpaceUserProfilesBySpaceIds
Map<String,Set<String>> getSpaceUserProfilesBySpaceIds(String userId, Collection<String> spaceIds) throws AdminException
Gets the space profile names of given user indexed by the given spaces.- Parameters:
userId
- a user identifier as string.spaceIds
- list of space identifier as string.- Returns:
- a map filled with list of profile name as string by space identifier as string.
- Throws:
AdminException
- if an error occurs
-
getUsers
UserDetail[] getUsers(boolean bAllProfiles, String sProfile, String sClientComponentId) throws AdminException
Gets all the users in the given profile for the given component instance in the given space.- Parameters:
bAllProfiles
- if bAllProfiles = true, return all the user details for the given space and given component if bAllProfiles = false, return the user details only for the given profile for the given space and given componentsProfile
- the identifier of a profilesClientComponentId
- the unique identifier of a component instance.- Throws:
AdminException
- if an error occurs
-
getAllSubGroups
GroupDetail[] getAllSubGroups(String parentGroupId) throws AdminException
For use in userPanel : return the directGroupState.VALID
subgroups.- Parameters:
parentGroupId
- the unique identifier of the parent group- Returns:
- an array with all the groups children of the specified group
- Throws:
AdminException
- if an error occurs
-
getRecursivelyAllSubGroups
GroupDetail[] getRecursivelyAllSubGroups(String parentGroupId) throws AdminException
For use in userPanel: return recursively the directGroupState.VALID
subgroups of the specified group.- Parameters:
parentGroupId
- the unique identifier of the parent group- Returns:
- an array with all the groups children of the specified group
- Throws:
AdminException
- if an error occurs
-
getFilteredDirectUsers
UserDetail[] getFilteredDirectUsers(String sGroupId, String sUserLastNameFilter) throws AdminException
For use in userPanel: return the users that are direct child of a given group- Parameters:
sGroupId
- the unique identifier of the groupsUserLastNameFilter
- filter on the user last name.- Returns:
- an array with all the users in the given group
- Throws:
AdminException
- if an error occurs
-
getAllSubUsersNumber
int getAllSubUsersNumber(String sGroupId) throws AdminException
For use in userPanel: return the total number of users recursively contained in a group- Parameters:
sGroupId
- the unique identifier of a group- Returns:
- the number of users in the given group and its subgroups.
- Throws:
AdminException
- if an error occurs
-
getAdministratorUserIds
String[] getAdministratorUserIds(String fromUserId) throws AdminException
Get the identifiers of the administrators accessible by the given user.- Parameters:
fromUserId
- the identifier of a user- Returns:
- an array with the identifier of all the administrators that can be contacted by the given user
- Throws:
AdminException
- if an error occurs
-
getSilverpeasEmail
String getSilverpeasEmail()
Gets the email of Silverpeas. This email is dedicated to be used when Silverpeas sends emails to users.- Returns:
- a non-reply address email with which Silverpeas sent emails to users.
-
getSilverpeasName
String getSilverpeasName()
Gets the name of Silverpeas to use when it sends notifications to users.- Returns:
- the name to use when the system (Silverpeas) sends notifications to users.
-
getAllSpaceIds
String[] getAllSpaceIds(String sUserId) throws AdminException
- Throws:
AdminException
-
getAllRootSpaceIds
String[] getAllRootSpaceIds(String sUserId) throws AdminException
- Throws:
AdminException
-
getAllSubSpaceIds
String[] getAllSubSpaceIds(String sSpaceId, String sUserId) throws AdminException
- Throws:
AdminException
-
getAllComponentIds
String[] getAllComponentIds(String sSpaceId) throws AdminException
Returns all the component identifiers of the space represented by the given identifier.Component instance of sub spaces are not retrieved.
It returns also ids of
SilverpeasPersonalComponentInstance
instances.- Parameters:
sSpaceId
- the unique identifier of a space- Returns:
- the identifiers of the component instances in the given space.
- Throws:
AdminException
- if an error occurs
-
getAllComponentIdsRecur
String[] getAllComponentIdsRecur(String sSpaceId) throws AdminException
Returns all the component identifiers of the space, and its sub spaces, represented by the given identifier.It returns also ids of
SilverpeasPersonalComponentInstance
instances.- Parameters:
sSpaceId
- the unique identifier of a space- Returns:
- an array with the identifier of all the component instances in the given space and its subspaces.
- Throws:
AdminException
- if an error occurs
-
synchronizeGroupByRule
void synchronizeGroupByRule(String groupId, boolean scheduledMode) throws AdminException
- Throws:
AdminException
-
synchronizeGroup
String synchronizeGroup(String groupId, boolean recurs) throws AdminException
- Throws:
AdminException
-
synchronizeImportGroup
String synchronizeImportGroup(String domainId, String groupKey, String askedParentId, boolean recurs, boolean isIdKey) throws AdminException
- Throws:
AdminException
-
synchronizeRemoveGroup
String synchronizeRemoveGroup(String groupId) throws AdminException
- Throws:
AdminException
-
synchronizeUser
String synchronizeUser(String userId, boolean recurs) throws AdminException
Synchronize Users and groups between cache and domain's datastore- Parameters:
userId
- the identifier of the user performing the synchronizationrecurs
- the synchronization should be recursive?- Returns:
- the identifier of the user invoking this method
- Throws:
AdminException
- if an error occurs
-
synchronizeImportUserByLogin
String synchronizeImportUserByLogin(String domainId, String userLogin, boolean recurs) throws AdminException
Synchronize Users and groups between cache and domain's datastore- Parameters:
domainId
- the identifier of the domain concerned by the importuserLogin
- the login of a user in the given domainrecurs
- the synchronization should be recursive?- Returns:
- the identifier of the user invoking this method
- Throws:
AdminException
- if an error occurs
-
synchronizeImportUser
String synchronizeImportUser(String domainId, String specificId, boolean recurs) throws AdminException
Synchronize Users and groups between cache and domain's datastore- Parameters:
domainId
- the identifier of the domain concerned by the importspecificId
- the identifier of the user specific to the given domainrecurs
- the synchronization should be recursive?- Returns:
- the identifier of the user invoking this method
- Throws:
AdminException
- if an error occurs
-
getSpecificPropertiesToImportUsers
List<DomainProperty> getSpecificPropertiesToImportUsers(String domainId, String language) throws AdminException
- Throws:
AdminException
-
searchUsers
UserDetail[] searchUsers(String domainId, Map<String,String> query) throws AdminException
- Throws:
AdminException
-
synchronizeRemoveUser
String synchronizeRemoveUser(String userId) throws AdminException
- Throws:
AdminException
-
synchronizeSilverpeasWithDomain
String synchronizeSilverpeasWithDomain(String sDomainId) throws AdminException
- Throws:
AdminException
-
synchronizeSilverpeasWithDomain
String synchronizeSilverpeasWithDomain(String sDomainId, boolean threaded) throws AdminException
- Throws:
AdminException
-
searchUserIdsByProfile
List<String> searchUserIdsByProfile(List<String> profileIds, boolean includeRemovedUsersAndGroups) throws AdminException
- Throws:
AdminException
-
searchUsers
SilverpeasList<UserDetail> searchUsers(UserDetailsSearchCriteria searchCriteria) throws AdminException
- Throws:
AdminException
-
searchGroups
SilverpeasList<GroupDetail> searchGroups(GroupsSearchCriteria searchCriteria) throws AdminException
- Throws:
AdminException
-
indexAllUsers
void indexAllUsers() throws AdminException
- Throws:
AdminException
-
indexUsers
void indexUsers(String domainId) throws AdminException
- Throws:
AdminException
-
copyAndPasteComponent
String copyAndPasteComponent(PasteDetail pasteDetail) throws AdminException, QuotaException
- Throws:
AdminException
QuotaException
-
copyAndPasteSpace
String copyAndPasteSpace(PasteDetail pasteDetail) throws AdminException, QuotaException
- Throws:
AdminException
QuotaException
-
assignRightsFromUserToUser
void assignRightsFromUserToUser(RightAssignationContext.MODE operationMode, String sourceUserId, String targetUserId, boolean nodeAssignRights, String authorId) throws AdminException
Assign rights of a user to a user- Parameters:
operationMode
- value ofRightAssignationContext.MODE
sourceUserId
- the user id of the source usertargetUserId
- the user id of the target usernodeAssignRights
- true if you want also to apply the operation to the rights on nodesauthorId
- the userId of the author of this action- Throws:
AdminException
- if an error occurs
-
assignRightsFromUserToGroup
void assignRightsFromUserToGroup(RightAssignationContext.MODE operationMode, String sourceUserId, String targetGroupId, boolean nodeAssignRights, String authorId) throws AdminException
Assign rights of a user to a group- Parameters:
operationMode
- value ofRightAssignationContext.MODE
sourceUserId
- the user id of the source usertargetGroupId
- the group id of the target groupnodeAssignRights
- true if you want also to apply the operation to the rights on nodesauthorId
- the userId of the author of this action- Throws:
AdminException
- if an error occurs
-
assignRightsFromGroupToUser
void assignRightsFromGroupToUser(RightAssignationContext.MODE operationMode, String sourceGroupId, String targetUserId, boolean nodeAssignRights, String authorId) throws AdminException
Assign rights of a group to a user- Parameters:
operationMode
- value ofRightAssignationContext.MODE
sourceGroupId
- the group id of the source grouptargetUserId
- the user id of the target usernodeAssignRights
- true if you want also to apply the operation to the rights on nodesauthorId
- the userId of the author of this action- Throws:
AdminException
- if an error occurs
-
assignRightsFromGroupToGroup
void assignRightsFromGroupToGroup(RightAssignationContext.MODE operationMode, String sourceGroupId, String targetGroupId, boolean nodeAssignRights, String authorId) throws AdminException
Assign rights of a group to a group- Parameters:
operationMode
- value ofRightAssignationContext.MODE
sourceGroupId
- the group id of the source grouptargetGroupId
- the group id of the target groupnodeAssignRights
- true if you want also to apply the operation to the rights on nodesauthorId
- the userId of the author of this action- Throws:
AdminException
- if an error occurs
-
isDomainManagerUser
boolean isDomainManagerUser(String userId, String domainId)
Is the specified user a manager of the specified domain?- Parameters:
userId
- the user identifier.domainId
- the domain identifier.- Returns:
- true if user identified by given userId is the manager of given domain identifier.
-
getFullTreeview
SpaceWithSubSpacesAndComponents getFullTreeview() throws AdminException
- Throws:
AdminException
-
getAllowedFullTreeview
SpaceWithSubSpacesAndComponents getAllowedFullTreeview(String userId) throws AdminException
- Throws:
AdminException
-
getAllowedFullTreeviewOnComponentName
SpaceWithSubSpacesAndComponents getAllowedFullTreeviewOnComponentName(String userId, String componentName) throws AdminException
- Throws:
AdminException
-
getAllowedFullTreeview
SpaceWithSubSpacesAndComponents getAllowedFullTreeview(String userId, String spaceId) throws AdminException
- Throws:
AdminException
-
getRemovedGroups
List<GroupDetail> getRemovedGroups(String... domainIds) throws AdminException
Gets all the groups that were removed in the specified domains. If no domains are specified, then all the domains are taken into account.- Parameters:
domainIds
- the unique identifiers of the domains.- Returns:
- a list of groups or an empty list if there is no removed groups in the specified domains.
- Throws:
AdminException
- if an error occurs
-
getRemovedUsers
List<UserDetail> getRemovedUsers(String... domainIds) throws AdminException
Gets all the users that were removed in the specified domains. If no domains are specified, then all the domains are taken into account.- Parameters:
domainIds
- the unique identifiers of the domains.- Returns:
- a list of users or an empty list if there is no removed users in the specified domains.
- Throws:
AdminException
- if an error occurs
-
getNonBlankedDeletedUsers
List<UserDetail> getNonBlankedDeletedUsers(String... domainIds) throws AdminException
Gets all the users that were deleted in the specified domains and that weren't blanked. If no domains are specified, then all the domains are taken into account.- Parameters:
domainIds
- the unique identifiers of the domains.- Returns:
- a list of users or an empty list if there is no deleted users in the specified domains.
- Throws:
AdminException
- if an error occurs
-
getUsersWithSensitiveData
List<UserDetail> getUsersWithSensitiveData(String... domainIds) throws AdminException
Gets all the users in the specified domains having sensitive data.- Parameters:
domainIds
- the unique identifiers of the domains.- Returns:
- a list of users or an empty list if there is no users with sensitive data in the specified domains.
- Throws:
AdminException
- if an error occurs.
-
blankDeletedUsers
void blankDeletedUsers(String targetDomainId, List<String> userIds) throws AdminException
Blanks the specified users in the specified domain. The users have to be deleted in Silverpeas, otherwise anAdminException
exception is thrown.- Parameters:
targetDomainId
- the unique identifier of the domain.userIds
- a list of unique identifiers of deleted users in the specified domain.- Throws:
AdminException
- if an error occurs while blanking the deleted users.
-
disableDataSensitivity
void disableDataSensitivity(String domainId, List<String> userIds) throws AdminException
Disables the privacy of the data marked as potentially sensitive for the specified users in the given domain. The data that can be sensitive are defined in the user domain of the users. This is why users from different domains can have different sensitive data. By default, those data aren't sensitive, but their privacy can be enabled and disabled per user.- Parameters:
domainId
- the unique identifier of a user domain.userIds
- a list of unique identifiers of users in the given domain for which the sensitivity of their data should be disabled.- Throws:
AdminException
- if an error occurs while disabling the sensitivity of the data for the users in the given user domain.
-
-