Versiones comparadas

Clave

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


UC-02a

ProductManagement - Add

category

product

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE_USER
  • User may require ROLE_PRODUCT_MANAGER
DescriptionFunctionality to add new categoriesproducts
Secuence
  1. User request to add a categoryproduct
  2. System returns category product creation form
  3. User add general category product information. I18N fields will be provided for the prefered_language. System may decide if category is visible. (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 storage. 
  7. System may offer the option to add products versions to category product(@see UC-01f CategoryManagement03a VersionManagement-updateCategoryProductsaddVersion)
PostconditionsAudit fields must save who created that categoryproduct.
ExceptionsSystem must reject categories product if provided category product KEY just exists.
CommentsCategory Product KEYs are mandatory and primery primary keys and could not be modified once a category product is created.


UC-

01b

02b

CategoryManagement

ProductManagement - Update

category

product

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE_USER
  • User may require ROLE_PRODUCT_MANAGER
DescriptionFunctionality to update a categoryproduct
Secuence
  1. User request to obtain a category product by primary key.
  2. System returns category product detailed model.
  3. User updates general category 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.System may offer the option to update the products associated to category (@see UC-01f CategoryManagement-updateCategoryProducts)
  5. Licensed product field may only be editable by productManagers. By default keeps unchanged.
PostconditionsAudit fields must save who modified that categoryproduct.
Exceptions

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

CommentsCategory Product KEYs are mandatory and primery primary keys and could not be modified once a category product is created.


UC-

01c

02c

CategoryManagement

ProductManagement -

Remove category

 Remove product

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE_USER
DescriptionFunctionality to remove a categoryproduct
Secuence
  1. User request to remove a category product by primary key.
  2. System will check for associated products and warn about the user about:
  3. Number of products that belongs to that category that will be orphan.
  4. Double check to remove that categoryloose of data (versions and storage).
  5. User accepts to remove the category.
  6. System updates all the products to remove the category.
  7. System removes category.
  1. System may offer the option to move the products to another category (@see UC-01f CategoryManagement-updateCategoryProducts)
PostconditionsAudit fields must save who modified that products.
  1. product.
PostconditionsNone
Exceptions

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

CommentsNone


UC-

01d

02d

CategoryManagement

ProductManagement -

Change

 Change category visibility

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_PRODUCT_MANAGER
DescriptionFunctionality to update category visibility
Secuence
  1. User request to change category visibility of category by primary key
  2. System will check the number of products that belongs to that category that are visible:
    1. If visible = 0: Warn about that situation to the user
  3. System updates category.
  4. System may offer the option to update the products visibility (@see UC-02b ProductManagement-updateProduct)
PostconditionsAudit fields must save who modified the category
Exceptions

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

CommentsNone


UC-

01e

02e

CategoryManagement

ProductManagement -

Find

 Find categories

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 categories.
  2. 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.
PostconditionsNone
Exceptions

None

CommentsNone


UC-

01f

02f

CategoryManagement

ProductManagement -

Update

 Update category products

Versión1.0
DependenciesNone
Preconditions
  • User must be logged
  • User must have ROLE_ADMINISTRATIVE_USER
DescriptionFunctionality to update products associated to a category
Secuence
  1. User request for a category-products update.
  2. System will return a detailed category with the current associated products and a list of the rest of available products.
  3. User may add/remove products from the list
  4. System will receive a list of the new products that will belong to this category: 
    1. Products removed maybe updated removing the category from them.
    2. Products added to the list must be associated now to the current Category.
  5. System will check the number of products that belongs now to that category that are visible:
    1. If visible = 0: Warn about that situation to the user.
PostconditionsNone
Exceptions

None

CommentsNone

...