Class ProfileAPIImpl

java.lang.Object
org.bonitasoft.engine.api.impl.ProfileAPIImpl
All Implemented Interfaces:
org.bonitasoft.engine.api.ProfileAPI

public class ProfileAPIImpl extends Object implements org.bonitasoft.engine.api.ProfileAPI
Author:
Celine Souchet, Matthieu Chaffotte
  • Constructor Details

    • ProfileAPIImpl

      public ProfileAPIImpl()
  • Method Details

    • getProfile

      public org.bonitasoft.engine.profile.Profile getProfile(long id) throws org.bonitasoft.engine.profile.ProfileNotFoundException
      Specified by:
      getProfile in interface org.bonitasoft.engine.api.ProfileAPI
      Throws:
      org.bonitasoft.engine.profile.ProfileNotFoundException
    • getProfilesForUser

      public List<org.bonitasoft.engine.profile.Profile> getProfilesForUser(long userId, int startIndex, int maxResults, org.bonitasoft.engine.profile.ProfileCriterion criterion)
      Specified by:
      getProfilesForUser in interface org.bonitasoft.engine.api.ProfileAPI
    • searchProfiles

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.Profile> searchProfiles(org.bonitasoft.engine.search.SearchOptions options) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProfiles in interface org.bonitasoft.engine.api.ProfileAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getNumberOfProfileMembers

      public Map<Long,Long> getNumberOfProfileMembers(List<Long> profileIds)
      Specified by:
      getNumberOfProfileMembers in interface org.bonitasoft.engine.api.ProfileAPI
    • searchProfileMembers

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.ProfileMember> searchProfileMembers(String memberType, org.bonitasoft.engine.search.SearchOptions options) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProfileMembers in interface org.bonitasoft.engine.api.ProfileAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • createProfileMember

      public org.bonitasoft.engine.profile.ProfileMember createProfileMember(Long profileId, Long userId, Long groupId, Long roleId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      createProfileMember in interface org.bonitasoft.engine.api.ProfileAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • createProfileMember

      public org.bonitasoft.engine.profile.ProfileMember createProfileMember(org.bonitasoft.engine.profile.ProfileMemberCreator creator) throws org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.exception.AlreadyExistsException
      Specified by:
      createProfileMember in interface org.bonitasoft.engine.api.ProfileAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • getMemberType

      public org.bonitasoft.engine.identity.MemberType getMemberType(Long userId, Long groupId, Long roleId) throws org.bonitasoft.engine.exception.CreationException
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • deleteProfileMember

      public void deleteProfileMember(Long profileMemberId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteProfileMember in interface org.bonitasoft.engine.api.ProfileAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • getUserIdFromSession

      public long getUserIdFromSession()