Class IdentityViewMapper

java.lang.Object
com.irurueta.authserver.authorization.api.web.social.IdentityViewMapper

@Component public class IdentityViewMapper extends Object
Maps the linked identities of the domain onto the view model of the identities page.
  • Constructor Details

    • IdentityViewMapper

      public IdentityViewMapper()
  • Method Details

    • toView

      public IdentityView toView(FederatedIdentity identity)
      Maps an identity.
      Parameters:
      identity - the identity.
      Returns:
      its view.
    • toViews

      public List<IdentityView> toViews(List<FederatedIdentity> identities)
      Maps several identities, keeping their order.
      Parameters:
      identities - the identities.
      Returns:
      their views.