Class BaseIdmIdentityServiceImpl

    • Method Detail

      • setUserDefinitionById

        public void setUserDefinitionById​(java.lang.String userId,
                                          java.lang.String userDefinitionId)
        Description copied from interface: PlatformIdentityService
        Update the user definition of the provided user.
        Specified by:
        setUserDefinitionById in interface PlatformIdentityService
        Parameters:
        userId - the id of the user that needs to have its user definition updated
        userDefinitionId - the user definition id of the new user definition
      • setUserDefinitionByKey

        public void setUserDefinitionByKey​(java.lang.String userId,
                                           java.lang.String userDefinitionKey,
                                           java.lang.String tenantId)
        Description copied from interface: PlatformIdentityService
        Update the user definition of the provided user.
        Specified by:
        setUserDefinitionByKey in interface PlatformIdentityService
        Parameters:
        userId - the id of the user that needs to have its user definition updated
        userDefinitionKey - the key of the new user definition
        tenantId - the tenant id of the new user definition
      • updateUserPresence

        public void updateUserPresence​(java.lang.String userId,
                                       java.lang.String presence)
        Description copied from interface: PlatformIdentityService
        Updates the presence status of the user
        Specified by:
        updateUserPresence in interface PlatformIdentityService
        Parameters:
        userId - the id of the user for which the presence status needs to be updated
        presence - the id of the user for which the presence status needs to be updated
        See Also:
        for known states
      • updateUserPresence

        public void updateUserPresence​(java.lang.String userId,
                                       java.lang.String tenantId,
                                       java.lang.String presence)
        Description copied from interface: PlatformIdentityService
        Updates the presence status of the user in the given tenant
        Specified by:
        updateUserPresence in interface PlatformIdentityService
        Parameters:
        userId - the id of the user for which the presence status needs to be updated
        tenantId - the id of tenant in which the presence status needs to be updated
        presence - the id of the user for which the presence status needs to be updated
        See Also:
        for known states
      • createUserQuery

        public org.flowable.idm.api.UserQuery createUserQuery()
        Specified by:
        createUserQuery in interface org.flowable.idm.api.IdmIdentityService
      • getPlatformUserInfo

        public <T> java.util.Optional<T> getPlatformUserInfo​(java.lang.String userId,
                                                             java.lang.String name,
                                                             java.lang.Class<T> infoClass)
        Specified by:
        getPlatformUserInfo in interface PlatformIdentityService
      • createGroupQuery

        public org.flowable.idm.api.GroupQuery createGroupQuery()
        Specified by:
        createGroupQuery in interface org.flowable.idm.api.IdmIdentityService
      • setAuthenticatedUserId

        public void setAuthenticatedUserId​(java.lang.String authenticatedUserId)
        Specified by:
        setAuthenticatedUserId in interface org.flowable.idm.api.IdmIdentityService
      • newToken

        public org.flowable.idm.api.Token newToken​(java.lang.String tokenId)
        Specified by:
        newToken in interface org.flowable.idm.api.IdmIdentityService
      • saveToken

        public void saveToken​(org.flowable.idm.api.Token token)
        Specified by:
        saveToken in interface org.flowable.idm.api.IdmIdentityService
      • deleteToken

        public void deleteToken​(java.lang.String tokenId)
        Specified by:
        deleteToken in interface org.flowable.idm.api.IdmIdentityService
      • createTokenQuery

        public org.flowable.idm.api.TokenQuery createTokenQuery()
        Specified by:
        createTokenQuery in interface org.flowable.idm.api.IdmIdentityService
      • createNativeTokenQuery

        public org.flowable.idm.api.NativeTokenQuery createNativeTokenQuery()
        Specified by:
        createNativeTokenQuery in interface org.flowable.idm.api.IdmIdentityService
      • setUserPicture

        public void setUserPicture​(java.lang.String userId,
                                   org.flowable.idm.api.Picture picture)
        Specified by:
        setUserPicture in interface org.flowable.idm.api.IdmIdentityService
      • getUserPicture

        public org.flowable.idm.api.Picture getUserPicture​(java.lang.String userId)
        Specified by:
        getUserPicture in interface org.flowable.idm.api.IdmIdentityService
      • getUserInfo

        public java.lang.String getUserInfo​(java.lang.String userId,
                                            java.lang.String key)
        Specified by:
        getUserInfo in interface org.flowable.idm.api.IdmIdentityService
      • getUserInfoKeys

        public java.util.List<java.lang.String> getUserInfoKeys​(java.lang.String userId)
        Specified by:
        getUserInfoKeys in interface org.flowable.idm.api.IdmIdentityService
      • setUserInfo

        public void setUserInfo​(java.lang.String userId,
                                java.lang.String key,
                                java.lang.String value)
        Specified by:
        setUserInfo in interface org.flowable.idm.api.IdmIdentityService
      • deleteUserInfo

        public void deleteUserInfo​(java.lang.String userId,
                                   java.lang.String key)
        Specified by:
        deleteUserInfo in interface org.flowable.idm.api.IdmIdentityService
      • createPrivilege

        public org.flowable.idm.api.Privilege createPrivilege​(java.lang.String name)
        Specified by:
        createPrivilege in interface org.flowable.idm.api.IdmIdentityService
      • addUserPrivilegeMapping

        public void addUserPrivilegeMapping​(java.lang.String privilegeId,
                                            java.lang.String userId)
        Specified by:
        addUserPrivilegeMapping in interface org.flowable.idm.api.IdmIdentityService
      • deleteUserPrivilegeMapping

        public void deleteUserPrivilegeMapping​(java.lang.String privilegeId,
                                               java.lang.String userId)
        Specified by:
        deleteUserPrivilegeMapping in interface org.flowable.idm.api.IdmIdentityService
      • addGroupPrivilegeMapping

        public void addGroupPrivilegeMapping​(java.lang.String privilegeId,
                                             java.lang.String groupId)
        Specified by:
        addGroupPrivilegeMapping in interface org.flowable.idm.api.IdmIdentityService
      • deleteGroupPrivilegeMapping

        public void deleteGroupPrivilegeMapping​(java.lang.String privilegeId,
                                                java.lang.String groupId)
        Specified by:
        deleteGroupPrivilegeMapping in interface org.flowable.idm.api.IdmIdentityService
      • getPrivilegeMappingsByPrivilegeId

        public java.util.List<org.flowable.idm.api.PrivilegeMapping> getPrivilegeMappingsByPrivilegeId​(java.lang.String privilegeId)
        Specified by:
        getPrivilegeMappingsByPrivilegeId in interface org.flowable.idm.api.IdmIdentityService
      • deletePrivilege

        public void deletePrivilege​(java.lang.String id)
        Specified by:
        deletePrivilege in interface org.flowable.idm.api.IdmIdentityService
      • createPrivilegeQuery

        public org.flowable.idm.api.PrivilegeQuery createPrivilegeQuery()
        Specified by:
        createPrivilegeQuery in interface org.flowable.idm.api.IdmIdentityService
      • deletePlatformIdentityInfoByUserIdAndTenantId

        public void deletePlatformIdentityInfoByUserIdAndTenantId​(java.lang.String userId,
                                                                  java.lang.String tenantId)
        Description copied from interface: PlatformIdentityService
        Delete all platform identity info entries of the user in the given tenant
        Specified by:
        deletePlatformIdentityInfoByUserIdAndTenantId in interface PlatformIdentityService
        Parameters:
        userId - the id of the user
        tenantId - the id of the tenant