Interface TmaProductSpecificationFacade
- All Known Implementing Classes:
DefaultTmaProductSpecificationFacade
public interface TmaProductSpecificationFacade
Facade that handles operations related to
TmaProductSpecificationData.- Since:
- 2102
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreateProductSpecification(TmaProductSpecificationData productSpecificationData) Creates aTmaProductSpecificationModelfor the givenTmaProductSpecificationData.getNumberOfProductSpecifications(TmaProductSpecificationContextData productSpecificationContextData) Computes the total number of productSpecification.Retrieves theTmaProductSpecificationDatawith the given id.getProductSpecificationsByLimitAndOffset(TmaProductSpecificationContextData productSpecificationContextData, Integer offset, Integer limit) Retrieves a list of product specifications filtered by contextvoidRemoves the productSpecification by id.voidsaveProductSpecification(TmaProductSpecificationData tmaProductSpecificationData) Saves the givenTmaProductSpecificationData.
-
Method Details
-
getProductSpecificationsByLimitAndOffset
List<TmaProductSpecificationData> getProductSpecificationsByLimitAndOffset(TmaProductSpecificationContextData productSpecificationContextData, Integer offset, Integer limit) Retrieves a list of product specifications filtered by context- Parameters:
productSpecificationContextData- the context.offset- the offset represents the position in list from where the result list will start.limit- the limit represents the number of entries that will be selected for the result list.- Returns:
- the list of product specifications.
-
getProductSpecification
Retrieves theTmaProductSpecificationDatawith the given id.- Parameters:
id- unique identifier of theTmaProductSpecificationDatato be retrieved- Returns:
- the
TmaProductSpecificationDatafound. - Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- if no product specification is found.
-
createProductSpecification
Creates aTmaProductSpecificationModelfor the givenTmaProductSpecificationData.- Parameters:
productSpecificationData- the given product specification data.- Returns:
- true if successful, false otherwise.
-
getNumberOfProductSpecifications
Integer getNumberOfProductSpecifications(TmaProductSpecificationContextData productSpecificationContextData) Computes the total number of productSpecification.- Parameters:
productSpecificationContextData- the context.- Returns:
- the number of productSpecification.
-
removeProductSpecification
Removes the productSpecification by id.- Parameters:
id- the id of the product specification
-
saveProductSpecification
Saves the givenTmaProductSpecificationData.- Parameters:
tmaProductSpecificationData- the product Specification
-