Class UserUtils
java.lang.Object
es.kukenan.smartfi.microservice.firm.utils.UserUtils
class for handler some util methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractUserId(es.kukenan.smartfi.common.service.jwt.WalletAuthenticationJwtImpl walletAuthenticationJwt) Extract user ID from smartfi authentication.static List<UserBackoffice>map(User user, List<es.kukenan.smartfi.microservice.clients.events.common.UserBackoffice> userBackofficeEntities) Map the givenUserBackofficelist to aUserBackofficelist.
-
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 givenUserBackofficelist to aUserBackofficelist.- 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.
-