Class PlatformIdentityInfoUtil
java.lang.Object
com.flowable.idm.engine.impl.util.PlatformIdentityInfoUtil
public class PlatformIdentityInfoUtil
extends java.lang.Object
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and Type Method Description static <T extends PlatformIdentityInfo>
java.util.Optional<T>findIdentityInfo(java.lang.String name, java.util.Collection<T> identityInfo)
static java.util.Optional<PlatformIdentityInfo>
findInfo(java.lang.String name, java.util.Collection<PlatformIdentityInfo> identityInfo)
Find the identity info with the given navestatic PlatformUserEntity
findPlatformUserById(java.lang.String userId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
static PlatformUserEntity
findPlatformUserByIdNoCache(java.lang.String userId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
static <T> java.util.Optional<T>
findValue(java.lang.String name, java.lang.Class<T> clazz, java.util.Collection<PlatformIdentityInfo> identityInfo)
Find the value with the given name within the providedidentityInfo
.
-
Method Details
-
findPlatformUserById
public static PlatformUserEntity findPlatformUserById(java.lang.String userId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
findPlatformUserByIdNoCache
public static PlatformUserEntity findPlatformUserByIdNoCache(java.lang.String userId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
findIdentityInfo
public static <T extends PlatformIdentityInfo> java.util.Optional<T> findIdentityInfo(java.lang.String name, java.util.Collection<T> identityInfo) -
findValue
public static <T> java.util.Optional<T> findValue(java.lang.String name, java.lang.Class<T> clazz, java.util.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 java.util.Optional<PlatformIdentityInfo> findInfo(java.lang.String name, java.util.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
-