Class ProductServiceImpl
java.lang.Object
de.hybris.platform.productcockpit.services.product.impl.ProductServiceImpl
- All Implemented Interfaces:
ProductService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreatePdfDatasheetDocument(TypedObject product) Creates new pdf attachment for productvoiddeletePdfDatasheetDocument(TypedObject document) Deletes provided PDF documentGets all available approval status codesGets approval status code for provided itemprotected EnumerationValueDeprecated.since 6.3getApprovalStatusName(String code) Gets an enum value name of provided approval status codeprotected HybrisEnumValueprotected FormatgetPdfDatasheetDocuments(TypedObject product) Gets all PDF documents attached to product.getVariantAttributes(String typeCode) getVariants(TypedObject base) Gets all variants of provided item that are defined in the systemGets a type code of variants for provided item.booleanhasVariants(TypedObject item) Checks if item is a product that has at least one variant existingbooleanisBaseProduct(TypedObject item) Checks if item is a base productvoidsetApprovalStatus(TypedObject item, String code) Sets new approval status code for prodcutvoidsetEnumerationService(EnumerationService enumerationService) voidsetModelService(ModelService modelService) voidsetScriptEvaluationService(ScriptEvaluationService scriptEvaluationService) voidsetTypeService(TypeService typeService) voidsetVariantsService(VariantsService variantsService)
-
Constructor Details
-
ProductServiceImpl
public ProductServiceImpl()
-
-
Method Details
-
getVariantAttributes
-
hasVariants
Description copied from interface:ProductServiceChecks if item is a product that has at least one variant existing- Specified by:
hasVariantsin interfaceProductService- Parameters:
item- item to be checked- Returns:
trueif there is at least one variant defined for provided item
-
isBaseProduct
Description copied from interface:ProductServiceChecks if item is a base product- Specified by:
isBaseProductin interfaceProductService- Parameters:
item- item to be checked- Returns:
trueif item provided is a base product
-
getVariants
Description copied from interface:ProductServiceGets all variants of provided item that are defined in the system- Specified by:
getVariantsin interfaceProductService- Parameters:
base- base item- Returns:
- list of variants defined
-
getVariantTypecode
Description copied from interface:ProductServiceGets a type code of variants for provided item.Provided item needs to be a base product.
- Specified by:
getVariantTypecodein interfaceProductService- Parameters:
base- base product- Returns:
- type code for variats of provided product
- See Also:
-
getApprovalStatusCode
Description copied from interface:ProductServiceGets approval status code for provided item- Specified by:
getApprovalStatusCodein interfaceProductService- Parameters:
item- product to be checked- Returns:
- approval status code or
nullif provided item is not a product - See Also:
-
getAllApprovalStatusCodes
Description copied from interface:ProductServiceGets all available approval status codes- Specified by:
getAllApprovalStatusCodesin interfaceProductService- Returns:
- list approval status codes
-
getApprovalStatusName
Description copied from interface:ProductServiceGets an enum value name of provided approval status code- Specified by:
getApprovalStatusNamein interfaceProductService- Parameters:
code- approval status code- Returns:
- enum value name for approval status
- See Also:
-
getApprovalStatusFromCode
Deprecated.since 6.3 -
getApprovalStatusValueFromCode
-
setApprovalStatus
Description copied from interface:ProductServiceSets new approval status code for prodcut- Specified by:
setApprovalStatusin interfaceProductService- Parameters:
item- product to change an approval statuscode- new approval status code- See Also:
-
createPdfDatasheetDocument
Description copied from interface:ProductServiceCreates new pdf attachment for product- Specified by:
createPdfDatasheetDocumentin interfaceProductService- Parameters:
product- product to which new pdf should be attached- Returns:
trueif attachment has been successfully created
-
getFormat
-
getPdfDatasheetDocuments
Description copied from interface:ProductServiceGets all PDF documents attached to product.- Specified by:
getPdfDatasheetDocumentsin interfaceProductService- Parameters:
product- product which attachments are required- Returns:
- list of pdfs attached
-
deletePdfDatasheetDocument
Description copied from interface:ProductServiceDeletes provided PDF document- Specified by:
deletePdfDatasheetDocumentin interfaceProductService- Parameters:
document- document to be deleted
-
getTypeService
-
setTypeService
-
getModelService
-
setModelService
-
getVariantsService
-
setVariantsService
-
setScriptEvaluationService
-
setEnumerationService
-