Class UserSelfServiceImpl

    • Constructor Detail

    • Method Detail

      • create

        public javax.ws.rs.core.Response create​(UserCR createReq)
        Description copied from interface: UserSelfService
        Self-registration for new user.
        Specified by:
        create in interface UserSelfService
        Parameters:
        createReq - user to be created
        Returns:
        Response object featuring Location header of self-registered user as well as the user itself enriched with propagation status information
      • read

        public javax.ws.rs.core.Response read()
        Description copied from interface: UserSelfService
        Returns the user making the service call.
        Specified by:
        read in interface UserSelfService
        Returns:
        calling user data, including own UUID, entitlements and delegations
      • update

        public javax.ws.rs.core.Response update​(UserUR updateReq)
        Description copied from interface: UserSelfService
        Self-updates user.
        Specified by:
        update in interface UserSelfService
        Parameters:
        updateReq - modification to be applied to self
        Returns:
        Response object featuring the updated user
      • update

        public javax.ws.rs.core.Response update​(UserTO user)
        Description copied from interface: UserSelfService
        Self-updates user.
        Specified by:
        update in interface UserSelfService
        Parameters:
        user - complete update
        Returns:
        Response object featuring the updated user
      • status

        public javax.ws.rs.core.Response status​(StatusR statusR)
        Description copied from interface: UserSelfService
        Self-perform a status update.
        Specified by:
        status in interface UserSelfService
        Parameters:
        statusR - status update details
        Returns:
        Response object featuring the updated user enriched with propagation status information
      • delete

        public javax.ws.rs.core.Response delete()
        Description copied from interface: UserSelfService
        Self-deletes user.
        Specified by:
        delete in interface UserSelfService
        Returns:
        Response object featuring the deleted user
      • mustChangePassword

        public javax.ws.rs.core.Response mustChangePassword​(String password)
        Description copied from interface: UserSelfService
        Changes own password when change was forced by an administrator.
        Specified by:
        mustChangePassword in interface UserSelfService
        Parameters:
        password - the password value to update
        Returns:
        Response object featuring the updated user
      • requestPasswordReset

        public void requestPasswordReset​(String username,
                                         String securityAnswer)
        Description copied from interface: UserSelfService
        Provides answer for the security question configured for user matching the given username, if any. If provided answer matches the one stored for that user, a password reset token is internally generated, otherwise an error is returned.
        Specified by:
        requestPasswordReset in interface UserSelfService
        Parameters:
        username - username for which the security answer is provided
        securityAnswer - actual answer text
      • confirmPasswordReset

        public void confirmPasswordReset​(String token,
                                         String password)
        Description copied from interface: UserSelfService
        Reset the password value for the user matching the provided token, if available and still valid. If the token actually matches one of users, and if it is still valid at the time of submission, the matching user's password value is set as provided. The new password value will need anyway to comply with all relevant password policies.
        Specified by:
        confirmPasswordReset in interface UserSelfService
        Parameters:
        token - password reset token
        password - new password to be set