Class UserUtil
java.lang.Object
com.flowable.idm.engine.impl.util.UserUtil
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddUserMemberships(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String userId, Collection<String> memberGroups) static voidenrichUserState(PlatformUserEntity user, String initialState, String initialSubState) static voidenrichUserType(PlatformUserEntity user, String initialType, String initialSubType) static booleanfindBooleanUserInfo(String infoName, PlatformUser user, boolean defaultValue) static ObjectfindUserInfo(String infoName, PlatformUser user) static Collection<String> getGroupKeys(Object groupKeys) protected static Collection<String> getUserGroupKeys(String userId, String tenantId) static booleanisUserInAllGroups(String userId, Object groupKeys, String tenantId) static booleanisUserInAnyGroup(String userId, Object groupIds, String tenantId) static booleanisUserInNoGroup(String userId, Object groupIds, String tenantId) static voidsetUserDefinition(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String userId, String userDefinitionId, String userDefinitionKey, String tenantId) static voidsetUserState(String userId, String state, String tenantId) static voidsetUserStateAndSubState(String userId, String state, String subState, String tenantId) static voidsetUserStateAndSubState(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String userId, String state, String subState, String tenantId) static voidsetUserSubState(String userId, String subState, String tenantId)
-
Method Details
-
findUserInfo
-
findBooleanUserInfo
-
enrichUserState
public static void enrichUserState(PlatformUserEntity user, String initialState, String initialSubState) -
enrichUserType
public static void enrichUserType(PlatformUserEntity user, String initialType, String initialSubType) -
addUserMemberships
public static void addUserMemberships(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String userId, Collection<String> memberGroups) -
setUserState
-
setUserSubState
-
setUserStateAndSubState
-
setUserStateAndSubState
-
setUserDefinition
-
isUserInAllGroups
-
isUserInAnyGroup
-
isUserInNoGroup
-
getGroupKeys
-
getUserGroupKeys
-