Class UserUtil
java.lang.Object
com.flowable.idm.engine.impl.util.UserUtil
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addUserMemberships
(CommandContext commandContext, String userId, Collection<String> memberGroups) static void
enrichUserState
(PlatformUserEntity user, String initialState, String initialSubState) static void
enrichUserType
(PlatformUserEntity user, String initialType, String initialSubType) static boolean
findBooleanUserInfo
(String infoName, PlatformUser user, boolean defaultValue) static Object
findUserInfo
(String infoName, PlatformUser user) static Collection<String>
getGroupKeys
(Object groupKeys) protected static Collection<String>
getUserGroupKeys
(String userId, String tenantId) static boolean
isUserInAllGroups
(String userId, Object groupKeys, String tenantId) static boolean
isUserInAnyGroup
(String userId, Object groupIds, String tenantId) static boolean
isUserInNoGroup
(String userId, Object groupIds, String tenantId) static void
setUserDefinition
(CommandContext commandContext, String userId, String userDefinitionId, String userDefinitionKey, String tenantId) static void
setUserState
(String userId, String state, String tenantId) static void
setUserStateAndSubState
(String userId, String state, String subState, String tenantId) static void
setUserStateAndSubState
(CommandContext commandContext, String userId, String state, String subState, String tenantId) static void
setUserSubState
(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(CommandContext commandContext, String userId, Collection<String> memberGroups) -
setUserState
-
setUserSubState
-
setUserStateAndSubState
-
setUserStateAndSubState
public static void setUserStateAndSubState(CommandContext commandContext, String userId, String state, String subState, String tenantId) -
setUserDefinition
public static void setUserDefinition(CommandContext commandContext, String userId, String userDefinitionId, String userDefinitionKey, String tenantId) -
isUserInAllGroups
-
isUserInAnyGroup
-
isUserInNoGroup
-
getGroupKeys
-
getUserGroupKeys
-