Class IdentityServiceImpl

  • All Implemented Interfaces:
    IdentityService

    public class IdentityServiceImpl
    extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl>
    implements IdentityService
    Author:
    Tom Baeyens
    • Constructor Detail

      • IdentityServiceImpl

        public IdentityServiceImpl​(org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
    • Method Detail

      • saveGroup

        public void saveGroup​(org.flowable.idm.api.Group group)
        Description copied from interface: IdentityService
        Saves the group. If the group already existed, the group is updated.
        Specified by:
        saveGroup in interface IdentityService
        Parameters:
        group - group to save. Cannot be null.
      • createUserQuery

        public org.flowable.idm.api.UserQuery createUserQuery()
        Description copied from interface: IdentityService
        Creates a UserQuery that allows to programmatically query the users.
        Specified by:
        createUserQuery in interface IdentityService
      • createGroupQuery

        public org.flowable.idm.api.GroupQuery createGroupQuery()
        Description copied from interface: IdentityService
        Creates a GroupQuery that allows to programmatically query the groups.
        Specified by:
        createGroupQuery in interface IdentityService
      • getPotentialStarterGroups

        public List<org.flowable.idm.api.Group> getPotentialStarterGroups​(String processDefinitionId)
        Description copied from interface: IdentityService
        Returns the potential starter groups for a given process definition.
        Specified by:
        getPotentialStarterGroups in interface IdentityService
        Parameters:
        processDefinitionId - process definition identifier
        Returns:
        list of potential starter groups
      • getPotentialStarterUsers

        public List<org.flowable.idm.api.User> getPotentialStarterUsers​(String processDefinitionId)
        Description copied from interface: IdentityService
        Returns the potential starter users for a given process definition.
        Specified by:
        getPotentialStarterUsers in interface IdentityService
        Parameters:
        processDefinitionId - process definition identifier
        Returns:
        list of potential starter users
      • createMembership

        public void createMembership​(String userId,
                                     String groupId)
        Specified by:
        createMembership in interface IdentityService
        Parameters:
        userId - the userId, cannot be null.
        groupId - the groupId, cannot be null.
      • deleteGroup

        public void deleteGroup​(String groupId)
        Description copied from interface: IdentityService
        Deletes the group. When no group exists with the given id, this operation is ignored.
        Specified by:
        deleteGroup in interface IdentityService
        Parameters:
        groupId - id of the group that should be deleted, cannot be null.
      • deleteMembership

        public void deleteMembership​(String userId,
                                     String groupId)
        Description copied from interface: IdentityService
        Delete the membership of the user in the group. When the group or user don't exist or when the user is not a member of the group, this operation is ignored.
        Specified by:
        deleteMembership in interface IdentityService
        Parameters:
        userId - the user's id, cannot be null.
        groupId - the group's id, cannot be null.
      • checkPassword

        public boolean checkPassword​(String userId,
                                     String password)
        Description copied from interface: IdentityService
        Checks if the password is valid for the given user. Arguments userId and password are nullsafe.
        Specified by:
        checkPassword in interface IdentityService
      • deleteUser

        public void deleteUser​(String userId)
        Specified by:
        deleteUser in interface IdentityService
        Parameters:
        userId - id of user to delete, cannot be null. When an id is passed for a non-existent user, this operation is ignored.
      • setUserPicture

        public void setUserPicture​(String userId,
                                   org.flowable.idm.api.Picture picture)
        Description copied from interface: IdentityService
        Sets the picture for a given user.
        Specified by:
        setUserPicture in interface IdentityService
        picture - can be null to delete the picture.
      • getUserPicture

        public org.flowable.idm.api.Picture getUserPicture​(String userId)
        Description copied from interface: IdentityService
        Retrieves the picture for a given user.
        Specified by:
        getUserPicture in interface IdentityService
        Returns:
        null if the user doesn't have a picture.
      • setAuthenticatedUserId

        public void setAuthenticatedUserId​(String authenticatedUserId)
        Description copied from interface: IdentityService
        Passes the authenticated user id for this particular thread. All service method (from any service) invocations done by the same thread will have access to this authenticatedUserId.
        Specified by:
        setAuthenticatedUserId in interface IdentityService
      • getIdmIdentityService

        protected org.flowable.idm.api.IdmIdentityService getIdmIdentityService()