public interface IdentityService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CUSTOM_USER_INFO_DEFINITION |
static java.lang.String |
CUSTOM_USER_INFO_VALUE |
static java.lang.String |
GROUP |
static java.lang.String |
ICON |
static java.lang.String |
ROLE |
static java.lang.String |
USER |
static java.lang.String |
USER_CONTACT_INFO |
static java.lang.String |
USER_LOGIN |
static java.lang.String |
USERMEMBERSHIP |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCredentials(SUser user,
java.lang.String password)
Checks whether the couple user/password is valid.
|
SCustomUserInfoDefinition |
createCustomUserInfoDefinition(SCustomUserInfoDefinition customUserInfo)
Create custom user info definition in DB for a server given custom user info definition
|
SCustomUserInfoValue |
createCustomUserInfoValue(SCustomUserInfoValue customUserInfo)
Create profileMetadataValue in DB for give profileMetadataValue object
|
void |
createGroup(SGroup group,
java.lang.String iconFileName,
byte[] iconContent)
Create group in DB for the given group object
|
void |
createRole(SRole role,
java.lang.String iconFilename,
byte[] iconContent)
Create role in DB for the given role
|
SUser |
createUser(SUser user)
Create
SUser and store it to persistence layer |
SUser |
createUser(SUser sUser,
SContactInfo personalContactInfo,
SContactInfo proContactInfo,
java.lang.String iconFilename,
byte[] iconContent)
create a new user in database along with its contact data
|
SContactInfo |
createUserContactInfo(SContactInfo contactInfo)
Create user contact information for given data
|
void |
createUserMembership(SUserMembership userMembership)
Create userMembership in DB for the given userMembership object
|
SUser |
createUserWithoutEncryptingPassword(SUser user)
Deprecated.
|
void |
deleteAllGroups()
Delete all groups for the connected tenant
|
void |
deleteAllRoles()
Delete all roles for the connected tenant
|
void |
deleteAllUserMemberships()
Delete all user memberships for the connected tenant
|
void |
deleteAllUsers()
Delete all users for the connected tenant
|
java.util.List<java.lang.Long> |
deleteChildrenGroup(long groupId)
delete children groups of the given group if there is some
|
void |
deleteCustomUserInfoDefinition(long customUserInfoDefinitionId)
Delete the id specified custom user info
|
void |
deleteCustomUserInfoDefinition(SCustomUserInfoDefinition metadataDefinition)
Delete the specific custom user info
|
void |
deleteCustomUserInfoValue(long customUserInfoValueId)
Delete the id specified profileMetadataValue
|
void |
deleteCustomUserInfoValue(SCustomUserInfoValue customUserInfo)
Delete the specific profileMetadataValue
|
void |
deleteGroup(long groupId)
Delete the id specified group
|
void |
deleteGroup(SGroup group)
Delete the specific group
|
void |
deleteLightUserMembership(SUserMembership userMembership)
Delete the specific light userMembership
|
void |
deleteRole(long roleId)
Delete the id specified role
|
void |
deleteRole(SRole role)
Delete the specific role
|
void |
deleteUser(long userId)
Delete user by its id
|
void |
deleteUser(SUser user)
Delete the specific user
|
void |
deleteUserMembership(long userMembershipId)
Delete the id specified userMembership
|
void |
deleteUserMembership(SUserMembership userMembership)
Delete the specific userMembership
|
java.util.List<SUser> |
getActiveUsersInGroup(long groupId,
int fromIndex,
int numberOfUsers,
java.lang.String field,
OrderByType order)
Get a
List of Active SUser for given SGroup from specific interval, sorted by
field attribute in the given
OrderByType
order order. |
java.util.List<SUser> |
getActiveUsersWithManager(long managerId,
int fromIndex,
int numberMaxOfUsers,
java.lang.String field,
OrderByType order)
Get all active users managed by a specific manager from a specific interval.
|
java.util.List<SUser> |
getActiveUsersWithRole(long roleId,
int fromIndex,
int numberOfUsers)
|
java.util.List<SUser> |
getActiveUsersWithRole(long roleId,
int fromIndex,
int numberOfUsers,
java.lang.String field,
OrderByType order)
Get a
List of active SUser for given SRole from specific interval, sorted by field
attribute in the given
OrderByType
order order. |
SCustomUserInfoDefinition |
getCustomUserInfoDefinition(long customUserInfoDefinitionId)
Get
SCustomUserInfoDefinition by its id |
SCustomUserInfoDefinition |
getCustomUserInfoDefinitionByName(java.lang.String name)
Get a
SCustomUserInfoDefinition by its name |
java.util.List<SCustomUserInfoDefinition> |
getCustomUserInfoDefinitions(int fromIndex,
int maxResults)
Get a
List of SCustomUserInfoDefinition from specific interval |
java.util.List<SCustomUserInfoDefinition> |
getCustomUserInfoDefinitions(java.util.List<java.lang.Long> customUserInfoDefinitionIds)
Get a
List of SCustomUserInfoDefinition of the given identifiers |
SCustomUserInfoValue |
getCustomUserInfoValue(long customUserInfoValueId)
Get
SCustomUserInfoValue by its id |
java.util.List<SCustomUserInfoValue> |
getCustomUserInfoValues(java.util.List<java.lang.Long> customUserInfoValueIds)
Get a
List of SCustomUserInfoValue of the given identifiers |
SGroup |
getGroup(long groupId)
Get
SGroup by its identifier |
SGroup |
getGroupByPath(java.lang.String groupPath)
Get the
SGroup by its path |
java.util.List<SGroup> |
getGroupChildren(long parentGroupId,
int fromIndex,
int numberOfGroups)
Get a
List child SGroup in a specific interval for specific group. |
java.util.List<SGroup> |
getGroupChildren(long parentGroupId,
int fromIndex,
int numberOfGroups,
java.lang.String field,
OrderByType order)
Get a
List of child SGroup in specific interval, sorted by field attribute in the given
OrderByType order. |
java.util.List<SGroup> |
getGroups(int fromIndex,
int numberOfGroups)
Get a
List of SGroup in a specific interval, this is used for pagination
If the number of existing results are lower than the number asked, all results from the given index are
retrieved. |
java.util.List<SGroup> |
getGroups(int fromIndex,
int numberOfGroups,
java.lang.String field,
OrderByType order)
Get a
List of SGroup in specific interval, sorted by field attribute in the given
OrderByType order. |
java.util.List<SGroup> |
getGroups(java.util.List<java.lang.Long> groupIds)
Get a
List of SGroup for specific groupIds |
SIcon |
getIcon(long id)
get the icon using its id
|
java.util.List<SUser> |
getInactiveUsersInGroup(long groupId,
int fromIndex,
int numberOfUsers,
java.lang.String field,
OrderByType order)
Get a
List of Inactive SUser for given SGroup from specific interval, sorted by
field attribute in the given
OrderByType
order order. |
java.util.List<SUser> |
getInactiveUsersWithManager(long managerId,
int fromIndex,
int numberMaxOfUsers,
java.lang.String field,
OrderByType order)
Get all inactive users managed by a specific manager from a specific interval.
|
java.util.List<SUser> |
getInactiveUsersWithRole(long roleId,
int fromIndex,
int numberOfUsers)
|
java.util.List<SUser> |
getInactiveUsersWithRole(long roleId,
int fromIndex,
int numberOfUsers,
java.lang.String field,
OrderByType order)
Get a
List of Inactive SUser for given SRole from specific interval, sorted by
field attribute in the given
OrderByType
order order. |
SUserMembership |
getLightUserMembership(long userMembershipId)
Get light userMembership by its id
|
SUserMembership |
getLightUserMembership(long userId,
long groupId,
long roleId)
Get the
SUserMembership of the specific user, group and role without userName, groupName and roleName
being set. |
java.util.List<SUserMembership> |
getLightUserMemberships(int startIndex,
int numberOfElements)
Get light userMembership in a specific interval, this is used for pagination
|
long |
getNumberOfCustomUserInfoDefinition()
Get total number of
SCustomUserInfoDefinition of the current tenant |
long |
getNumberOfCustomUserInfoValue(QueryOptions options)
Get total number of
SCustomUserInfoValue of the current tenant matching the criterias of the given
QueryOptions |
long |
getNumberOfGroupChildren(long parentGroupId)
Get number of child groups for the group identified by the given id
|
long |
getNumberOfGroups()
Get total number of
SGroup in the current tenant |
long |
getNumberOfGroups(QueryOptions options)
Get total number of groups according to specific query options
|
long |
getNumberOfRoles()
Get total number of
SRole for this tenant |
long |
getNumberOfRoles(QueryOptions options)
Get total number of roles according to specific query options
|
long |
getNumberOfUserMemberships()
Get total number of userMemberships of the current tenant
|
long |
getNumberOfUserMembershipsOfUser(long userId)
Get total number of
SUserMembership for a specific user |
long |
getNumberOfUsers()
Get total number of
SUser on the current tenant |
long |
getNumberOfUsers(QueryOptions options)
Get total number of users according to specific query options
|
long |
getNumberOfUsersByGroup(long groupId)
Get total number of users for the given
SGroup |
long |
getNumberOfUsersByMembership(long groupId,
long roleId)
Get total number of userMemberships contains specific group and role
|
long |
getNumberOfUsersByRole(long roleId)
Get total number of users for the given role on the current tenant
|
SRole |
getRole(long roleId)
Gets the
SRole given by its identifier. |
SRole |
getRoleByName(java.lang.String roleName)
Get the
SRole given by its name. |
java.util.List<SRole> |
getRoles(int fromIndex,
int numberOfRoles)
Get a
List of SRole in specific interval
If the number of existing results are lower than the number asked, all results from the given index are
retrieved. |
java.util.List<SRole> |
getRoles(int fromIndex,
int numberOfRoles,
java.lang.String field,
OrderByType order)
|
java.util.List<SRole> |
getRoles(java.util.List<java.lang.Long> roleIds)
Get a
List of SRole by their identifiers |
SUser |
getUser(long userId)
Get
SUser by its id |
SUser |
getUserByUserName(java.lang.String username)
Get
SUser by its name |
SContactInfo |
getUserContactInfo(long userId,
boolean isPersonal)
Return the user contact info for a specific user.
|
java.util.List<java.lang.Long> |
getUserIdsWithCustomUserInfo(java.lang.String userInfoName,
java.lang.String userInfoValue,
boolean usePartialMatch,
int fromIndex,
int maxResults)
Retrieve a
List of user identifiers from specific interval. |
SUserMembership |
getUserMembership(long userMembershipId)
Get
SUserMembership by given id |
SUserMembership |
getUserMembership(long userId,
long groupId,
long roleId)
|
java.util.List<SUserMembership> |
getUserMemberships(int fromIndex,
int numberOfResults)
Get a
List of SUserMembership from specific interval |
java.util.List<SUserMembership> |
getUserMemberships(int fromIndex,
int numberOfUserMemberships,
OrderByOption orderByOption)
Get a
List of SUserMembership from specific interval, sorted by field attribute in the
given OrderByType order
order. |
java.util.List<SUserMembership> |
getUserMemberships(java.util.List<java.lang.Long> userMembershipIds)
Get a
List of SUserMembership of the given identifiers if they exists |
java.util.List<SUserMembership> |
getUserMembershipsOfGroup(long groupId,
int fromIndex,
int numberOfResults)
Get a
List of SUserMembership for given group from specific interval |
java.util.List<SUserMembership> |
getUserMembershipsOfRole(long roleId,
int fromIndex,
int numberOfResults)
Get a
List of SUserMembership for given role from specific interval |
java.util.List<SUserMembership> |
getUserMembershipsOfUser(long userId,
int fromIndex,
int numberOfMemberships)
Get
SUserMembership for a specific interval for a given user |
java.util.List<SUserMembership> |
getUserMembershipsOfUser(long userId,
int fromIndex,
int numberPerPage,
OrderByOption sortOrder)
Get a
List of SUserMembership of a given user from specific interval, sorted by default field in
the given OrderByType
sortOrder order. |
java.util.List<SUserMembership> |
getUserMembershipsOfUser(long userId,
int fromIndex,
int numberOfMemberships,
java.lang.String field,
OrderByType sortOrder)
Get a
List of SUserMembership of a given user from specific interval, sorted by field
attribute in the given OrderByType
sortOrder order. |
java.util.List<SUser> |
getUsers(int fromIndex,
int numberOfUsers)
Get a
List of SUser from a specific interval. |
java.util.List<SUser> |
getUsers(int fromIndex,
int numberOfUsers,
java.lang.String field,
OrderByType order)
Get a
List of child SUser from specific interval, sorted by field attribute in the given
OrderByType order order. |
java.util.List<SUser> |
getUsers(java.util.List<java.lang.Long> userIds)
Get
SUser by their userIds |
java.util.List<SUser> |
getUsersByUsername(java.util.List<java.lang.String> userNames)
retrieve a
List of SUser from their names. |
java.util.List<SUser> |
getUsersInGroup(long groupId,
int fromIndex,
int numberOfUsers,
java.lang.String field,
OrderByType order)
Get a
List of SUser for given SGroup from specific interval, sorted by field
attribute in the given OrderByType
order order. |
java.util.List<SUser> |
getUsersWithManager(long managerId,
int fromIndex,
int numberMaxOfUsers,
java.lang.String field,
OrderByType order)
Get all users (both active and inactive) managed by a specific manager from a specific interval.
|
java.util.List<SUser> |
getUsersWithRole(long roleId,
int fromIndex,
int numberOfUsers)
|
java.util.List<SUser> |
getUsersWithRole(long roleId,
int fromIndex,
int numberOfUsers,
java.lang.String field,
OrderByType order)
Get a
List of SUser for given SRole from specific interval, sorted by field
attribute in the given OrderByType
order order. |
boolean |
hasCustomUserInfoDefinition(java.lang.String name)
Verify if there is a
SCustomUserInfoDefinition of the given name |
java.util.List<SCustomUserInfoValue> |
searchCustomUserInfoValue(QueryOptions options)
Search
SCustomUserInfoValue matching the criterias of the given QueryOptions |
java.util.List<SGroup> |
searchGroups(QueryOptions options)
Search groups according to specific query options
|
java.util.List<SRole> |
searchRoles(QueryOptions options)
Search roles according to specific query options
|
java.util.List<SUser> |
searchUsers(QueryOptions options)
Search users according to specific query options
|
void |
updateCustomUserInfoDefinition(SCustomUserInfoDefinition customUserInfo,
EntityUpdateDescriptor descriptor)
Update customUserInfoDefinition according to the descriptor
|
void |
updateCustomUserInfoValue(SCustomUserInfoValue customUserInfo,
EntityUpdateDescriptor descriptor)
Update profileMetadataValue according to the descriptor
|
void |
updateGroup(SGroup group,
EntityUpdateDescriptor descriptor,
EntityUpdateDescriptor iconUpdater)
Update group according to the descriptor
|
SRole |
updateRole(SRole role,
EntityUpdateDescriptor descriptor,
EntityUpdateDescriptor iconUpdater)
Update role according to the descriptor
|
SUser |
updateUser(long userId,
EntityUpdateDescriptor userUpdateDescriptor,
EntityUpdateDescriptor personalDataUpdateDescriptor,
EntityUpdateDescriptor professionalDataUpdateDescriptor,
EntityUpdateDescriptor iconUpdater)
Update the user having id userId according to the entity update descriptors in parameters
|
void |
updateUser(SUser user,
EntityUpdateDescriptor descriptor)
Update
SUser according to the EntityUpdateDescriptor |
void |
updateUser(SUser user,
EntityUpdateDescriptor descriptor,
boolean isPasswordEncrypted)
Deprecated.
|
void |
updateUserContactInfo(SContactInfo contactInfo,
EntityUpdateDescriptor descriptor)
Update user contact information according to the descriptor
|
void |
updateUserMembership(SUserMembership userMembership,
EntityUpdateDescriptor descriptor)
Update userMembership according to the descriptor
|
static final java.lang.String GROUP
static final java.lang.String CUSTOM_USER_INFO_DEFINITION
static final java.lang.String CUSTOM_USER_INFO_VALUE
static final java.lang.String ROLE
static final java.lang.String USER
static final java.lang.String USER_LOGIN
static final java.lang.String USER_CONTACT_INFO
static final java.lang.String USERMEMBERSHIP
static final java.lang.String ICON
SRole getRole(long roleId) throws SRoleNotFoundException
SRole given by its identifier.roleId - the role identifierSRoleNotFoundException - occurs when the roleId does not refer to any role.SRole getRoleByName(java.lang.String roleName) throws SRoleNotFoundException
SRole given by its name.roleName - The name of roleSRoleNotFoundException - occurs when the roleName does not refer to any role.long getNumberOfRoles()
throws SIdentityException
SRole for this tenantSIdentityException - occurs on persistence layer access problemjava.util.List<SRole> getRoles(java.util.List<java.lang.Long> roleIds) throws SRoleNotFoundException
List of SRole by their identifiersroleIds - the role identifiersSRole objectsSRoleNotFoundException - Occurs when roleId does not refer to any role.java.util.List<SRole> getRoles(int fromIndex, int numberOfRoles) throws SIdentityException
List of SRole in specific interval
If the number of existing results are lower than the number asked, all results from the given index are
retrieved.fromIndex - Index of the record to be retrieved from. First record has index 0numberOfRoles - Number of result to retrieveSIdentityException - occurs on persistence layer access problemjava.util.List<SRole> getRoles(int fromIndex, int numberOfRoles, java.lang.String field, OrderByType order) throws SIdentityException
List of SRole in specific interval, sorted by field attribute in the given
OrderByType order.
For instance, getRoles(0,10,"displayName", OrderByType.DESC) returns the 10 first roles sorted by "displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SRoleBuilderFactory to get a list of available field keys to sort
fromIndex - Index of the record to be retrieved from. First record has index 0numberOfRoles - Number of result to retrievefield - The field used by the sortorder - ASC or DESCSIdentityException - occurs on persistence layer access problemto get a list of available field keys to useSGroup getGroupByPath(java.lang.String groupPath) throws SGroupNotFoundException
SGroup by its pathgroupPath - The group pathSGroupNotFoundException - Occurs when the groupPath does not refer to any group.SGroup getGroup(long groupId) throws SGroupNotFoundException
SGroup by its identifiergroupId - The group identifierSGroupNotFoundException - occurs when the groupId does not refer to any group.long getNumberOfGroups()
throws SIdentityException
SGroup in the current tenantSGroupSIdentityException - occurs on persistence layer access problemjava.util.List<SGroup> getGroups(java.util.List<java.lang.Long> groupIds) throws SGroupNotFoundException
List of SGroup for specific groupIdsgroupIds - The group identifiersList of SGroup objectSGroupNotFoundException - occurs when no given group identifiers refer to any group.java.util.List<SGroup> getGroups(int fromIndex, int numberOfGroups) throws SIdentityException
List of SGroup in a specific interval, this is used for pagination
If the number of existing results are lower than the number asked, all results from the given index are
retrieved.fromIndex - Index of the record to be retrieved from. First record has index 0numberOfGroups - Number of result to retrieveList of SGroupSIdentityException - occurs on persistence layer access problemjava.util.List<SGroup> getGroups(int fromIndex, int numberOfGroups, java.lang.String field, OrderByType order) throws SIdentityException
List of SGroup in specific interval, sorted by field attribute in the given
OrderByType order.
For instance, getGroups(0,10,"displayName", OrderByType.DESC) returns the 10 first SGroup sorted by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SGroupBuilderFactory to get a list of available field keys to sort
fromIndex - Index of the record to be retrieved from. First record has index 0numberOfGroups - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of paginated SGroup objectsSIdentityException - occurs on persistence layer access problemSGroupBuilderFactorylong getNumberOfGroupChildren(long parentGroupId)
throws SIdentityException
parentGroupId - The parent group identifierSIdentityException - occurs on persistence layer access problemjava.util.List<SGroup> getGroupChildren(long parentGroupId, int fromIndex, int numberOfGroups) throws SIdentityException
List child SGroup in a specific interval for specific group. This is used for pagination
If the number of existing results are lower than the number asked, all results from the given index are
retrieved.parentGroupId - The parent group identifierfromIndex - Index of the record to be retrieved from. First record has index 0numberOfGroups - Number of result to retrieveList of child SGroupSIdentityException - occurs on persistence layer access problemjava.util.List<SGroup> getGroupChildren(long parentGroupId, int fromIndex, int numberOfGroups, java.lang.String field, OrderByType order) throws SIdentityException
List of child SGroup in specific interval, sorted by field attribute in the given
OrderByType order.
For instance, getGroupChildren(0,10,"displayName", OrderByType.DESC) returns the 10 first child
SGroup of the parent SGroup
identified by parentGroupId sorted by "displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SGroupBuilderFactory to get a list of available field keys to sort
parentGroupId - The parent group identifierfromIndex - Index of the record to be retrieved from. First record has index 0numberOfGroups - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of child SGroupSIdentityException - occurs on persistence layer access problemSUser getUser(long userId) throws SUserNotFoundException
SUser by its iduserId - The user identifierSUserNotFoundException - occurs when the userId does not refer to any user.boolean checkCredentials(SUser user, java.lang.String password)
user - the userpassword - the passwordSUser getUserByUserName(java.lang.String username) throws SUserNotFoundException
SUser by its nameusername - The user nameSUserNotFoundException - occurs when the user name does not refer to any user.long getNumberOfUsers()
throws SIdentityException
SUser on the current tenantSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getUsers(java.util.List<java.lang.Long> userIds) throws SUserNotFoundException
SUser by their userIdsuserIds - A List of user identifiersList of SUserSUserNotFoundException - occurs when none of the given userIds refer to any user.java.util.List<SUser> getUsersByUsername(java.util.List<java.lang.String> userNames) throws SIdentityException
List of SUser from their names.userNames - the list of user namesList of SUserSIdentityException - If an exception occurs when retrieving the usersjava.util.List<SUser> getUsers(int fromIndex, int numberOfUsers) throws SIdentityException
List of SUser from a specific interval.
If the number of existing results are lower than the number asked, all results from the given index are
retrieved.fromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrieveList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getUsers(int fromIndex, int numberOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
List of child SUser from specific interval, sorted by field attribute in the given
OrderByType order order.
For instance, getUsers(0,10,"displayName", OrderByType.DESC) returns the 10 first SUser sorted by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUser to get a list of available field keys to sort
fromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result we want to get. Maximum number of result returned.field - The field used by the orderorder - ASC or DESCList of paginated SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getUsersWithManager(long managerId, int fromIndex, int numberMaxOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
managerId - The manager identifier, actually it is user identifierfromIndex - Index of the record to be retrieved from. First record has index 0numberMaxOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getActiveUsersWithManager(long managerId, int fromIndex, int numberMaxOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
managerId - The manager identifier, actually it is user identifierfromIndex - Index of the record to be retrieved from. First record has index 0numberMaxOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getInactiveUsersWithManager(long managerId, int fromIndex, int numberMaxOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
managerId - The manager identifier, actually it is user identifierfromIndex - Index of the record to be retrieved from. First record has index 0numberMaxOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemlong getNumberOfUsersByRole(long roleId)
throws SIdentityException
roleId - The identifier of roleSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getUsersWithRole(long roleId, int fromIndex, int numberOfUsers) throws SIdentityException
List of SUser from a specific interval for the given SRole identifier.
If the number of existing results are lower than the number asked, all results from the given index are
retrieved.
Note that this method returns both active and inactive users.roleId - The identifier of the SRole of the SUser to retrievefromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrieveList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getActiveUsersWithRole(long roleId, int fromIndex, int numberOfUsers) throws SIdentityException
List of active SUser from a specific interval for the given SRole identifier.
If the number of existing results are lower than the number asked, all results from the given index are
retrieved.roleId - The identifier of the SRole of the SUser to retrievefromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrieveList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getInactiveUsersWithRole(long roleId, int fromIndex, int numberOfUsers) throws SIdentityException
List of inactive SUser from a specific interval for the given SRole identifier.
If the number of existing results are lower than the number asked, all results from the given index are
retrieved.roleId - The identifier of the SRole of the SUser to retrievefromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrieveList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getUsersWithRole(long roleId, int fromIndex, int numberOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
List of SUser for given SRole from specific interval, sorted by field
attribute in the given OrderByType
order order.
For instance, getUsersWithRole(1,0,10,"displayName", OrderByType.DESC) returns the 10 first SUser of
the SRole with id '1' sorted by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUser to get a list of available field keys to sort
roleId - The identifier of the SRolefromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getActiveUsersWithRole(long roleId, int fromIndex, int numberOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
List of active SUser for given SRole from specific interval, sorted by field
attribute in the given
OrderByType
order order.
For instance, getActiveUsersWithRole(1,0,10,"displayName", OrderByType.DESC) returns the 10 first
SUser of the SRole with id '1'
sorted
by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUser to get a list of available field keys to sort
roleId - The identifier of the SRolefromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getInactiveUsersWithRole(long roleId, int fromIndex, int numberOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
List of Inactive SUser for given SRole from specific interval, sorted by
field attribute in the given
OrderByType
order order.
For instance, getInactiveUsersWithRole(1,0,10,"displayName", OrderByType.DESC) returns the 10 first
SUser of the SRole with id '1'
sorted by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUser to get a list of available field keys to sort
roleId - The identifier of the SRolefromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemlong getNumberOfUsersByGroup(long groupId)
throws SIdentityException
SGroupgroupId - The identifier of the SGroupSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getActiveUsersInGroup(long groupId, int fromIndex, int numberOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
List of Active SUser for given SGroup from specific interval, sorted by
field attribute in the given
OrderByType
order order.
For instance, getActiveUsersInGroup(1,0,10,"displayName", OrderByType.DESC) returns the 10 first
SUser of the SGroup with id '1'
sorted by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUser to get a list of available field keys to sort
groupId - Identifier of the SGroupfromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getInactiveUsersInGroup(long groupId, int fromIndex, int numberOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
List of Inactive SUser for given SGroup from specific interval, sorted by
field attribute in the given
OrderByType
order order.
For instance, getInactiveUsersInGroup(1,0,10,"displayName", OrderByType.DESC) returns the 10 first
SUser of the SGroup with id '1'
sorted by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUser to get a list of available field keys to sort
groupId - Identifier of the SGroupfromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUser> getUsersInGroup(long groupId, int fromIndex, int numberOfUsers, java.lang.String field, OrderByType order) throws SIdentityException
List of SUser for given SGroup from specific interval, sorted by field
attribute in the given OrderByType
order order.
For instance, getUsersInGroup(1,0,10,"displayName", OrderByType.DESC) returns the 10 first SUser of
the SGroup with id '1' sorted by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUser to get a list of available field keys to sort
groupId - Identifier of the SGroupfromIndex - Index of the record to be retrieved from. First record has index 0numberOfUsers - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserSIdentityException - occurs on persistence layer access problemjava.util.List<SUserMembership> getUserMembershipsOfGroup(long groupId, int fromIndex, int numberOfResults) throws SIdentityException
List of SUserMembership for given group from specific interval
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
groupId - Identifier of the groupfromIndex - Index of the record to be retrieved from. First record has index 0numberOfResults - Number of result to retrieveList of SUserMembershipSIdentityException - occurs on persistence layer access problemjava.util.List<SUserMembership> getUserMembershipsOfRole(long roleId, int fromIndex, int numberOfResults) throws SIdentityException
List of SUserMembership for given role from specific interval
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
roleId - Identifier of the rolefromIndex - Index of the record to be retrieved from. First record has index 0numberOfResults - Number of result to retrieveList of SUserMembershipSIdentityException - occurs on persistence layer access problemSUserMembership getUserMembership(long userMembershipId) throws SIdentityException
SUserMembership by given iduserMembershipId - The identifier of userMembershipSUserMembership of the given idSIdentityException - occurs on persistence layer access problem or if the SUserMembership does not existsSUserMembership getUserMembership(long userId, long groupId, long roleId) throws SIdentityException
userId - The user's identifiergroupId - The group's identifierroleId - The role's identifierSUserMembershipSIdentityException - occurs on persistence layer access problem or if the SUserMembership does not existsSUserMembership getLightUserMembership(long userId, long groupId, long roleId) throws SIdentityException
SUserMembership of the specific user, group and role without userName, groupName and roleName
being set.userId - The user's identifiergroupId - The group's identifierroleId - The role's identifierSUserMembershipSIdentityException - occurs on persistence layer access problem or if the SUserMembership does not existsjava.util.List<SUserMembership> getUserMemberships(java.util.List<java.lang.Long> userMembershipIds) throws SIdentityException
List of SUserMembership of the given identifiers if they existsuserMembershipIds - The SUserMembership's identifiersList of SUserMembershipSIdentityException - occurs on persistence layer access problem or if none identifiers match an existing
SUserMembershipjava.util.List<SUserMembership> getUserMemberships(int fromIndex, int numberOfResults) throws SIdentityException
List of SUserMembership from specific interval
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
fromIndex - Index of the record to be retrieved from. First record has index 0numberOfResults - Number of result to retrieveList of SUserMembershipSIdentityException - occurs on persistence layer access problemjava.util.List<SUserMembership> getUserMemberships(int fromIndex, int numberOfUserMemberships, OrderByOption orderByOption) throws SIdentityException
List of SUserMembership from specific interval, sorted by field attribute in the
given OrderByType order
order.
For instance, getUserMemberships(0,10,"id", OrderByType.DESC) returns the 10 first SUserMembership
sorted by
"displayName" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUserMembershipBuilderFactory to check available field keys to sort
fromIndex - Index of the record to be retrieved from. First record has index 0numberOfUserMemberships - Number of result to retrievefield - The field used to sortorder - ASC or DESCList of SUserMembershipSIdentityException - occurs on persistence layer access problemSUserMembershipBuilderFactorySCustomUserInfoDefinition getCustomUserInfoDefinition(long customUserInfoDefinitionId) throws SIdentityException
SCustomUserInfoDefinition by its idcustomUserInfoDefinitionId - The SCustomUserInfoDefinition's identifierSIdentityException - occurs on persistence layer access problemSCustomUserInfoValue getCustomUserInfoValue(long customUserInfoValueId) throws SCustomUserInfoValueNotFoundException, SCustomUserInfoValueReadException
SCustomUserInfoValue by its idcustomUserInfoValueId - The identifier of the custom user info valueSCustomUserInfoValueSCustomUserInfoValueNotFoundException - if no custom user info value is found for the given idSCustomUserInfoValueReadException - if an exception occurs while trying to get the custom user info valueSCustomUserInfoDefinition getCustomUserInfoDefinitionByName(java.lang.String name) throws SCustomUserInfoDefinitionNotFoundException, SCustomUserInfoDefinitionReadException
SCustomUserInfoDefinition by its namename - The name of the SCustomUserInfoDefinition to retrieveSCustomUserInfoDefinition identified by the given nameSCustomUserInfoDefinitionNotFoundException - if there is no custom user info definition for the given nameSCustomUserInfoDefinitionReadException - if an exception occurs when trying to retrieve the custom user info definitionboolean hasCustomUserInfoDefinition(java.lang.String name)
throws SCustomUserInfoDefinitionReadException
SCustomUserInfoDefinition of the given namename - The SCustomUserInfoDefinition's name to checkSCustomUserInfoDefinition of the given nameSCustomUserInfoDefinitionNotFoundException - if there is no custom user info definition for the given nameSCustomUserInfoDefinitionReadException - if an exception occurs when trying to retrieve the custom user info definitionlong getNumberOfCustomUserInfoDefinition()
throws SIdentityException
SCustomUserInfoDefinition of the current tenantSCustomUserInfoDefinition of the current tenantSIdentityException - occurs on persistence layer access problemlong getNumberOfCustomUserInfoValue(QueryOptions options) throws SBonitaReadException
SCustomUserInfoValue of the current tenant matching the criterias of the given
QueryOptionsoptions - The QueryOptions containing filtering conditionsSIdentityException - occurs on persistence layer access problemSBonitaReadExceptionjava.util.List<SCustomUserInfoDefinition> getCustomUserInfoDefinitions(java.util.List<java.lang.Long> customUserInfoDefinitionIds) throws SIdentityException
List of SCustomUserInfoDefinition of the given identifierscustomUserInfoDefinitionIds - A List of SCustomUserInfoDefinition identifiersList of SCustomUserInfoDefinitionSIdentityException - occurs on persistence layer access problem or if none identifiers match an existing
SCustomUserInfoDefinitionjava.util.List<SCustomUserInfoValue> getCustomUserInfoValues(java.util.List<java.lang.Long> customUserInfoValueIds) throws SIdentityException
List of SCustomUserInfoValue of the given identifierscustomUserInfoValueIds - A List of SCustomUserInfoValue identifiersList of SCustomUserInfoValueSIdentityException - occurs on persistence layer access problem or if none identifiers match an existing
SCustomUserInfoDefinitionjava.util.List<SCustomUserInfoDefinition> getCustomUserInfoDefinitions(int fromIndex, int maxResults) throws SIdentityException
List of SCustomUserInfoDefinition from specific interval
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
fromIndex - Index of the record to be retrieved from. First record has index 0maxResults - Number of result to retrieveList of SCustomUserInfoDefinitionSIdentityException - occurs on persistence layer access problemjava.util.List<java.lang.Long> getUserIdsWithCustomUserInfo(java.lang.String userInfoName,
java.lang.String userInfoValue,
boolean usePartialMatch,
int fromIndex,
int maxResults)
throws SIdentityException
List of user identifiers from specific interval. The returned user's ids have their associated
user's userInfo of the given
name userInfoName matches the given value userInfoValue partially or not depending on the
usePartialMatch parameter.
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
userInfoName - The user's information name.userInfoValue - The user's information value.usePartialMatch - Defines whether the custom user information value should use a partial match.fromIndex - The index of the first record to be retrieved. First record has index 0.maxResults - The max results to be retrieved.SIdentityException - occurs on persistence layer access problemjava.util.List<SCustomUserInfoValue> searchCustomUserInfoValue(QueryOptions options) throws SBonitaReadException
SCustomUserInfoValue matching the criterias of the given QueryOptionsoptions - The QueryOptions object containing some query conditionsSBonitaReadException - occurs on persistence layer access problem or if search parameters are not correctjava.util.List<SUserMembership> getUserMembershipsOfUser(long userId, int fromIndex, int numberOfMemberships) throws SIdentityException
SUserMembership for a specific interval for a given useruserId - The user's identifierfromIndex - Index of the record to be retrieved from. First record has index 0numberOfMemberships - Number of result to retrieveList of SUserMembershipSIdentityException - occurs on persistence layer access problemjava.util.List<SUserMembership> getUserMembershipsOfUser(long userId, int fromIndex, int numberOfMemberships, java.lang.String field, OrderByType sortOrder) throws SIdentityException
List of SUserMembership of a given user from specific interval, sorted by field
attribute in the given OrderByType
sortOrder order.
For instance, getUserMembershipsOfUser(1,0,10,"id", OrderByType.DESC) returns the 10 first
SUserMembership of the given user sorted by
"id" in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
check SUserMembershipBuilderFactory to check available field keys to sort
userId - The identifier of userfromIndex - Index of the record to be retrieved from. First record has index 0numberOfMemberships - Number of result to retrievefield - The field user to do ordersortOrder - ASC or DESCList of SUserMembershipSIdentityException - occurs on persistence layer access problemSUserMembershipBuilderFactoryjava.util.List<SUserMembership> getUserMembershipsOfUser(long userId, int fromIndex, int numberPerPage, OrderByOption sortOrder) throws SIdentityException
List of SUserMembership of a given user from specific interval, sorted by default field in
the given OrderByType
sortOrder order.
For instance, getUserMembershipsOfUser(1,0,10, OrderByType.DESC) returns the 10 first SUserMembership
of the given user sorted by
the default field in desc order
If the number of existing results are lower than the number asked, all results from the given index are retrieved.
userId - The identifier of userfromIndex - Index of the record to be retrieved from. First record has index 0numberPerPage - Number of result o retrievesortOrder - OrderByOption object containing order informationSIdentityException - occurs on persistence layer access problemlong getNumberOfUserMembershipsOfUser(long userId)
throws SIdentityException
SUserMembership for a specific useruserId - The user's identifierSIdentityException - occurs on persistence layer access problemlong getNumberOfUserMemberships()
throws SIdentityException
SIdentityException - occurs on persistence layer access problemSUser createUser(SUser user) throws SUserCreationException
SUser and store it to persistence layeruser - The user to create and storeSUserCreationException - occurs on persistence layer access problemvoid updateUser(SUser user, EntityUpdateDescriptor descriptor) throws SUserUpdateException
SUser according to the EntityUpdateDescriptoruser - The SUser to updatedescriptor - The SUser contents to updateSUserUpdateException - occurs on persistence layer access problem@Deprecated void updateUser(SUser user, EntityUpdateDescriptor descriptor, boolean isPasswordEncrypted) throws SUserUpdateException
SUser according to the EntityUpdateDescriptoruser - The SUser to updatedescriptor - The SUser contents to updateisPasswordEncrypted - allow to know if the password given in the EntityUpdateDescriptor is encrypted or notSUserUpdateExceptionSCustomUserInfoDefinition createCustomUserInfoDefinition(SCustomUserInfoDefinition customUserInfo) throws SCustomUserInfoDefinitionAlreadyExistsException, SCustomUserInfoDefinitionCreationException
customUserInfo - SCustomUserInfoDefinition objectSCustomUserInfoDefinitionAlreadyExistsException - TODOSCustomUserInfoDefinitionCreationException - TODOvoid updateCustomUserInfoDefinition(SCustomUserInfoDefinition customUserInfo, EntityUpdateDescriptor descriptor) throws SIdentityException
customUserInfo - The customUserInfoDefinition will be updateddescriptor - The update descriptionSIdentityExceptionSCustomUserInfoValue createCustomUserInfoValue(SCustomUserInfoValue customUserInfo) throws SIdentityException
customUserInfo - A profileMetadataValue objectSIdentityExceptionvoid updateCustomUserInfoValue(SCustomUserInfoValue customUserInfo, EntityUpdateDescriptor descriptor) throws SIdentityException
customUserInfo - The profileMetadataValue will be updateddescriptor - The update descriptionSIdentityExceptionvoid createRole(SRole role, java.lang.String iconFilename, byte[] iconContent) throws SIdentityException
role - A role objecticonFilename - iconContent - SIdentityExceptionSRole updateRole(SRole role, EntityUpdateDescriptor descriptor, EntityUpdateDescriptor iconUpdater) throws SIdentityException
role - The role will be updateddescriptor - The update descriptioniconUpdater - SIdentityExceptionvoid createGroup(SGroup group, java.lang.String iconFileName, byte[] iconContent) throws SGroupCreationException
group - A group objecticonFileName - iconContent - SGroupCreationExceptionvoid updateGroup(SGroup group, EntityUpdateDescriptor descriptor, EntityUpdateDescriptor iconUpdater) throws SIdentityException
group - The group will be updateddescriptor - The update descriptioniconUpdater - SIdentityExceptionvoid createUserMembership(SUserMembership userMembership) throws SUserMembershipCreationException
userMembership - A userMembership objectSUserMembershipCreationExceptionvoid updateUserMembership(SUserMembership userMembership, EntityUpdateDescriptor descriptor) throws SIdentityException
userMembership - The userMembership will be updateddescriptor - The update descriptionSIdentityExceptionvoid deleteUser(SUser user) throws SUserDeletionException
user - The user will be deletedSUserDeletionExceptionvoid deleteUser(long userId)
throws SUserDeletionException
userId - The identifier of userSUserDeletionExceptionvoid deleteAllUsers()
throws SUserDeletionException
SUserDeletionExceptionvoid deleteCustomUserInfoDefinition(SCustomUserInfoDefinition metadataDefinition) throws SIdentityException
metadataDefinition - The custom user info object will be deletedSIdentityExceptionvoid deleteCustomUserInfoDefinition(long customUserInfoDefinitionId)
throws SIdentityException
customUserInfoDefinitionId - The identifier of custom user infoSIdentityExceptionvoid deleteCustomUserInfoValue(SCustomUserInfoValue customUserInfo) throws SIdentityException
customUserInfo - The profileMetadataValue object will be deletedSIdentityExceptionvoid deleteCustomUserInfoValue(long customUserInfoValueId)
throws SIdentityException
customUserInfoValueId - The identifier of profileMetadataValueSIdentityExceptionvoid deleteRole(SRole role) throws SRoleDeletionException
role - The role will be deletedSRoleDeletionExceptionvoid deleteRole(long roleId)
throws SRoleNotFoundException,
SRoleDeletionException
roleId - The role identifierSRoleNotFoundException - Error occurs when no role found with the specific roleIdSRoleDeletionExceptionvoid deleteAllRoles()
throws SRoleDeletionException
SRoleDeletionExceptionvoid deleteGroup(SGroup group) throws SGroupDeletionException
group - The group will be deletedSGroupDeletionExceptionvoid deleteGroup(long groupId)
throws SGroupNotFoundException,
SGroupDeletionException
groupId - The identifier of groupSGroupNotFoundException - Error occurs when no group found with the specific groupIdSGroupDeletionExceptionvoid deleteAllGroups()
throws SGroupDeletionException
SGroupDeletionExceptionvoid deleteUserMembership(SUserMembership userMembership) throws SMembershipDeletionException
userMembership - The userMembership will be deletedSMembershipDeletionExceptionvoid deleteLightUserMembership(SUserMembership userMembership) throws SMembershipDeletionException
userMembership - SMembershipDeletionExceptionvoid deleteUserMembership(long userMembershipId)
throws SMembershipDeletionException
userMembershipId - The identifier of userMembershipSMembershipDeletionExceptionvoid deleteAllUserMemberships()
throws SMembershipDeletionException
SMembershipDeletionExceptionlong getNumberOfUsers(QueryOptions options) throws SBonitaReadException
options - The QueryOptions object containing some query conditionsSBonitaReadExceptionjava.util.List<SUser> searchUsers(QueryOptions options) throws SBonitaReadException
options - The QueryOptions object containing some query conditionsSBonitaReadExceptionlong getNumberOfRoles(QueryOptions options) throws SBonitaReadException
options - The QueryOptions object containing some query conditionsSBonitaReadExceptionjava.util.List<SRole> searchRoles(QueryOptions options) throws SBonitaReadException
options - The QueryOptions object containing some query conditionsSBonitaReadExceptionlong getNumberOfGroups(QueryOptions options) throws SBonitaReadException
options - The QueryOptions object containing some query conditionsSBonitaReadExceptionjava.util.List<SGroup> searchGroups(QueryOptions options) throws SBonitaReadException
options - The QueryOptions object containing some query conditionsSBonitaReadExceptionlong getNumberOfUsersByMembership(long groupId,
long roleId)
throws SIdentityException
groupId - The identifier of grouproleId - The identifier of roleSIdentityExceptionSUserMembership getLightUserMembership(long userMembershipId) throws SIdentityException
userMembershipId - The identifier of userMembershipSIdentityExceptionjava.util.List<SUserMembership> getLightUserMemberships(int startIndex, int numberOfElements) throws SIdentityException
startIndex - Index of the record to be retrieved from. First record has index 0numberOfElements - Number of result we want to get. Maximum number of result returned.SIdentityExceptionjava.util.List<java.lang.Long> deleteChildrenGroup(long groupId)
throws SGroupDeletionException,
SGroupNotFoundException
groupId - The index of the group to deleteSGroupDeletionExceptionSGroupNotFoundExceptionSContactInfo getUserContactInfo(long userId, boolean isPersonal) throws SIdentityException
userId - the ID of the user to retrieve the contact info fromisPersonal - Do we want personal contact information (or professional) ?SIdentityException - if a Read problem occurredSContactInfo createUserContactInfo(SContactInfo contactInfo) throws SUserCreationException
contactInfo - The user contact information objectSUserCreationExceptionvoid updateUserContactInfo(SContactInfo contactInfo, EntityUpdateDescriptor descriptor) throws SIdentityException
contactInfo - The user contact information to be updateddescriptor - The update descriptionSUserUpdateExceptionSIdentityException@Deprecated SUser createUserWithoutEncryptingPassword(SUser user) throws SUserCreationException
user - The user objectSUserCreationExceptionSUser updateUser(long userId, EntityUpdateDescriptor userUpdateDescriptor, EntityUpdateDescriptor personalDataUpdateDescriptor, EntityUpdateDescriptor professionalDataUpdateDescriptor, EntityUpdateDescriptor iconUpdater) throws SIdentityException
userId - the user to updateuserUpdateDescriptor - the entity update descriptor of the user itselfpersonalDataUpdateDescriptor - the entity update descriptor for the personal dataprofessionalDataUpdateDescriptor - the entity update descriptor for the professional dataSIdentityExceptionSUser createUser(SUser sUser, SContactInfo personalContactInfo, SContactInfo proContactInfo, java.lang.String iconFilename, byte[] iconContent) throws SUserCreationException
sUser - the user to persistpersonalContactInfo - its personal contact infoproContactInfo - its professional contact infoiconFilename - original name of the icon, used to determine the mime typeiconContent - content of the iconSUserCreationExceptionSIcon getIcon(long id) throws SBonitaReadException
id - id of the iconSBonitaReadException