Class UserUtil
- java.lang.Object
-
- com.flowable.idm.engine.impl.util.UserUtil
-
public class UserUtil extends Object
- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
protected 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 Detail
-
findUserInfo
public static Object findUserInfo(String infoName, PlatformUser user)
-
findBooleanUserInfo
public static boolean findBooleanUserInfo(String infoName, PlatformUser user, boolean defaultValue)
-
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)
-
setUserSubState
public static void setUserSubState(String userId, String subState, String tenantId)
-
setUserStateAndSubState
public static void setUserStateAndSubState(String userId, String state, String subState, String tenantId)
-
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
public static boolean isUserInAllGroups(String userId, Object groupKeys, String tenantId)
-
isUserInAnyGroup
public static boolean isUserInAnyGroup(String userId, Object groupIds, String tenantId)
-
isUserInNoGroup
public static boolean isUserInNoGroup(String userId, Object groupIds, String tenantId)
-
getGroupKeys
protected static Collection<String> getGroupKeys(Object groupKeys)
-
getUserGroupKeys
protected static Collection<String> getUserGroupKeys(String userId, String tenantId)
-
-