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 nave
    static 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 provided identityInfo.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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 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 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