/
Use Cases - UC-02 Products

Use Cases - UC-02 Products

UC-02a

ProductManagement - Add product

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE
  • User may require ROLE_PRODUCT_MANAGER
DescriptionFunctionality to add new products
Secuence
  1. User request to add a product
  2. System returns product creation form
  3. User add general product information. I18N fields will be provided for the prefered_language. All products maybe invisible by default.
  4. UI offers to define new languages. Exist one option to copy texts to a new language or fill the empty fields.
  5. Licensed product field may only be editable by productManagers. By default it will be false.
  6. System receives request and save it to storage. 
  7. System may offer the option to add versions to product(@see UC-03a VersionManagement-addVersion)
PostconditionsAudit fields must save who created that product.
ExceptionsSystem must reject product if provided product KEY just exists.
CommentsProduct KEYs are mandatory and primary keys and could not be modified once a product is created.

UC-02b

ProductManagement - Update product

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE
  • User may require ROLE_PRODUCT_MANAGER
DescriptionFunctionality to update a product
Secuence
  1. User request to obtain a product by primary key.
  2. System returns product detailed model.
  3. User updates general product information. User can updates I18n fields for the defined languages, add new languages or remove an existent one.
  4. System receives request and save it to storage. PRODUCT_KEY AND VISIBILITY field will be ignored.
  5. Licensed product field may only be editable by productManagers. By default keeps unchanged.
PostconditionsAudit fields must save who modified that product.
Exceptions

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

CommentsProduct KEYs are mandatory and primary keys and could not be modified once a product is created.


UC-02c

ProductManagement - Remove product

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE
DescriptionFunctionality to remove a product
Secuence
  1. User request to remove a product by primary key.
  2. System will warn about the loose of data (versions and storage).
  3. User accepts to remove the product.
PostconditionsNone
Exceptions

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

CommentsNone


UC-02d

ProductManagement - Change product visibility

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_PRODUCT_MANAGER
DescriptionFunctionality to update product visibility
Secuence
  1. User request to change product visibility by primary key
  2. System will check the number of versions that are published:
    1. If visible = 0: Warn about that situation to the user
  3. System updates product.
PostconditionsAudit fields must save who modified the product
Exceptions

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

CommentsNone


UC-02e

ProductManagement - Find products

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User could have ANY ROLE
DescriptionFunctionality to search for categories
Secuence
  1. User request for a list of products.
  2. System will query database using provided parameters. If version details are requested then it will be included in response. Product and versioni18N fields must be returned in all the configured languages.
PostconditionsNone
Exceptions

None

CommentsNone



Related content

Avvale 2024