public interface FSProductAssignmentService
| Modifier and Type | Method and Description |
|---|---|
void |
assignProductToUnit(B2BCustomerModel customer,
ProductModel product,
B2BUnitModel unit)
Assign given product
ProductModel to specified unit B2BUnitModel |
boolean |
checkProductAssignment(B2BUnitModel unit,
ProductModel product)
Check if a given product
ProductModel is assigned for specified unit B2BUnitModel |
void |
deassignProductOfUnit(ProductModel product,
B2BUnitModel unit)
Deassign given product
ProductModel from specified unit B2BUnitModel |
java.util.List<ProductModel> |
getActiveProductsForUnit(B2BUnitModel unit,
CatalogVersionModel catalogVersion)
Get the list of
ProductModel active instances for specified unit and catalog version |
SearchPageData<FSProductAssignmentModel> |
getAllPagedProductsForUnit(SearchPageData searchPageData,
B2BUnitModel unit)
Get the list of
FSProductAssignmentModel for specified unit |
java.util.List<ProductModel> |
getAssignedProductsForUnit(B2BUnitModel unit,
CatalogVersionModel catalogVersion)
Get the list of
ProductModel assigned instances for specified unit and catalog version |
FSProductAssignmentModel |
getProductForUnit(B2BUnitModel unit,
ProductModel product)
Gets product for unit.
|
boolean |
isCategoryAvailableForB2BCustomer(CategoryModel category,
B2BCustomerModel b2bcustomer)
Check if any product
ProductModel from category CategoryModel is available for b2bcustomer B2BCustomerModel |
FSProductAssignmentModel getProductForUnit(B2BUnitModel unit, ProductModel product)
unit - the unitproduct - the productjava.util.List<ProductModel> getActiveProductsForUnit(B2BUnitModel unit, CatalogVersionModel catalogVersion)
ProductModel active instances for specified unit and catalog versionunit - b2bunit for which active products should be retrievedcatalogVersion - the catalog versionProductModeljava.util.List<ProductModel> getAssignedProductsForUnit(B2BUnitModel unit, CatalogVersionModel catalogVersion)
ProductModel assigned instances for specified unit and catalog versionunit - b2bunit for which assigned products should be retrievedcatalogVersion - the catalog versionProductModelboolean checkProductAssignment(B2BUnitModel unit, ProductModel product)
ProductModel is assigned for specified unit B2BUnitModelunit - unit for checking of assignmentproduct - product for checking of assignmentboolean isCategoryAvailableForB2BCustomer(CategoryModel category, B2BCustomerModel b2bcustomer)
ProductModel from category CategoryModel is available for b2bcustomer B2BCustomerModelcategory - category for checking if any of its product is assignedb2bcustomer - b2bcustomer for checking if specified category is availableSearchPageData<FSProductAssignmentModel> getAllPagedProductsForUnit(SearchPageData searchPageData, B2BUnitModel unit)
FSProductAssignmentModel for specified unitsearchPageData - contains requested pagination and sorting informationunit - b2bunit for which products should be retrievedFSProductAssignmentModelvoid assignProductToUnit(B2BCustomerModel customer, ProductModel product, B2BUnitModel unit) throws DuplicateUidException
ProductModel to specified unit B2BUnitModelcustomer - customer who is assigning a productproduct - product which is assigned to specific b2bunitunit - unit for which product is assignedDuplicateUidException - the duplicate uid exceptionvoid deassignProductOfUnit(ProductModel product, B2BUnitModel unit)
ProductModel from specified unit B2BUnitModelproduct - product which is deassigned from specific b2bunitunit - unit from which product is deassignedCopyright © 2018 SAP SE. All Rights Reserved.