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

public class UserUtils extends Object
class for handler some util methods.
  • 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.service.jwt.WalletAuthenticationJwtImpl walletAuthenticationJwt)
      Extract user ID from smartfi authentication.
      Parameters:
      walletAuthenticationJwt - received authentication.
      Returns:
      the user identifier.