Interface UserService

  • All Known Implementing Classes:
    UserServiceImpl

    public interface UserService
    • Method Detail

      • login

        org.acumos.cds.domain.MLPUser login​(String username,
                                            String password)
      • findUserByEmail

        org.acumos.cds.domain.MLPUser findUserByEmail​(String emailId)
      • findUserByUsername

        org.acumos.cds.domain.MLPUser findUserByUsername​(String username)
      • delete

        boolean delete()
      • resetUserPassword

        boolean resetUserPassword​(String emailId)
                           throws Exception
        Method to support User Account Password Reset functionality
        Parameters:
        emailId - email ID
        Returns:
        true or false
        Throws:
        Exception - on failure
      • changeUserPassword

        boolean changeUserPassword​(String userId,
                                   String oldPassword,
                                   String newPassword)
                            throws Exception
        Method to support User Account Password Update functionality
        Parameters:
        userId - user ID
        oldPassword - old password
        newPassword - new password
        Returns:
        true or false
        Throws:
        Exception - on failure
      • updateUser

        void updateUser​(User user)
      • forgetPassword

        void forgetPassword​(org.acumos.cds.domain.MLPUser mlpUser)
                     throws Exception
        Throws:
        Exception
      • findUserByUserId

        org.acumos.cds.domain.MLPUser findUserByUserId​(String userId)
      • getUserRole

        List<org.acumos.cds.domain.MLPRole> getUserRole​(String userId)
      • updateUserImage

        void updateUserImage​(org.acumos.cds.domain.MLPUser user)
      • updateBulkUsers

        void updateBulkUsers​(org.acumos.cds.domain.MLPUser mlpUser)
      • getRoleCountForUser

        MLRole getRoleCountForUser​(org.acumos.cds.transport.RestPageRequest pageRequest)
      • deleteBulkUsers

        void deleteBulkUsers​(String mlpUser)
      • generatePassword

        void generatePassword​(org.acumos.cds.domain.MLPUser mlpUser)
      • isPublisherRole

        boolean isPublisherRole​(String userId)
      • isAdminRole

        boolean isAdminRole​(String userId)
      • deleteToken

        void deleteToken​(User user)
      • updateMLPUser

        void updateMLPUser​(org.acumos.cds.domain.MLPUser mlpUser)