Interface IProductComponent

    • Method Detail

      • getId

        java.lang.String getId()
        Returns the product component's id that uniquely identifies it in the repository it belongs to.
      • getKindId

        java.lang.String getKindId()
        Returns the id of the product component kind that this product component belongs to.
      • getVersionId

        java.lang.String getVersionId()
        Returns the version id that identifies this product component in its kind.
      • isVariant

        boolean isVariant()
        A variant is a product component that is based on another product component (hence varied base). It uses the varied base as a template and "changes" specific values.
        Returns:
        true if this is a variant of another IProductComponent, false for regular product components.
        See Also:
        getVariedBase()
      • getValidTo

        DateTime getValidTo()
        Returns the date when this product component expires. Returning null means no end of the validity period.
      • getGenerationBase

        IProductComponentGeneration getGenerationBase​(java.util.Calendar effectiveDate)
        Returns the generation that is effective on the given date or null if no generation is effective on that date.
        Throws:
        java.lang.UnsupportedOperationException - if this product component has no product component generations.
        java.lang.NullPointerException - if effective date is null.
      • getLatestProductComponentGeneration

        IProductComponentGeneration getLatestProductComponentGeneration()
        Returns the latest product component generation of the provided product component or null if non available.
        Throws:
        java.lang.UnsupportedOperationException - if this product component has no product component generations.
      • getDescription

        java.lang.String getDescription​(java.util.Locale locale)
        Returns the description for this product component in the specified locale. If there is no description in the specified locale, it tries to find the description in the locale's language. If there is also no description in the locale's language it returns the empty string.
        Returns:
        the description for the given locale/language or an empty string if no description exists for the given locale