Class ProfileAPIDelegate

java.lang.Object
org.bonitasoft.engine.api.impl.profile.ProfileAPIDelegate

public class ProfileAPIDelegate extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getServiceAccessor

      public static ServiceAccessor getServiceAccessor()
    • getInstance

      public static ProfileAPIDelegate getInstance()
    • 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
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getNumberOfProfileMembers

      public Map<Long,Long> getNumberOfProfileMembers(List<Long> profileIds)
    • getProfile

      public org.bonitasoft.engine.profile.Profile getProfile(long id) throws org.bonitasoft.engine.profile.ProfileNotFoundException
      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)
    • 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
      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
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • deleteProfileMember

      public void deleteProfileMember(Long profileMemberId) throws org.bonitasoft.engine.exception.DeletionException
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • convertToProfileMember

      protected org.bonitasoft.engine.profile.ProfileMember convertToProfileMember(CreateProfileMember createProfileMember)
    • checkIfProfileMemberExists

      protected void checkIfProfileMemberExists(Long profileId, Long userId, Long groupId, Long roleId, org.bonitasoft.engine.identity.MemberType memberType) throws SBonitaException
      Throws:
      SBonitaException
    • 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