Class ProfileAPIDelegate


  • public class ProfileAPIDelegate
    extends java.lang.Object
    • Method Detail

      • 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 java.util.Map<java.lang.Long,​java.lang.Long> getNumberOfProfileMembers​(java.util.List<java.lang.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 java.util.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​(java.lang.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​(java.lang.Long profileId,
                                                                               java.lang.Long userId,
                                                                               java.lang.Long groupId,
                                                                               java.lang.Long roleId)
                                                                        throws org.bonitasoft.engine.exception.CreationException,
                                                                               org.bonitasoft.engine.exception.AlreadyExistsException
        Throws:
        org.bonitasoft.engine.exception.CreationException
        org.bonitasoft.engine.exception.AlreadyExistsException
      • deleteProfileMember

        public void deleteProfileMember​(java.lang.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​(java.lang.Long profileId,
                                                  java.lang.Long userId,
                                                  java.lang.Long groupId,
                                                  java.lang.Long roleId,
                                                  org.bonitasoft.engine.identity.MemberType memberType)
                                           throws SBonitaException
        Throws:
        SBonitaException
      • getMemberType

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