Class PlatformIdentityInfoUtil
java.lang.Object
com.flowable.idm.engine.impl.util.PlatformIdentityInfoUtil
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PlatformIdentityInfo>
Optional<T>findIdentityInfo(String name, Collection<T> identityInfo) static Optional<PlatformIdentityInfo>findInfo(String name, Collection<PlatformIdentityInfo> identityInfo) Find the identity info with the given navestatic PlatformGroupEntityfindPlatformGroupById(String groupId, CommandContext commandContext) static PlatformUserEntityfindPlatformUserById(String userId, CommandContext commandContext) static PlatformUserEntityfindPlatformUserByIdNoCache(String userId, CommandContext commandContext) static <T> Optional<T>findValue(String name, Class<T> clazz, Collection<PlatformIdentityInfo> identityInfo) Find the value with the given name within the providedidentityInfo.
-
Method Details
-
findPlatformUserById
-
findPlatformGroupById
public static PlatformGroupEntity findPlatformGroupById(String groupId, CommandContext commandContext) -
findPlatformUserByIdNoCache
public static PlatformUserEntity findPlatformUserByIdNoCache(String userId, CommandContext commandContext) -
findIdentityInfo
public static <T extends PlatformIdentityInfo> Optional<T> findIdentityInfo(String name, Collection<T> identityInfo) -
findValue
public static <T> Optional<T> findValue(String name, Class<T> clazz, Collection<PlatformIdentityInfo> identityInfo) Find the value with the given name within the providedidentityInfo.- Type Parameters:
T- the type of the value- Parameters:
name- the name of the info that needs to be foundclazz- the expected type of the valueidentityInfo- the collection of identity info in which the lookup needs to be done- Returns:
- the found value or
Optional.empty()of none exists
-
findInfo
public static Optional<PlatformIdentityInfo> findInfo(String name, Collection<PlatformIdentityInfo> identityInfo) Find the identity info with the given nave- Parameters:
name- the name of the info that needs to be foundidentityInfo- the collection of the information in which it needs to be looked into- Returns:
- the identity info if found, or
Optional.empty()if no such info exists
-