Ir al final de los metadatos
Ir al inicio de los metadatos
UC-01a | CategoryManagement - Add category |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_ADMINISTRATIVE_USER
|
Description | Functionality to add new categories |
Secuence | - User request to add a category
- System returns category creation form
- User add general category information. I18N fields will be provided for the prefered_language. User may decide if category is visible. (invisible by default)
- UI offers to define new languages. Exist one option to copy texts to a new language or fill the empty fields
- System receives request and save it to storage
- System may offer the option to add products to category (@see UC-01f CategoryManagement-updateCategoryProducts)
|
Postconditions | Audit fields must save who created that category. |
Exceptions | System must reject categories if provided category KEY just exists. |
Comments | Category KEYs are mandatory and primery keys and could not be modified once a category is created. |
UC-01b | CategoryManagement - Update category |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_ADMINISTRATIVE_USER
|
Description | Functionality to update a category |
Secuence | - User request to obtain a category by primary key.
- System returns category detailed model.
- User updates general category 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. VISIBILITY field will be ignored.
- System may offer the option to update the products associated to category (@see UC-01f CategoryManagement-updateCategoryProducts)
|
Postconditions | Audit fields must save who modified that category. |
Exceptions | System will raise and exception if primarey key does not exist. |
Comments | Category KEYs are mandatory and primery keys and could not be modified once a category is created. |
UC-01c | CategoryManagement - Remove category |
---|
Versión | 1.0 |
Dependencies | None |
Preconditions | - User must be logged
- User must have ROLE_ADMINISTRATIVE_USER
|
Description | Functionality to remove a category |
Secuence | - User request to remove a category by primary key.
- System will check for associated products and warn the user about:
- Number of products that belongs to that category that will be orphan.
- Double check to remove that category
- User accepts to remove the category.
- System updates all the products to remove the category.
- System removes category.
- System may offer the option to move the products to another category (@see UC-01f CategoryManagement-updateCategoryProducts)
|
Postconditions | Audit fields must save who modified that products. |
Exceptions | System will raise and exception if primarey key does not exist. |
Comments | None |
UC-01d | CategoryManagement - 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-01e | CategoryManagement - 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-01f | CategoryManagement - 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 |