public interface IProductComponent extends IRuntimeObject, IProductObject
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription(Locale locale)
Returns the description for this product component in the specified locale.
|
IProductComponentGeneration |
getGenerationBase(Calendar effectiveDate)
Returns the generation that is effective on the given date or
null if no
generation is effective on that date. |
String |
getId()
Returns the product component's id that uniquely identifies it in the repository it belongs
to.
|
String |
getKindId()
Returns the id of the product component kind that this product component belongs to.
|
IProductComponentGeneration |
getLatestProductComponentGeneration()
Returns the latest product component generation of the provided product component or
null if non available. |
IRuntimeRepository |
getRepository()
Returns the repository this product component belongs to.
|
DateTime |
getValidTo()
Returns the date when this product component expires.
|
IProductComponent |
getVariedBase()
Allows distinguishing variants not only by their product component type but also their varied
base.
|
String |
getVersionId()
Returns the version id that identifies this product component in its kind.
|
boolean |
isChangingOverTime()
Returns
true if this product component has product component generations. |
boolean |
isVariant()
A variant is a product component that is based on another product component (hence varied
base).
|
getExtensionPropertyIds, getExtensionPropertyValuecreatePolicyComponent, getValidFrom, getValidFrom, isValidationRuleActivated, setValidationRuleActivatedgetLink, getLinksIRuntimeRepository getRepository()
null.getRepository in interface IProductComponentLinkSourceIRuntimeRepository that was used to create this
IProductComponentLinkSourceString getId()
String getKindId()
String getVersionId()
boolean isVariant()
true if this is a variant of another IProductComponent,
false for regular product components.getVariedBase()IProductComponent getVariedBase()
isVariant() allows determining whether a product component is a variant.IProductComponent this IProductComponent is based on. Returns
null if it is a regular product component or the variedBase can not be found in the IRuntimeRepository.isVariant(),
IRuntimeRepository.getProductComponent(String)DateTime getValidTo()
null means no
end of the validity period.IProductComponentGeneration getGenerationBase(Calendar effectiveDate)
null if no
generation is effective on that date.UnsupportedOperationException - if this product component has no product component
generations.NullPointerException - if effective date is null.IProductComponentGeneration getLatestProductComponentGeneration()
null if non available.UnsupportedOperationException - if this product component has no product component
generations.boolean isChangingOverTime()
true if this product component has product component generations.String getDescription(Locale locale)
Copyright © 2019. All rights reserved.