Package com.flowable.idm.engine.impl
Class IdmIdentityServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<CoreIdmEngineConfiguration>
-
- com.flowable.idm.engine.impl.BaseIdmIdentityServiceImpl
-
- com.flowable.idm.engine.impl.IdmIdentityServiceImpl
-
- All Implemented Interfaces:
PlatformIdentityService
,IdmIdentityService
public class IdmIdentityServiceImpl extends BaseIdmIdentityServiceImpl implements PlatformIdentityService
- Author:
- Tijs Rademakers, Filip Hrisafov
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description IdmIdentityServiceImpl(CoreIdmEngineConfiguration configuration)
-
Method Summary
-
Methods inherited from class com.flowable.idm.engine.impl.BaseIdmIdentityServiceImpl
addGroupPrivilegeMapping, addUserPrivilegeMapping, createAuthenticationTokenBuilder, createGroupQuery, createNativeTokenQuery, createPlatformIdentityInfoBuilder, createPlatformIdentityInfoQuery, createPrivilege, createPrivilegeQuery, createProperty, createTokenQuery, createUserQuery, deleteGroupPrivilegeMapping, deletePlatformIdentityInfoById, deletePlatformIdentityInfoByUserId, deletePlatformIdentityInfoByUserIdAndTenantId, deletePrivilege, deleteProperty, deleteToken, deleteUserInfo, deleteUserPrivilegeMapping, findIdentityInfoByUserIdAndName, findPropertyByName, getPlatformUserInfo, getPrivilegeMappingsByPrivilegeId, getUserInfo, getUserInfoKeys, getUserPicture, newToken, saveToken, setAuthenticatedUserId, setPlatformUserInfo, setUserDefinitionById, setUserDefinitionByKey, setUserInfo, setUserPicture, setUserStateAndSubState, setUserStateAndSubState, updateProperty, updateUserPresence, updateUserPresence
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.idm.api.IdmIdentityService
addGroupPrivilegeMapping, addUserPrivilegeMapping, createGroupQuery, createNativeTokenQuery, createPrivilege, createPrivilegeQuery, createTokenQuery, createUserQuery, deleteGroupPrivilegeMapping, deletePrivilege, deleteToken, deleteUserInfo, deleteUserPrivilegeMapping, getPrivilegeMappingsByPrivilegeId, getUserInfo, getUserInfoKeys, getUserPicture, newToken, saveToken, setAuthenticatedUserId, setUserInfo, setUserPicture
-
Methods inherited from interface com.flowable.core.idm.api.PlatformIdentityService
createAuthenticationTokenBuilder, createPlatformIdentityInfoBuilder, createPlatformIdentityInfoQuery, createProperty, deactivateUser, deletePlatformIdentityInfoById, deletePlatformIdentityInfoByUserId, deletePlatformIdentityInfoByUserIdAndTenantId, deleteProperty, findIdentityInfoByUserIdAndName, findPropertyByName, getPlatformUserInfo, reactivateUser, setPlatformUserInfo, setUserDefinitionById, setUserDefinitionByKey, setUserState, setUserStateAndSubState, setUserStateAndSubState, setUserSubState, updateProperty, updateUserPresence, updateUserPresence
-
-
-
-
Constructor Detail
-
IdmIdentityServiceImpl
public IdmIdentityServiceImpl(CoreIdmEngineConfiguration configuration)
-
-
Method Detail
-
newGroup
public Group newGroup(String groupId)
- Specified by:
newGroup
in interfaceIdmIdentityService
-
newUser
public User newUser(String userId)
- Specified by:
newUser
in interfaceIdmIdentityService
-
saveGroup
public void saveGroup(Group group)
- Specified by:
saveGroup
in interfaceIdmIdentityService
-
saveUser
public void saveUser(User user)
- Specified by:
saveUser
in interfaceIdmIdentityService
-
updateUserPassword
public void updateUserPassword(User user)
- Specified by:
updateUserPassword
in interfaceIdmIdentityService
-
createPlatformUserQuery
public PlatformUserQuery createPlatformUserQuery()
- Specified by:
createPlatformUserQuery
in interfacePlatformIdentityService
-
createPlatformGroupQuery
public PlatformGroupQuery createPlatformGroupQuery()
- Specified by:
createPlatformGroupQuery
in interfacePlatformIdentityService
-
findPlatformGroupById
public PlatformGroup findPlatformGroupById(String groupId)
- Specified by:
findPlatformGroupById
in interfacePlatformIdentityService
-
findPlatformGroupsForUser
public List<PlatformGroup> findPlatformGroupsForUser(String userId)
- Specified by:
findPlatformGroupsForUser
in interfacePlatformIdentityService
-
findUniqueTenantIds
public List<String> findUniqueTenantIds()
Description copied from interface:PlatformIdentityService
Find the unique tenant ids- Specified by:
findUniqueTenantIds
in interfacePlatformIdentityService
- Returns:
- a list of the unique tenant ids
-
createNativeUserQuery
public NativeUserQuery createNativeUserQuery()
- Specified by:
createNativeUserQuery
in interfaceIdmIdentityService
-
createNewUserBuilder
public PlatformUserBuilder createNewUserBuilder(String userId)
Description copied from interface:PlatformIdentityService
Create user builder for a new user with iduserId
. The user is transient and must be saved usingPlatformUserBuilder.save()
- Specified by:
createNewUserBuilder
in interfacePlatformIdentityService
- Parameters:
userId
- the id of the new user
-
createNewGroupBuilder
public PlatformGroupBuilder createNewGroupBuilder(String groupId)
- Specified by:
createNewGroupBuilder
in interfacePlatformIdentityService
-
createUpdateGroupBuilder
public PlatformGroupBuilder createUpdateGroupBuilder(String groupId)
- Specified by:
createUpdateGroupBuilder
in interfacePlatformIdentityService
-
findPlatformUserById
public PlatformUserEntity findPlatformUserById(String userId)
- Specified by:
findPlatformUserById
in interfacePlatformIdentityService
-
createUpdateUserBuilder
public PlatformUserBuilder createUpdateUserBuilder(String userId)
- Specified by:
createUpdateUserBuilder
in interfacePlatformIdentityService
-
createNativeGroupQuery
public NativeGroupQuery createNativeGroupQuery()
- Specified by:
createNativeGroupQuery
in interfaceIdmIdentityService
-
createMembership
public void createMembership(String userId, String groupId)
- Specified by:
createMembership
in interfaceIdmIdentityService
-
deleteGroup
public void deleteGroup(String groupId)
- Specified by:
deleteGroup
in interfaceIdmIdentityService
-
deleteMembership
public void deleteMembership(String userId, String groupId)
- Specified by:
deleteMembership
in interfaceIdmIdentityService
-
checkPassword
public boolean checkPassword(String userId, String password)
- Specified by:
checkPassword
in interfaceIdmIdentityService
-
deleteUser
public void deleteUser(String userId)
- Specified by:
deleteUser
in interfaceIdmIdentityService
-
getGroupsWithPrivilege
public List<Group> getGroupsWithPrivilege(String name)
- Specified by:
getGroupsWithPrivilege
in interfaceIdmIdentityService
-
getUsersWithPrivilege
public List<User> getUsersWithPrivilege(String name)
- Specified by:
getUsersWithPrivilege
in interfaceIdmIdentityService
-
-