Class PlatformIdentityInfoUtil


  • public class PlatformIdentityInfoUtil
    extends java.lang.Object
    Author:
    Filip Hrisafov
    • Method Detail

      • 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