Class UserIdentifier

  • All Implemented Interfaces:
    java.util.function.Function<UserModel,​java.lang.String>

    public class UserIdentifier
    extends java.lang.Object
    implements java.util.function.Function<UserModel,​java.lang.String>
    Provides identifier for UserModel entities based on the 'usePk' flag. In case flag is 'true', string representation of PK is used, otherwise - user's UID value
    • Constructor Summary

      Constructors 
      Constructor Description
      UserIdentifier()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(UserModel userModel)  
      protected boolean isUsePk()  
      void setUsePk​(boolean usePk)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • UserIdentifier

        public UserIdentifier()
    • Method Detail

      • apply

        public java.lang.String apply​(UserModel userModel)
        Specified by:
        apply in interface java.util.function.Function<UserModel,​java.lang.String>
      • isUsePk

        protected boolean isUsePk()
      • setUsePk

        public void setUsePk​(boolean usePk)