Class PlatformIdentityInfoUtil

java.lang.Object
com.flowable.idm.engine.impl.util.PlatformIdentityInfoUtil

public class PlatformIdentityInfoUtil extends Object
Author:
Filip Hrisafov
  • Method Details

    • findPlatformUserById

      public static PlatformUserEntity findPlatformUserById(String userId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • findPlatformGroupById

      public static PlatformGroupEntity findPlatformGroupById(String groupId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • findPlatformUserByIdNoCache

      public static PlatformUserEntity findPlatformUserByIdNoCache(String userId, org.flowable.common.engine.impl.interceptor.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 provided identityInfo.
      Type Parameters:
      T - the type of the value
      Parameters:
      name - the name of the info that needs to be found
      clazz - the expected type of the value
      identityInfo - 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 found
      identityInfo - 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