public class IdentityAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.IdentityAPI
| Constructor and Description |
|---|
IdentityAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.identity.UserMembership |
addUserMembership(long userId,
long groupId,
long roleId) |
void |
addUserMemberships(java.util.List<java.lang.Long> userIds,
long groupId,
long roleId) |
org.bonitasoft.engine.identity.CustomUserInfoDefinition |
createCustomUserInfoDefinition(org.bonitasoft.engine.identity.CustomUserInfoDefinitionCreator creator) |
org.bonitasoft.engine.identity.Group |
createGroup(org.bonitasoft.engine.identity.GroupCreator creator) |
org.bonitasoft.engine.identity.Group |
createGroup(java.lang.String name,
java.lang.String parentPath) |
org.bonitasoft.engine.identity.Role |
createRole(org.bonitasoft.engine.identity.RoleCreator creator) |
org.bonitasoft.engine.identity.Role |
createRole(java.lang.String roleName) |
org.bonitasoft.engine.identity.User |
createUser(java.lang.String userName,
java.lang.String password) |
org.bonitasoft.engine.identity.User |
createUser(java.lang.String userName,
java.lang.String password,
java.lang.String firstName,
java.lang.String lastName) |
org.bonitasoft.engine.identity.User |
createUser(org.bonitasoft.engine.identity.UserCreator creator) |
void |
deleteCustomUserInfoDefinition(long id) |
void |
deleteGroup(long groupId) |
void |
deleteGroups(java.util.List<java.lang.Long> groupIds) |
void |
deleteOrganization() |
void |
deleteRole(long roleId) |
void |
deleteRoles(java.util.List<java.lang.Long> roleIds) |
void |
deleteUser(long userId) |
void |
deleteUser(java.lang.String userName) |
void |
deleteUserMembership(long userMembershipId) |
void |
deleteUserMembership(long userId,
long groupId,
long roleId) |
void |
deleteUserMemberships(java.util.List<java.lang.Long> userIds,
long groupId,
long roleId) |
void |
deleteUsers(java.util.List<java.lang.Long> userIds) |
java.lang.String |
exportOrganization() |
java.util.List<org.bonitasoft.engine.identity.User> |
getActiveUsersInGroup(long groupId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
java.util.List<org.bonitasoft.engine.identity.User> |
getActiveUsersInRole(long roleId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
java.util.List<org.bonitasoft.engine.identity.User> |
getActiveUsersWithManager(long managerId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
java.util.List<org.bonitasoft.engine.identity.CustomUserInfo> |
getCustomUserInfo(long userId,
int startIndex,
int maxResult) |
java.util.List<org.bonitasoft.engine.identity.CustomUserInfoDefinition> |
getCustomUserInfoDefinitions(int startIndex,
int maxResult) |
org.bonitasoft.engine.identity.Group |
getGroup(long groupId) |
org.bonitasoft.engine.identity.Group |
getGroupByPath(java.lang.String groupPath) |
java.util.List<org.bonitasoft.engine.identity.Group> |
getGroups(int startIndex,
int maxResults,
org.bonitasoft.engine.identity.GroupCriterion pagingCriterion) |
java.util.Map<java.lang.Long,org.bonitasoft.engine.identity.Group> |
getGroups(java.util.List<java.lang.Long> groupIds) |
org.bonitasoft.engine.identity.Icon |
getIcon(long id) |
java.util.List<org.bonitasoft.engine.identity.User> |
getInactiveUsersInGroup(long groupId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
java.util.List<org.bonitasoft.engine.identity.User> |
getInactiveUsersInRole(long roleId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
java.util.List<org.bonitasoft.engine.identity.User> |
getInactiveUsersWithManager(long managerId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
long |
getNumberOfCustomInfoDefinitions() |
long |
getNumberOfGroups() |
long |
getNumberOfRoles() |
long |
getNumberOfUserMemberships(long userId) |
long |
getNumberOfUsers() |
long |
getNumberOfUsersInGroup(long groupId) |
long |
getNumberOfUsersInRole(long roleId) |
org.bonitasoft.engine.identity.Role |
getRole(long roleId) |
org.bonitasoft.engine.identity.Role |
getRoleByName(java.lang.String roleName) |
java.util.List<org.bonitasoft.engine.identity.Role> |
getRoles(int startIndex,
int maxResults,
org.bonitasoft.engine.identity.RoleCriterion criterion) |
java.util.Map<java.lang.Long,org.bonitasoft.engine.identity.Role> |
getRoles(java.util.List<java.lang.Long> roleIds) |
protected TenantServiceAccessor |
getTenantAccessor() |
org.bonitasoft.engine.identity.User |
getUser(long userId) |
org.bonitasoft.engine.identity.User |
getUserByUserName(java.lang.String userName) |
org.bonitasoft.engine.identity.ContactData |
getUserContactData(long userId,
boolean personal) |
java.util.List<java.lang.Long> |
getUserIdsWithCustomUserInfo(java.lang.String infoName,
java.lang.String infoValue,
boolean usePartialMatch,
int startIndex,
int maxResults) |
org.bonitasoft.engine.identity.UserMembership |
getUserMembership(long userMembershipId) |
java.util.List<org.bonitasoft.engine.identity.UserMembership> |
getUserMemberships(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserMembershipCriterion pagingCrterion) |
java.util.List<org.bonitasoft.engine.identity.UserMembership> |
getUserMembershipsByGroup(long groupId,
int startIndex,
int maxResults) |
java.util.List<org.bonitasoft.engine.identity.UserMembership> |
getUserMembershipsByRole(long roleId,
int startIndex,
int maxResults) |
java.util.List<org.bonitasoft.engine.identity.User> |
getUsers(int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
java.util.Map<java.lang.Long,org.bonitasoft.engine.identity.User> |
getUsers(java.util.List<java.lang.Long> userIds) |
java.util.Map<java.lang.String,org.bonitasoft.engine.identity.User> |
getUsersByUsernames(java.util.List<java.lang.String> userNames) |
java.util.List<org.bonitasoft.engine.identity.User> |
getUsersInGroup(long groupId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
java.util.List<org.bonitasoft.engine.identity.User> |
getUsersInRole(long roleId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
java.util.List<org.bonitasoft.engine.identity.User> |
getUsersWithManager(long managerId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion) |
org.bonitasoft.engine.identity.UserWithContactData |
getUserWithProfessionalDetails(long userId) |
void |
importOrganization(java.lang.String organizationContent) |
void |
importOrganization(java.lang.String organizationContent,
org.bonitasoft.engine.identity.ImportPolicy policy) |
java.util.List<java.lang.String> |
importOrganizationWithWarnings(java.lang.String organizationContent,
org.bonitasoft.engine.identity.ImportPolicy policy) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.CustomUserInfoValue> |
searchCustomUserInfoValues(org.bonitasoft.engine.search.SearchOptions options) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.Group> |
searchGroups(org.bonitasoft.engine.search.SearchOptions options) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.Role> |
searchRoles(org.bonitasoft.engine.search.SearchOptions options) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.User> |
searchUsers(org.bonitasoft.engine.search.SearchOptions options) |
org.bonitasoft.engine.identity.CustomUserInfoValue |
setCustomUserInfoValue(long definitionId,
long userId,
java.lang.String value) |
org.bonitasoft.engine.identity.Group |
updateGroup(long groupId,
org.bonitasoft.engine.identity.GroupUpdater updater) |
org.bonitasoft.engine.identity.Role |
updateRole(long roleId,
org.bonitasoft.engine.identity.RoleUpdater updateDescriptor) |
org.bonitasoft.engine.identity.User |
updateUser(long userId,
org.bonitasoft.engine.identity.UserUpdater updater) |
org.bonitasoft.engine.identity.UserMembership |
updateUserMembership(long userMembershipId,
long newGroupId,
long newRoleId) |
protected TenantServiceAccessor getTenantAccessor()
public org.bonitasoft.engine.identity.User createUser(java.lang.String userName,
java.lang.String password)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
createUser in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.identity.User createUser(java.lang.String userName,
java.lang.String password,
java.lang.String firstName,
java.lang.String lastName)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
createUser in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.identity.User createUser(org.bonitasoft.engine.identity.UserCreator creator)
throws org.bonitasoft.engine.exception.CreationException
createUser in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.identity.User updateUser(long userId,
org.bonitasoft.engine.identity.UserUpdater updater)
throws org.bonitasoft.engine.identity.UserNotFoundException,
org.bonitasoft.engine.exception.UpdateException
updateUser in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.identity.UserNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic void deleteUser(long userId)
throws org.bonitasoft.engine.exception.DeletionException
deleteUser in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteUser(java.lang.String userName)
throws org.bonitasoft.engine.exception.DeletionException
deleteUser in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteUsers(java.util.List<java.lang.Long> userIds)
throws org.bonitasoft.engine.exception.DeletionException
deleteUsers in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.identity.User getUser(long userId)
throws org.bonitasoft.engine.identity.UserNotFoundException
getUser in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.identity.UserNotFoundExceptionpublic org.bonitasoft.engine.identity.User getUserByUserName(java.lang.String userName)
throws org.bonitasoft.engine.identity.UserNotFoundException
getUserByUserName in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.identity.UserNotFoundExceptionpublic org.bonitasoft.engine.identity.UserWithContactData getUserWithProfessionalDetails(long userId)
throws org.bonitasoft.engine.identity.UserNotFoundException
getUserWithProfessionalDetails in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.identity.UserNotFoundExceptionpublic org.bonitasoft.engine.identity.ContactData getUserContactData(long userId,
boolean personal)
throws org.bonitasoft.engine.identity.UserNotFoundException
getUserContactData in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.identity.UserNotFoundExceptionpublic long getNumberOfUsers()
getNumberOfUsers in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getUsers(int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getUsers in interface org.bonitasoft.engine.api.UserAPIpublic java.util.Map<java.lang.Long,org.bonitasoft.engine.identity.User> getUsers(java.util.List<java.lang.Long> userIds)
getUsers in interface org.bonitasoft.engine.api.UserAPIpublic java.util.Map<java.lang.String,org.bonitasoft.engine.identity.User> getUsersByUsernames(java.util.List<java.lang.String> userNames)
getUsersByUsernames in interface org.bonitasoft.engine.api.UserAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.User> searchUsers(org.bonitasoft.engine.search.SearchOptions options)
throws org.bonitasoft.engine.exception.SearchException
searchUsers in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.exception.SearchExceptionpublic long getNumberOfUsersInRole(long roleId)
getNumberOfUsersInRole in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getUsersInRole(long roleId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getUsersInRole in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getActiveUsersInRole(long roleId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getActiveUsersInRole in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getInactiveUsersInRole(long roleId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getInactiveUsersInRole in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getUsersWithManager(long managerId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getUsersWithManager in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getActiveUsersWithManager(long managerId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getActiveUsersWithManager in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getInactiveUsersWithManager(long managerId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getInactiveUsersWithManager in interface org.bonitasoft.engine.api.UserAPIpublic long getNumberOfUsersInGroup(long groupId)
getNumberOfUsersInGroup in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getUsersInGroup(long groupId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getUsersInGroup in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getActiveUsersInGroup(long groupId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getActiveUsersInGroup in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getInactiveUsersInGroup(long groupId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserCriterion criterion)
getInactiveUsersInGroup in interface org.bonitasoft.engine.api.UserAPIpublic java.util.List<java.lang.Long> getUserIdsWithCustomUserInfo(java.lang.String infoName,
java.lang.String infoValue,
boolean usePartialMatch,
int startIndex,
int maxResults)
getUserIdsWithCustomUserInfo in interface org.bonitasoft.engine.api.UserAPIpublic org.bonitasoft.engine.identity.Role createRole(java.lang.String roleName)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
createRole in interface org.bonitasoft.engine.api.RoleAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.identity.Role createRole(org.bonitasoft.engine.identity.RoleCreator creator)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
createRole in interface org.bonitasoft.engine.api.RoleAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.identity.Role updateRole(long roleId,
org.bonitasoft.engine.identity.RoleUpdater updateDescriptor)
throws org.bonitasoft.engine.identity.RoleNotFoundException,
org.bonitasoft.engine.exception.UpdateException
updateRole in interface org.bonitasoft.engine.api.RoleAPIorg.bonitasoft.engine.identity.RoleNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic void deleteRole(long roleId)
throws org.bonitasoft.engine.exception.DeletionException
deleteRole in interface org.bonitasoft.engine.api.RoleAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteRoles(java.util.List<java.lang.Long> roleIds)
throws org.bonitasoft.engine.exception.DeletionException
deleteRoles in interface org.bonitasoft.engine.api.RoleAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.identity.Role getRole(long roleId)
throws org.bonitasoft.engine.identity.RoleNotFoundException
getRole in interface org.bonitasoft.engine.api.RoleAPIorg.bonitasoft.engine.identity.RoleNotFoundExceptionpublic org.bonitasoft.engine.identity.Role getRoleByName(java.lang.String roleName)
throws org.bonitasoft.engine.identity.RoleNotFoundException
getRoleByName in interface org.bonitasoft.engine.api.RoleAPIorg.bonitasoft.engine.identity.RoleNotFoundExceptionpublic long getNumberOfRoles()
getNumberOfRoles in interface org.bonitasoft.engine.api.RoleAPIpublic java.util.List<org.bonitasoft.engine.identity.Role> getRoles(int startIndex,
int maxResults,
org.bonitasoft.engine.identity.RoleCriterion criterion)
getRoles in interface org.bonitasoft.engine.api.RoleAPIpublic java.util.Map<java.lang.Long,org.bonitasoft.engine.identity.Role> getRoles(java.util.List<java.lang.Long> roleIds)
getRoles in interface org.bonitasoft.engine.api.RoleAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.Role> searchRoles(org.bonitasoft.engine.search.SearchOptions options)
searchRoles in interface org.bonitasoft.engine.api.RoleAPIpublic org.bonitasoft.engine.identity.Group createGroup(java.lang.String name,
java.lang.String parentPath)
throws org.bonitasoft.engine.exception.CreationException
createGroup in interface org.bonitasoft.engine.api.GroupAPIorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.identity.Group createGroup(org.bonitasoft.engine.identity.GroupCreator creator)
throws org.bonitasoft.engine.exception.CreationException
createGroup in interface org.bonitasoft.engine.api.GroupAPIorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.identity.Group updateGroup(long groupId,
org.bonitasoft.engine.identity.GroupUpdater updater)
throws org.bonitasoft.engine.identity.GroupNotFoundException,
org.bonitasoft.engine.exception.UpdateException,
org.bonitasoft.engine.exception.AlreadyExistsException
updateGroup in interface org.bonitasoft.engine.api.GroupAPIorg.bonitasoft.engine.identity.GroupNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic void deleteGroup(long groupId)
throws org.bonitasoft.engine.exception.DeletionException
deleteGroup in interface org.bonitasoft.engine.api.GroupAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteGroups(java.util.List<java.lang.Long> groupIds)
throws org.bonitasoft.engine.exception.DeletionException
deleteGroups in interface org.bonitasoft.engine.api.GroupAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.identity.Group getGroup(long groupId)
throws org.bonitasoft.engine.identity.GroupNotFoundException
getGroup in interface org.bonitasoft.engine.api.GroupAPIorg.bonitasoft.engine.identity.GroupNotFoundExceptionpublic org.bonitasoft.engine.identity.Group getGroupByPath(java.lang.String groupPath)
throws org.bonitasoft.engine.identity.GroupNotFoundException
getGroupByPath in interface org.bonitasoft.engine.api.GroupAPIorg.bonitasoft.engine.identity.GroupNotFoundExceptionpublic long getNumberOfGroups()
getNumberOfGroups in interface org.bonitasoft.engine.api.GroupAPIpublic java.util.Map<java.lang.Long,org.bonitasoft.engine.identity.Group> getGroups(java.util.List<java.lang.Long> groupIds)
getGroups in interface org.bonitasoft.engine.api.GroupAPIpublic java.util.List<org.bonitasoft.engine.identity.Group> getGroups(int startIndex,
int maxResults,
org.bonitasoft.engine.identity.GroupCriterion pagingCriterion)
getGroups in interface org.bonitasoft.engine.api.GroupAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.Group> searchGroups(org.bonitasoft.engine.search.SearchOptions options)
throws org.bonitasoft.engine.exception.SearchException
searchGroups in interface org.bonitasoft.engine.api.GroupAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.identity.UserMembership addUserMembership(long userId,
long groupId,
long roleId)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
addUserMembership in interface org.bonitasoft.engine.api.MembershipAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic void addUserMemberships(java.util.List<java.lang.Long> userIds,
long groupId,
long roleId)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
addUserMemberships in interface org.bonitasoft.engine.api.MembershipAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.identity.UserMembership updateUserMembership(long userMembershipId,
long newGroupId,
long newRoleId)
throws org.bonitasoft.engine.exception.UpdateException
updateUserMembership in interface org.bonitasoft.engine.api.MembershipAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic void deleteUserMembership(long userMembershipId)
throws org.bonitasoft.engine.exception.DeletionException
deleteUserMembership in interface org.bonitasoft.engine.api.MembershipAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteUserMembership(long userId,
long groupId,
long roleId)
throws org.bonitasoft.engine.exception.DeletionException
deleteUserMembership in interface org.bonitasoft.engine.api.MembershipAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteUserMemberships(java.util.List<java.lang.Long> userIds,
long groupId,
long roleId)
throws org.bonitasoft.engine.exception.DeletionException
deleteUserMemberships in interface org.bonitasoft.engine.api.MembershipAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.identity.UserMembership getUserMembership(long userMembershipId)
throws org.bonitasoft.engine.identity.MembershipNotFoundException
getUserMembership in interface org.bonitasoft.engine.api.MembershipAPIorg.bonitasoft.engine.identity.MembershipNotFoundExceptionpublic long getNumberOfUserMemberships(long userId)
getNumberOfUserMemberships in interface org.bonitasoft.engine.api.MembershipAPIpublic java.util.List<org.bonitasoft.engine.identity.UserMembership> getUserMemberships(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.identity.UserMembershipCriterion pagingCrterion)
getUserMemberships in interface org.bonitasoft.engine.api.MembershipAPIpublic java.util.List<org.bonitasoft.engine.identity.UserMembership> getUserMembershipsByGroup(long groupId,
int startIndex,
int maxResults)
getUserMembershipsByGroup in interface org.bonitasoft.engine.api.MembershipAPIpublic java.util.List<org.bonitasoft.engine.identity.UserMembership> getUserMembershipsByRole(long roleId,
int startIndex,
int maxResults)
getUserMembershipsByRole in interface org.bonitasoft.engine.api.MembershipAPIpublic void deleteOrganization()
throws org.bonitasoft.engine.exception.DeletionException
deleteOrganization in interface org.bonitasoft.engine.api.OrganizationAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void importOrganization(java.lang.String organizationContent)
throws org.bonitasoft.engine.identity.OrganizationImportException
importOrganization in interface org.bonitasoft.engine.api.OrganizationAPIorg.bonitasoft.engine.identity.OrganizationImportExceptionpublic void importOrganization(java.lang.String organizationContent,
org.bonitasoft.engine.identity.ImportPolicy policy)
throws org.bonitasoft.engine.identity.OrganizationImportException
importOrganization in interface org.bonitasoft.engine.api.OrganizationAPIorg.bonitasoft.engine.identity.OrganizationImportExceptionpublic java.util.List<java.lang.String> importOrganizationWithWarnings(java.lang.String organizationContent,
org.bonitasoft.engine.identity.ImportPolicy policy)
throws org.bonitasoft.engine.identity.OrganizationImportException
importOrganizationWithWarnings in interface org.bonitasoft.engine.api.OrganizationAPIorg.bonitasoft.engine.identity.OrganizationImportExceptionpublic java.lang.String exportOrganization()
throws org.bonitasoft.engine.identity.OrganizationExportException
exportOrganization in interface org.bonitasoft.engine.api.OrganizationAPIorg.bonitasoft.engine.identity.OrganizationExportExceptionpublic org.bonitasoft.engine.identity.CustomUserInfoDefinition createCustomUserInfoDefinition(org.bonitasoft.engine.identity.CustomUserInfoDefinitionCreator creator)
throws org.bonitasoft.engine.exception.CreationException,
org.bonitasoft.engine.exception.AlreadyExistsException
createCustomUserInfoDefinition in interface org.bonitasoft.engine.api.CustomUserInfoAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic java.util.List<org.bonitasoft.engine.identity.CustomUserInfoDefinition> getCustomUserInfoDefinitions(int startIndex,
int maxResult)
throws org.bonitasoft.engine.exception.RetrieveException
getCustomUserInfoDefinitions in interface org.bonitasoft.engine.api.CustomUserInfoAPIorg.bonitasoft.engine.exception.RetrieveExceptionpublic long getNumberOfCustomInfoDefinitions()
getNumberOfCustomInfoDefinitions in interface org.bonitasoft.engine.api.CustomUserInfoAPIpublic void deleteCustomUserInfoDefinition(long id)
throws org.bonitasoft.engine.exception.DeletionException
deleteCustomUserInfoDefinition in interface org.bonitasoft.engine.api.CustomUserInfoAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic java.util.List<org.bonitasoft.engine.identity.CustomUserInfo> getCustomUserInfo(long userId,
int startIndex,
int maxResult)
getCustomUserInfo in interface org.bonitasoft.engine.api.CustomUserInfoAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.CustomUserInfoValue> searchCustomUserInfoValues(org.bonitasoft.engine.search.SearchOptions options)
searchCustomUserInfoValues in interface org.bonitasoft.engine.api.CustomUserInfoAPIpublic org.bonitasoft.engine.identity.CustomUserInfoValue setCustomUserInfoValue(long definitionId,
long userId,
java.lang.String value)
throws org.bonitasoft.engine.exception.UpdateException
setCustomUserInfoValue in interface org.bonitasoft.engine.api.CustomUserInfoAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic org.bonitasoft.engine.identity.Icon getIcon(long id)
throws org.bonitasoft.engine.exception.NotFoundException
getIcon in interface org.bonitasoft.engine.api.UserAPIorg.bonitasoft.engine.exception.NotFoundException