Interface TmaProductSpecificationService
- All Known Implementing Classes:
DefaultTmaProductSpecificationService
public interface TmaProductSpecificationService
Service for operations related to the
TmaProductSpecificationModel.- Since:
- 6.7
-
Method Summary
Modifier and TypeMethodDescriptiongetNumberOfProductSpecification(TmaProductSpecificationContextData productSpecificationContextData) Retrieves the the number of productSpecification that exist.getProductSpecCharacteristicsForPsStructure(TmaProductSpecificationModel productSpecification) Collects allTmaProductSpecCharacteristicModels configured as Product Specification Characteristics on the given as well as on the children product specifications configured on the provided parent.Returns aTmaProductSpecificationModelfor the given id.getProductSpecifications(TmaProductSpecificationContextData productSpecificationContextData, Integer offset, Integer limit) Retrieves a list ofTmaProductSpecificationModelfiltered by the context.get TmaProductSpecCharacteristicValueModel For given IdvoidRemoves the productSpecification by id.voidsaveProductSpecification(TmaProductSpecificationModel productSpecificationModel) Saves the givenTmaProductSpecificationModel.
-
Method Details
-
getProductSpecCharacteristicsForPsStructure
Set<TmaProductSpecCharacteristicModel> getProductSpecCharacteristicsForPsStructure(TmaProductSpecificationModel productSpecification) Collects allTmaProductSpecCharacteristicModels configured as Product Specification Characteristics on the given as well as on the children product specifications configured on the provided parent.- Parameters:
productSpecification- product specification for which to retrieve all availableTmaProductSpecCharacteristicModels (configured on itself and on its children)- Returns:
- collection of
TmaProductSpecCharacteristicModels containing the Product Specification Characteristics from both the given as well as its children
-
getTmaProductSpecCharacteristicValueModelForId
TmaProductSpecCharacteristicValueModel getTmaProductSpecCharacteristicValueModelForId(String pscvId) get TmaProductSpecCharacteristicValueModel For given Id- Parameters:
pscvId- String should be ID of required PSCV- Returns:
- TmaProductSpecCharacteristicValueModel Product Spec Characteristic Value Model for given ID
-
getProductSpecification
Returns aTmaProductSpecificationModelfor the given id.- Parameters:
id- identifier ofTmaProductSpecificationModel- Returns:
- the
TmaProductSpecificationModelfound. - Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- if no Product Specification is found.
-
getProductSpecifications
List<TmaProductSpecificationModel> getProductSpecifications(TmaProductSpecificationContextData productSpecificationContextData, Integer offset, Integer limit) Retrieves a list ofTmaProductSpecificationModelfiltered by the context.- Parameters:
productSpecificationContextData- the context.offset- the offset.limit- the maximum number of returned agreements.- Returns:
- the list of productSpecifications found for the given offset and limit.
-
getNumberOfProductSpecification
Integer getNumberOfProductSpecification(TmaProductSpecificationContextData productSpecificationContextData) Retrieves the the number of productSpecification that exist.- Parameters:
productSpecificationContextData- the context.- Returns:
- the number of all found
TmaProductSpecificationModel.
-
removeProductSpecification
Removes the productSpecification by id.- Parameters:
id- the id of the product specification.
-
saveProductSpecification
Saves the givenTmaProductSpecificationModel.- Parameters:
productSpecificationModel- the product Specification
-