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 category visibility |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_PRODUCT_MANAGER
|
Description | Functionality to update category visibility |
Secuence | - User request to change category visibility of category by primary key
- System will check the number of products that belongs to that category that are visible:
- If visible = 0: Warn about that situation to the user
- System updates category.
- System may offer the option to update the products visibility (@see UC-02b ProductManagement-updateProduct)
|
Postconditions | Audit fields must save who modified the category |
Exceptions | System will raise and exception if primarey key does not exist. |
Comments | None |
UC-02e | ProductManagement - Find categories |
---|
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 categories.
- System will query database using provided parameters. If product details are requested then it will be included in response.Product and category i18N fields must be returned in all the configured languages.
|
Postconditions | None |
Exceptions | None |
Comments | None |
UC-02f | ProductManagement - Update category products |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_ADMINISTRATIVE_USER
|
Description | Functionality to update products associated to a category |
Secuence | - User request for a category-products update.
- System will return a detailed category with the current associated products and a list of the rest of available products.
- User may add/remove products from the list
- System will receive a list of the new products that will belong to this category:
- Products removed maybe updated removing the category from them.
- Products added to the list must be associated now to the current Category.
- System will check the number of products that belongs now to that category that are visible:
- If visible = 0: Warn about that situation to the user.
|
Postconditions | None |
Exceptions | None |
Comments | None |