Class LoadLinkedUserAuthorizationGenerator

  • All Implemented Interfaces:
    AuthorizationGenerator

    public class LoadLinkedUserAuthorizationGenerator
    extends java.lang.Object
    implements AuthorizationGenerator
    Load a linked account and replace the original account.
    Since:
    2.0.0
    Author:
    Jerome Leleu
    • Constructor Detail

      • LoadLinkedUserAuthorizationGenerator

        public LoadLinkedUserAuthorizationGenerator()
      • LoadLinkedUserAuthorizationGenerator

        public LoadLinkedUserAuthorizationGenerator​(ProfileService profileService)
    • Method Detail

      • generate

        public java.util.Optional<UserProfile> generate​(WebContext context,
                                                        SessionStore sessionStore,
                                                        UserProfile profile)
        Description copied from interface: AuthorizationGenerator
        Generate the authorization information from and for the user profile.
        Specified by:
        generate in interface AuthorizationGenerator
        Parameters:
        context - the web context
        sessionStore - the session store
        profile - the user profile for which to generate the authorization information.
        Returns:
        the updated profile or a new one (optional)
      • setProfileService

        public void setProfileService​(ProfileService profileService)
      • isFailIfLinkedUserNotFound

        public boolean isFailIfLinkedUserNotFound()
      • setFailIfLinkedUserNotFound

        public void setFailIfLinkedUserNotFound​(boolean failIfLinkedUserNotFound)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object