Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.


UC-06a

UserManagement - Add user

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE_USER
DescriptionFunctionality to add new users
Secuence
  1. User requests to add a user
  2. System returns user creation form
  3. User add customer data:
    1. A user may have multiple roles but ROLE_USER cannot mixed with any other role. 
    2. If user is created with ROLE_USER and as initial user it will be marked as default contact person and cannot be modified)
    3. If user is created as default contact person, email and phone fields are mandatory.
  4. If new user is marked as contact person for a customer, system may unmark previous contact person if it existed.
  5. if new user is associated with a customerId, system adds customer linkage.
  6. System saves user.
  7. If email is defined, system sends a confirmation email.
PostconditionsAudit fields must save who created that user.
Exceptions

System must reject user creation if username just exists.

System must reject user createion if role is ROLE_USER and customerId is not defined.

CommentsNone

...

UC-06d

UserManagement - Find users

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User could have ROLE_ADMINISTRATIVE_USER or ROLE_PRODUCT_MANAGER
DescriptionFunctionality to search for users
Secuence
  1. User request for a list of users.
  2. System will query database using provided parameters
  3. System will return the result list.
PostconditionsNone
Exceptions

None

CommentsNone

...

UC-06e

UserManagement - Unblock user

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE_USER
DescriptionFunctionality to unblock a user
Secuence
  1. User requests to unblock a blocked users by number of failed logins exceeded from users list.
  2. System will update user.
  3. System will return to the users list.
PostconditionsNone
Exceptions

System will raise and exception if primary key does not exist.

CommentsNone


UC-06f

UserManagement - Reset password

Versión1.0
DependenciesNone
Preconditions
  • Users with role ROLE_ADMINISTRATIVE_USER may reset passwords from other users
DescriptionFunctionality to reset password
Secuence
  1. User requests to reset a password
    1. If role is ANONYMOUS (not logged)
      1. System returns recovery form.
      2. Users sends current username or email
      3. System generates a new password and it will send the new password to the provided email y username and email matches
    2. If role is ROLE_ADMINISTRATIVE_USER
      1. System returns recovery form for selected user
      2. Admin User sets new user password.
      3. System sends the new password to the user email.(no validation performed)
    3. Other logged users
      1. System returns recovery form
      2. User sets the new password and the old current password.
      3. System changes the password and notifies user y current password matches.
PostconditionsNone
Exceptions

System will raise and exception if primary key does not exist.

CommentsNone


UC-06g

UserManagement - Login

Versión1.0
DependenciesNone
Preconditions
DescriptionFunctionality to sign into the portal
Secuence
  1. User requests to sign in
  2. System returns login form
  3. User sets username and password
  4. System validates credentials and check user block status
    1. If user is blocked system will be warned about and credentials will be ignored. 
    2. If the credentials match then user is redirected inside the portal. 
    3. If the credentials did not match user will be warned about that invalid credentials.
      System may track that invalid login attemp over that username.  If max login attemps is reached user account must be blocked.
PostconditionsNone
Exceptions

System will raise and exception if primary key does not exist.user is blocked

System will raise and exception if user credentials are wrong

CommentsNone