public interface IProductObject extends IProductComponentLinkSource
IProductComponent and IProductComponentGeneration.| Modifier and Type | Method and Description |
|---|---|
IConfigurableModelObject |
createPolicyComponent()
Creates a new policy component that is configured by this product component generation.
|
DateTime |
getValidFrom()
Returns the date from which this generation is valid.
|
Date |
getValidFrom(TimeZone zone)
Returns the point in time this generation is valid from in the given time zone.
|
boolean |
isValidationRuleActivated(String ruleName)
Returns whether the validation rule with the given name is configured as active in this
IProductObject. |
void |
setValidationRuleActivated(String ruleName,
boolean active)
Enables or disables validation for a specific rule.
|
getLink, getLinks, getRepositoryIConfigurableModelObject createPolicyComponent()
RuntimeException - if this product component does not configure a policy component.DateTime getValidFrom()
Date getValidFrom(TimeZone zone)
null.NullPointerException - if zone is null.boolean isValidationRuleActivated(String ruleName)
IProductObject. If there is no configuration for the given rule, false
is returned.
Please be aware that only one of IProductComponent or
IProductComponentGeneration can configure any given rule depending on its
changing-over-time configuration.
ruleName - the name of the rule in questiontrue if the rule was activated, false else.void setValidationRuleActivated(String ruleName, boolean active)
ruleName - the name of the rule in questionactive - indicating whether the validation rule is configured as activeIllegalRepositoryModificationException - if the IRuntimeRepository containing
this IProductObject is not modifiableCopyright © 2021. All rights reserved.