Ir al final de los metadatos
Ir al inicio de los metadatos
UC-02a | ProductManagement - Add product |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_ADMINISTRATIVE_USER
- User may require ROLE_PRODUCT_MANAGER
|
Description | Functionality to add new products |
Secuence | - User request to add a product
- System returns product creation form
- User add general product information. I18N fields will be provided for the prefered_language. All products maybe invisible by default.
- UI offers to define new languages. Exist one option to copy texts to a new language or fill the empty fields.
- Licensed product field may only be editable by productManagers. By default it will be false.
- System receives request and save it to storage.
- System may offer the option to add versions to product(@see UC-03a VersionManagement-addVersion)
|
Postconditions | Audit fields must save who created that product. |
Exceptions | System must reject product if provided product KEY just exists. |
Comments | Product KEYs are mandatory and primary keys and could not be modified once a product is created. |
UC-02b | ProductManagement - Update product |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_ADMINISTRATIVE_USER
- User may require ROLE_PRODUCT_MANAGER
|
Description | Functionality to update a product |
Secuence | - User request to obtain a product by primary key.
- System returns product detailed model.
- User updates general product information. User can updates I18n fields for the defined languages, add new languages or remove an existent one.
- System receives request and save it to storage. PRODUCT_KEY AND VISIBILITY field will be ignored.
- Licensed product field may only be editable by productManagers. By default keeps unchanged.
|
Postconditions | Audit fields must save who modified that product. |
Exceptions | System will raise and exception if primarey key does not exist. |
Comments | Product KEYs are mandatory and primary keys and could not be modified once a product is created. |
UC-02c | ProductManagement - Remove product |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_ADMINISTRATIVE_USER
|
Description | Functionality to remove a product |
Secuence | - User request to remove a product by primary key.
- System will warn about the loose of data (versions and storage).
- User accepts to remove the product.
|
Postconditions | None |
Exceptions | System will raise and exception if primary key does not exist. |
Comments | None |
UC-02d | ProductManagement - Change product visibility |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_PRODUCT_MANAGER
|
Description | Functionality to update product visibility |
Secuence | - User request to change product visibility by primary key
- System will check the number of versions that are published:
- If visible = 0: Warn about that situation to the user
- System updates product.
|
Postconditions | Audit fields must save who modified the product |
Exceptions | System will raise and exception if primarey key does not exist. |
Comments | None |
UC-02e | ProductManagement - Find products |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User could have ANY ROLE
|
Description | Functionality to search for categories |
Secuence | - User request for a list of products.
- 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.
|
Postconditions | None |
Exceptions | None |
Comments | None |