java.lang.Object
es.kukenan.smartfi.microservice.contracts.utils.UserUtils

public class UserUtils extends Object
class for handler some util methods.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    extractAgent(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication)
    Extract user ID from kukenbank authentication.
    static String
    extractSessionId(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication)
    Extract Session ID from kukenbank authentication.
    static String
    extractUserId(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication)
    Extract user ID from kukenbank authentication.
    map(User user, List<es.kukenan.smartfi.microservice.clients.events.common.UserBackoffice> userBackofficeEntities)
    Map the given UserBackoffice list to a UserBackoffice list.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UserUtils

      public UserUtils()
  • Method Details

    • map

      public static List<UserBackoffice> map(User user, List<es.kukenan.smartfi.microservice.clients.events.common.UserBackoffice> userBackofficeEntities)
      Map the given UserBackoffice list to a UserBackoffice list.
      Parameters:
      user - event.
      userBackofficeEntities - a user backoffice entity list.
      Returns:
      the mapped user backoffice dto list.
    • extractUserId

      public static String extractUserId(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication)
      Extract user ID from kukenbank authentication.
      Parameters:
      walletAuthentication - received authentication.
      Returns:
      the user identifier.
    • extractAgent

      public static String extractAgent(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication)
      Extract user ID from kukenbank authentication.
      Parameters:
      walletAuthentication - received authentication.
      Returns:
      the user identifier.
    • extractSessionId

      public static String extractSessionId(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication)
      Extract Session ID from kukenbank authentication.
      Parameters:
      walletAuthentication - received authentication.
      Returns:
      the Session identifier.