Class DefaultTmaProductSpecificationService
java.lang.Object
de.hybris.platform.b2ctelcoservices.services.impl.DefaultTmaProductSpecificationService
- All Implemented Interfaces:
TmaProductSpecificationService
public class DefaultTmaProductSpecificationService
extends Object
implements TmaProductSpecificationService
Default implementation of the
TmaProductSpecificationService.- Since:
- 6.7
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaProductSpecificationService(TmaProductSpecCharactersticsValueDao productSpecCharactersticsValueDao, GenericSearchDao tmaProductSpecificationDao, TmaProductSpecificationDao tmaProductSpecDao, de.hybris.platform.servicelayer.model.ModelService modelService) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.model.ModelServicegetNumberOfProductSpecification(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.final List<TmaProductSpecificationModel>getProductSpecifications(TmaProductSpecificationContextData productSpecificationContextData, Integer offset, Integer limit) Retrieves a list ofTmaProductSpecificationModelfiltered by the context.get TmaProductSpecCharacteristicValueModel For given Idprotected TmaProductSpecCharactersticsValueDaoprotected TmaProductSpecificationDaoprotected GenericSearchDaovoidRemoves the productSpecification by id.voidsaveProductSpecification(TmaProductSpecificationModel productSpecificationModel) Saves the givenTmaProductSpecificationModel.voidsetTmaProductSpecCharactersticsValueDao(TmaProductSpecCharactersticsValueDao tmaProductSpecCharactersticsValueDao)
-
Constructor Details
-
DefaultTmaProductSpecificationService
public DefaultTmaProductSpecificationService(TmaProductSpecCharactersticsValueDao productSpecCharactersticsValueDao, GenericSearchDao tmaProductSpecificationDao, TmaProductSpecificationDao tmaProductSpecDao, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Details
-
getProductSpecCharacteristicsForPsStructure
public Set<TmaProductSpecCharacteristicModel> getProductSpecCharacteristicsForPsStructure(TmaProductSpecificationModel productSpecification) Description copied from interface:TmaProductSpecificationServiceCollects allTmaProductSpecCharacteristicModels configured as Product Specification Characteristics on the given as well as on the children product specifications configured on the provided parent.- Specified by:
getProductSpecCharacteristicsForPsStructurein interfaceTmaProductSpecificationService- 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
public TmaProductSpecCharacteristicValueModel getTmaProductSpecCharacteristicValueModelForId(String pscvId) Description copied from interface:TmaProductSpecificationServiceget TmaProductSpecCharacteristicValueModel For given Id- Specified by:
getTmaProductSpecCharacteristicValueModelForIdin interfaceTmaProductSpecificationService- Parameters:
pscvId- String should be ID of required PSCV- Returns:
- TmaProductSpecCharacteristicValueModel Product Spec Characteristic Value Model for given ID
-
getProductSpecification
Description copied from interface:TmaProductSpecificationServiceReturns aTmaProductSpecificationModelfor the given id.- Specified by:
getProductSpecificationin interfaceTmaProductSpecificationService- Parameters:
id- identifier ofTmaProductSpecificationModel- Returns:
- the
TmaProductSpecificationModelfound.
-
saveProductSpecification
Description copied from interface:TmaProductSpecificationServiceSaves the givenTmaProductSpecificationModel.- Specified by:
saveProductSpecificationin interfaceTmaProductSpecificationService- Parameters:
productSpecificationModel- the product Specification
-
getProductSpecifications
public final List<TmaProductSpecificationModel> getProductSpecifications(TmaProductSpecificationContextData productSpecificationContextData, Integer offset, Integer limit) Description copied from interface:TmaProductSpecificationServiceRetrieves a list ofTmaProductSpecificationModelfiltered by the context.- Specified by:
getProductSpecificationsin interfaceTmaProductSpecificationService- 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
public Integer getNumberOfProductSpecification(TmaProductSpecificationContextData productSpecificationContextData) Description copied from interface:TmaProductSpecificationServiceRetrieves the the number of productSpecification that exist.- Specified by:
getNumberOfProductSpecificationin interfaceTmaProductSpecificationService- Parameters:
productSpecificationContextData- the context.- Returns:
- the number of all found
TmaProductSpecificationModel.
-
removeProductSpecification
Description copied from interface:TmaProductSpecificationServiceRemoves the productSpecification by id.- Specified by:
removeProductSpecificationin interfaceTmaProductSpecificationService- Parameters:
id- the id of the product specification.
-
getTmaProductSpecCharactersticsValueDao
-
setTmaProductSpecCharactersticsValueDao
public void setTmaProductSpecCharactersticsValueDao(TmaProductSpecCharactersticsValueDao tmaProductSpecCharactersticsValueDao) -
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getTmaProductSpecificationDao
-
getTmaProductSpecDao
-