Package org.bonitasoft.engine.api.impl
Class IdentityAPIImpl
java.lang.Object
org.bonitasoft.engine.api.impl.IdentityAPIImpl
- All Implemented Interfaces:
org.bonitasoft.engine.api.CustomUserInfoAPI,org.bonitasoft.engine.api.GroupAPI,org.bonitasoft.engine.api.IdentityAPI,org.bonitasoft.engine.api.MembershipAPI,org.bonitasoft.engine.api.OrganizationAPI,org.bonitasoft.engine.api.RoleAPI,org.bonitasoft.engine.api.UserAPI
- Author:
- Matthieu Chaffotte, Elias Ricken de Medeiros, Feng Hui, Zhang Bole, Yanyan Liu, Lu Kai, Hongwen Zang, Celine Souchet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bonitasoft.engine.identity.UserMembershipaddUserMembership(long userId, long groupId, long roleId) voidaddUserMemberships(List<Long> userIds, long groupId, long roleId) org.bonitasoft.engine.identity.CustomUserInfoDefinitioncreateCustomUserInfoDefinition(org.bonitasoft.engine.identity.CustomUserInfoDefinitionCreator creator) org.bonitasoft.engine.identity.GroupcreateGroup(String name, String parentPath) org.bonitasoft.engine.identity.GroupcreateGroup(org.bonitasoft.engine.identity.GroupCreator creator) org.bonitasoft.engine.identity.RolecreateRole(String roleName) org.bonitasoft.engine.identity.RolecreateRole(org.bonitasoft.engine.identity.RoleCreator creator) org.bonitasoft.engine.identity.UsercreateUser(String userName, String password) org.bonitasoft.engine.identity.UsercreateUser(String userName, String password, String firstName, String lastName) org.bonitasoft.engine.identity.UsercreateUser(org.bonitasoft.engine.identity.UserCreator creator) voiddeleteCustomUserInfoDefinition(long id) voiddeleteGroup(long groupId) voiddeleteGroups(List<Long> groupIds) voidvoiddeleteRole(long roleId) voiddeleteRoles(List<Long> roleIds) voiddeleteUser(long userId) voiddeleteUser(String userName) voiddeleteUserMembership(long userMembershipId) voiddeleteUserMembership(long userId, long groupId, long roleId) voiddeleteUserMemberships(List<Long> userIds, long groupId, long roleId) voiddeleteUsers(List<Long> userIds) List<org.bonitasoft.engine.identity.User>getActiveUsersInGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) List<org.bonitasoft.engine.identity.User>getActiveUsersInRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) List<org.bonitasoft.engine.identity.User>getActiveUsersWithManager(long managerId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) List<org.bonitasoft.engine.identity.CustomUserInfo>getCustomUserInfo(long userId, int startIndex, int maxResult) List<org.bonitasoft.engine.identity.CustomUserInfoDefinition>getCustomUserInfoDefinitions(int startIndex, int maxResult) org.bonitasoft.engine.identity.GroupgetGroup(long groupId) org.bonitasoft.engine.identity.GroupgetGroupByPath(String groupPath) List<org.bonitasoft.engine.identity.Group>getGroups(int startIndex, int maxResults, org.bonitasoft.engine.identity.GroupCriterion pagingCriterion) org.bonitasoft.engine.identity.IcongetIcon(long id) List<org.bonitasoft.engine.identity.User>getInactiveUsersInGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) List<org.bonitasoft.engine.identity.User>getInactiveUsersInRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) List<org.bonitasoft.engine.identity.User>getInactiveUsersWithManager(long managerId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) longlonglonglonggetNumberOfUserMemberships(long userId) longlonggetNumberOfUsersInGroup(long groupId) longgetNumberOfUsersInRole(long roleId) protected OrganizationAPIDelegateorg.bonitasoft.engine.identity.RolegetRole(long roleId) org.bonitasoft.engine.identity.RolegetRoleByName(String roleName) List<org.bonitasoft.engine.identity.Role>getRoles(int startIndex, int maxResults, org.bonitasoft.engine.identity.RoleCriterion criterion) protected ServiceAccessororg.bonitasoft.engine.identity.UsergetUser(long userId) org.bonitasoft.engine.identity.UsergetUserByUserName(String userName) org.bonitasoft.engine.identity.ContactDatagetUserContactData(long userId, boolean personal) getUserIdsWithCustomUserInfo(String infoName, String infoValue, boolean usePartialMatch, int startIndex, int maxResults) org.bonitasoft.engine.identity.UserMembershipgetUserMembership(long userMembershipId) List<org.bonitasoft.engine.identity.UserMembership>getUserMemberships(long userId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserMembershipCriterion pagingCrterion) List<org.bonitasoft.engine.identity.UserMembership>getUserMembershipsByGroup(long groupId, int startIndex, int maxResults) List<org.bonitasoft.engine.identity.UserMembership>getUserMembershipsByRole(long roleId, int startIndex, int maxResults) List<org.bonitasoft.engine.identity.User>getUsers(int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) getUsersByUsernames(List<String> userNames) List<org.bonitasoft.engine.identity.User>getUsersInGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) List<org.bonitasoft.engine.identity.User>getUsersInRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) List<org.bonitasoft.engine.identity.User>getUsersWithManager(long managerId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) org.bonitasoft.engine.identity.UserWithContactDatagetUserWithProfessionalDetails(long userId) voidimportOrganization(String organizationContent) importOrganizationWithWarnings(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.CustomUserInfoValuesetCustomUserInfoValue(long definitionId, long userId, String value) org.bonitasoft.engine.identity.GroupupdateGroup(long groupId, org.bonitasoft.engine.identity.GroupUpdater updater) org.bonitasoft.engine.identity.RoleupdateRole(long roleId, org.bonitasoft.engine.identity.RoleUpdater updateDescriptor) org.bonitasoft.engine.identity.UserupdateUser(long userId, org.bonitasoft.engine.identity.UserUpdater updater) org.bonitasoft.engine.identity.UserMembershipupdateUserMembership(long userMembershipId, long newGroupId, long newRoleId)
-
Constructor Details
-
IdentityAPIImpl
public IdentityAPIImpl()
-
-
Method Details
-
getServiceAccessor
-
getOrganizationAPIDelegate
-
createUser
public org.bonitasoft.engine.identity.User createUser(String userName, String password) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createUserin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createUser
public org.bonitasoft.engine.identity.User createUser(String userName, String password, String firstName, String lastName) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createUserin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createUser
public org.bonitasoft.engine.identity.User createUser(org.bonitasoft.engine.identity.UserCreator creator) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createUserin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
updateUser
public 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 - Specified by:
updateUserin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.identity.UserNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-
deleteUser
public void deleteUser(long userId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteUserin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteUser
- Specified by:
deleteUserin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteUsers
public void deleteUsers(List<Long> userIds) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteUsersin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getUser
public org.bonitasoft.engine.identity.User getUser(long userId) throws org.bonitasoft.engine.identity.UserNotFoundException - Specified by:
getUserin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.identity.UserNotFoundException
-
getUserByUserName
public org.bonitasoft.engine.identity.User getUserByUserName(String userName) throws org.bonitasoft.engine.identity.UserNotFoundException - Specified by:
getUserByUserNamein interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.identity.UserNotFoundException
-
getUserWithProfessionalDetails
public org.bonitasoft.engine.identity.UserWithContactData getUserWithProfessionalDetails(long userId) throws org.bonitasoft.engine.identity.UserNotFoundException - Specified by:
getUserWithProfessionalDetailsin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.identity.UserNotFoundException
-
getUserContactData
public org.bonitasoft.engine.identity.ContactData getUserContactData(long userId, boolean personal) throws org.bonitasoft.engine.identity.UserNotFoundException - Specified by:
getUserContactDatain interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.identity.UserNotFoundException
-
getNumberOfUsers
public long getNumberOfUsers()- Specified by:
getNumberOfUsersin interfaceorg.bonitasoft.engine.api.UserAPI
-
getUsers
public List<org.bonitasoft.engine.identity.User> getUsers(int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getUsersin interfaceorg.bonitasoft.engine.api.UserAPI
-
getUsers
- Specified by:
getUsersin interfaceorg.bonitasoft.engine.api.UserAPI
-
getUsersByUsernames
- Specified by:
getUsersByUsernamesin interfaceorg.bonitasoft.engine.api.UserAPI
-
searchUsers
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.User> searchUsers(org.bonitasoft.engine.search.SearchOptions options) throws org.bonitasoft.engine.exception.SearchException - Specified by:
searchUsersin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getNumberOfUsersInRole
public long getNumberOfUsersInRole(long roleId) - Specified by:
getNumberOfUsersInRolein interfaceorg.bonitasoft.engine.api.UserAPI
-
getUsersInRole
public List<org.bonitasoft.engine.identity.User> getUsersInRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getUsersInRolein interfaceorg.bonitasoft.engine.api.UserAPI
-
getActiveUsersInRole
public List<org.bonitasoft.engine.identity.User> getActiveUsersInRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getActiveUsersInRolein interfaceorg.bonitasoft.engine.api.UserAPI
-
getInactiveUsersInRole
public List<org.bonitasoft.engine.identity.User> getInactiveUsersInRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getInactiveUsersInRolein interfaceorg.bonitasoft.engine.api.UserAPI
-
getUsersWithManager
public List<org.bonitasoft.engine.identity.User> getUsersWithManager(long managerId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getUsersWithManagerin interfaceorg.bonitasoft.engine.api.UserAPI
-
getActiveUsersWithManager
public List<org.bonitasoft.engine.identity.User> getActiveUsersWithManager(long managerId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getActiveUsersWithManagerin interfaceorg.bonitasoft.engine.api.UserAPI
-
getInactiveUsersWithManager
public List<org.bonitasoft.engine.identity.User> getInactiveUsersWithManager(long managerId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getInactiveUsersWithManagerin interfaceorg.bonitasoft.engine.api.UserAPI
-
getNumberOfUsersInGroup
public long getNumberOfUsersInGroup(long groupId) - Specified by:
getNumberOfUsersInGroupin interfaceorg.bonitasoft.engine.api.UserAPI
-
getUsersInGroup
public List<org.bonitasoft.engine.identity.User> getUsersInGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getUsersInGroupin interfaceorg.bonitasoft.engine.api.UserAPI
-
getActiveUsersInGroup
public List<org.bonitasoft.engine.identity.User> getActiveUsersInGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getActiveUsersInGroupin interfaceorg.bonitasoft.engine.api.UserAPI
-
getInactiveUsersInGroup
public List<org.bonitasoft.engine.identity.User> getInactiveUsersInGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserCriterion criterion) - Specified by:
getInactiveUsersInGroupin interfaceorg.bonitasoft.engine.api.UserAPI
-
getUserIdsWithCustomUserInfo
public List<Long> getUserIdsWithCustomUserInfo(String infoName, String infoValue, boolean usePartialMatch, int startIndex, int maxResults) - Specified by:
getUserIdsWithCustomUserInfoin interfaceorg.bonitasoft.engine.api.UserAPI
-
createRole
public org.bonitasoft.engine.identity.Role createRole(String roleName) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createRolein interfaceorg.bonitasoft.engine.api.RoleAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createRole
public org.bonitasoft.engine.identity.Role createRole(org.bonitasoft.engine.identity.RoleCreator creator) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createRolein interfaceorg.bonitasoft.engine.api.RoleAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
updateRole
public 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 - Specified by:
updateRolein interfaceorg.bonitasoft.engine.api.RoleAPI- Throws:
org.bonitasoft.engine.identity.RoleNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-
deleteRole
public void deleteRole(long roleId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteRolein interfaceorg.bonitasoft.engine.api.RoleAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteRoles
public void deleteRoles(List<Long> roleIds) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteRolesin interfaceorg.bonitasoft.engine.api.RoleAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getRole
public org.bonitasoft.engine.identity.Role getRole(long roleId) throws org.bonitasoft.engine.identity.RoleNotFoundException - Specified by:
getRolein interfaceorg.bonitasoft.engine.api.RoleAPI- Throws:
org.bonitasoft.engine.identity.RoleNotFoundException
-
getRoleByName
public org.bonitasoft.engine.identity.Role getRoleByName(String roleName) throws org.bonitasoft.engine.identity.RoleNotFoundException - Specified by:
getRoleByNamein interfaceorg.bonitasoft.engine.api.RoleAPI- Throws:
org.bonitasoft.engine.identity.RoleNotFoundException
-
getNumberOfRoles
public long getNumberOfRoles()- Specified by:
getNumberOfRolesin interfaceorg.bonitasoft.engine.api.RoleAPI
-
getRoles
public List<org.bonitasoft.engine.identity.Role> getRoles(int startIndex, int maxResults, org.bonitasoft.engine.identity.RoleCriterion criterion) - Specified by:
getRolesin interfaceorg.bonitasoft.engine.api.RoleAPI
-
getRoles
- Specified by:
getRolesin interfaceorg.bonitasoft.engine.api.RoleAPI
-
searchRoles
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.Role> searchRoles(org.bonitasoft.engine.search.SearchOptions options) - Specified by:
searchRolesin interfaceorg.bonitasoft.engine.api.RoleAPI
-
createGroup
public org.bonitasoft.engine.identity.Group createGroup(String name, String parentPath) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createGroupin interfaceorg.bonitasoft.engine.api.GroupAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createGroup
public org.bonitasoft.engine.identity.Group createGroup(org.bonitasoft.engine.identity.GroupCreator creator) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createGroupin interfaceorg.bonitasoft.engine.api.GroupAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
updateGroup
public 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 - Specified by:
updateGroupin interfaceorg.bonitasoft.engine.api.GroupAPI- Throws:
org.bonitasoft.engine.identity.GroupNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
deleteGroup
public void deleteGroup(long groupId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteGroupin interfaceorg.bonitasoft.engine.api.GroupAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteGroups
public void deleteGroups(List<Long> groupIds) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteGroupsin interfaceorg.bonitasoft.engine.api.GroupAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getGroup
public org.bonitasoft.engine.identity.Group getGroup(long groupId) throws org.bonitasoft.engine.identity.GroupNotFoundException - Specified by:
getGroupin interfaceorg.bonitasoft.engine.api.GroupAPI- Throws:
org.bonitasoft.engine.identity.GroupNotFoundException
-
getGroupByPath
public org.bonitasoft.engine.identity.Group getGroupByPath(String groupPath) throws org.bonitasoft.engine.identity.GroupNotFoundException - Specified by:
getGroupByPathin interfaceorg.bonitasoft.engine.api.GroupAPI- Throws:
org.bonitasoft.engine.identity.GroupNotFoundException
-
getNumberOfGroups
public long getNumberOfGroups()- Specified by:
getNumberOfGroupsin interfaceorg.bonitasoft.engine.api.GroupAPI
-
getGroups
- Specified by:
getGroupsin interfaceorg.bonitasoft.engine.api.GroupAPI
-
getGroups
public List<org.bonitasoft.engine.identity.Group> getGroups(int startIndex, int maxResults, org.bonitasoft.engine.identity.GroupCriterion pagingCriterion) - Specified by:
getGroupsin interfaceorg.bonitasoft.engine.api.GroupAPI
-
searchGroups
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.Group> searchGroups(org.bonitasoft.engine.search.SearchOptions options) throws org.bonitasoft.engine.exception.SearchException - Specified by:
searchGroupsin interfaceorg.bonitasoft.engine.api.GroupAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
addUserMembership
public org.bonitasoft.engine.identity.UserMembership addUserMembership(long userId, long groupId, long roleId) throws org.bonitasoft.engine.exception.CreationException - Specified by:
addUserMembershipin interfaceorg.bonitasoft.engine.api.MembershipAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
addUserMemberships
public void addUserMemberships(List<Long> userIds, long groupId, long roleId) throws org.bonitasoft.engine.exception.CreationException - Specified by:
addUserMembershipsin interfaceorg.bonitasoft.engine.api.MembershipAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
updateUserMembership
public org.bonitasoft.engine.identity.UserMembership updateUserMembership(long userMembershipId, long newGroupId, long newRoleId) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
updateUserMembershipin interfaceorg.bonitasoft.engine.api.MembershipAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
deleteUserMembership
public void deleteUserMembership(long userMembershipId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteUserMembershipin interfaceorg.bonitasoft.engine.api.MembershipAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteUserMembership
public void deleteUserMembership(long userId, long groupId, long roleId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteUserMembershipin interfaceorg.bonitasoft.engine.api.MembershipAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteUserMemberships
public void deleteUserMemberships(List<Long> userIds, long groupId, long roleId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteUserMembershipsin interfaceorg.bonitasoft.engine.api.MembershipAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getUserMembership
public org.bonitasoft.engine.identity.UserMembership getUserMembership(long userMembershipId) throws org.bonitasoft.engine.identity.MembershipNotFoundException - Specified by:
getUserMembershipin interfaceorg.bonitasoft.engine.api.MembershipAPI- Throws:
org.bonitasoft.engine.identity.MembershipNotFoundException
-
getNumberOfUserMemberships
public long getNumberOfUserMemberships(long userId) - Specified by:
getNumberOfUserMembershipsin interfaceorg.bonitasoft.engine.api.MembershipAPI
-
getUserMemberships
public List<org.bonitasoft.engine.identity.UserMembership> getUserMemberships(long userId, int startIndex, int maxResults, org.bonitasoft.engine.identity.UserMembershipCriterion pagingCrterion) - Specified by:
getUserMembershipsin interfaceorg.bonitasoft.engine.api.MembershipAPI
-
getUserMembershipsByGroup
public List<org.bonitasoft.engine.identity.UserMembership> getUserMembershipsByGroup(long groupId, int startIndex, int maxResults) - Specified by:
getUserMembershipsByGroupin interfaceorg.bonitasoft.engine.api.MembershipAPI
-
getUserMembershipsByRole
public List<org.bonitasoft.engine.identity.UserMembership> getUserMembershipsByRole(long roleId, int startIndex, int maxResults) - Specified by:
getUserMembershipsByRolein interfaceorg.bonitasoft.engine.api.MembershipAPI
-
deleteOrganization
public void deleteOrganization() throws org.bonitasoft.engine.exception.DeletionException- Specified by:
deleteOrganizationin interfaceorg.bonitasoft.engine.api.OrganizationAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
importOrganization
public void importOrganization(String organizationContent) throws org.bonitasoft.engine.identity.OrganizationImportException - Specified by:
importOrganizationin interfaceorg.bonitasoft.engine.api.OrganizationAPI- Throws:
org.bonitasoft.engine.identity.OrganizationImportException
-
importOrganizationWithWarnings
public List<String> importOrganizationWithWarnings(String organizationContent, org.bonitasoft.engine.identity.ImportPolicy policy) throws org.bonitasoft.engine.identity.OrganizationImportException - Specified by:
importOrganizationWithWarningsin interfaceorg.bonitasoft.engine.api.OrganizationAPI- Throws:
org.bonitasoft.engine.identity.OrganizationImportException
-
exportOrganization
public String exportOrganization() throws org.bonitasoft.engine.identity.OrganizationExportException- Specified by:
exportOrganizationin interfaceorg.bonitasoft.engine.api.OrganizationAPI- Throws:
org.bonitasoft.engine.identity.OrganizationExportException
-
createCustomUserInfoDefinition
public org.bonitasoft.engine.identity.CustomUserInfoDefinition createCustomUserInfoDefinition(org.bonitasoft.engine.identity.CustomUserInfoDefinitionCreator creator) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createCustomUserInfoDefinitionin interfaceorg.bonitasoft.engine.api.CustomUserInfoAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
getCustomUserInfoDefinitions
public List<org.bonitasoft.engine.identity.CustomUserInfoDefinition> getCustomUserInfoDefinitions(int startIndex, int maxResult) throws org.bonitasoft.engine.exception.RetrieveException - Specified by:
getCustomUserInfoDefinitionsin interfaceorg.bonitasoft.engine.api.CustomUserInfoAPI- Throws:
org.bonitasoft.engine.exception.RetrieveException
-
getNumberOfCustomInfoDefinitions
public long getNumberOfCustomInfoDefinitions()- Specified by:
getNumberOfCustomInfoDefinitionsin interfaceorg.bonitasoft.engine.api.CustomUserInfoAPI
-
deleteCustomUserInfoDefinition
public void deleteCustomUserInfoDefinition(long id) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteCustomUserInfoDefinitionin interfaceorg.bonitasoft.engine.api.CustomUserInfoAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getCustomUserInfo
public List<org.bonitasoft.engine.identity.CustomUserInfo> getCustomUserInfo(long userId, int startIndex, int maxResult) - Specified by:
getCustomUserInfoin interfaceorg.bonitasoft.engine.api.CustomUserInfoAPI
-
searchCustomUserInfoValues
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.CustomUserInfoValue> searchCustomUserInfoValues(org.bonitasoft.engine.search.SearchOptions options) - Specified by:
searchCustomUserInfoValuesin interfaceorg.bonitasoft.engine.api.CustomUserInfoAPI
-
setCustomUserInfoValue
public org.bonitasoft.engine.identity.CustomUserInfoValue setCustomUserInfoValue(long definitionId, long userId, String value) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
setCustomUserInfoValuein interfaceorg.bonitasoft.engine.api.CustomUserInfoAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
getIcon
public org.bonitasoft.engine.identity.Icon getIcon(long id) throws org.bonitasoft.engine.exception.NotFoundException - Specified by:
getIconin interfaceorg.bonitasoft.engine.api.UserAPI- Throws:
org.bonitasoft.engine.exception.NotFoundException
-