Class ProductServiceImpl

    • Constructor Detail

      • ProductServiceImpl

        public ProductServiceImpl()
    • Method Detail

      • getVariantAttributes

        public java.util.Collection<PropertyDescriptor> getVariantAttributes​(java.lang.String typeCode)
      • hasVariants

        public boolean hasVariants​(TypedObject item)
        Description copied from interface: ProductService
        Checks if item is a product that has at least one variant existing
        Specified by:
        hasVariants in interface ProductService
        Parameters:
        item - item to be checked
        Returns:
        true if there is at least one variant defined for provided item
      • isBaseProduct

        public boolean isBaseProduct​(TypedObject item)
        Description copied from interface: ProductService
        Checks if item is a base product
        Specified by:
        isBaseProduct in interface ProductService
        Parameters:
        item - item to be checked
        Returns:
        true if item provided is a base product
      • getVariants

        public java.util.List<TypedObject> getVariants​(TypedObject base)
        Description copied from interface: ProductService
        Gets all variants of provided item that are defined in the system
        Specified by:
        getVariants in interface ProductService
        Parameters:
        base - base item
        Returns:
        list of variants defined
      • getAllApprovalStatusCodes

        public java.util.List<java.lang.String> getAllApprovalStatusCodes()
        Description copied from interface: ProductService
        Gets all available approval status codes
        Specified by:
        getAllApprovalStatusCodes in interface ProductService
        Returns:
        list approval status codes
      • getApprovalStatusName

        public java.lang.String getApprovalStatusName​(java.lang.String code)
        Description copied from interface: ProductService
        Gets an enum value name of provided approval status code
        Specified by:
        getApprovalStatusName in interface ProductService
        Parameters:
        code - approval status code
        Returns:
        enum value name for approval status
        See Also:
        ArticleApprovalStatus
      • getApprovalStatusFromCode

        @Deprecated
        protected EnumerationValue getApprovalStatusFromCode​(java.lang.String code)
        Deprecated.
        since 6.3
      • getApprovalStatusValueFromCode

        protected HybrisEnumValue getApprovalStatusValueFromCode​(java.lang.String code)
      • createPdfDatasheetDocument

        public boolean createPdfDatasheetDocument​(TypedObject product)
        Description copied from interface: ProductService
        Creates new pdf attachment for product
        Specified by:
        createPdfDatasheetDocument in interface ProductService
        Parameters:
        product - product to which new pdf should be attached
        Returns:
        true if attachment has been successfully created
      • getFormat

        protected Format getFormat​(java.lang.String code,
                                   Item item)
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • setModelService

        public void setModelService​(ModelService modelService)
      • setVariantsService

        public void setVariantsService​(VariantsService variantsService)
      • setScriptEvaluationService

        public void setScriptEvaluationService​(ScriptEvaluationService scriptEvaluationService)
      • setEnumerationService

        public void setEnumerationService​(EnumerationService enumerationService)