Interface IProductObject

    • Method Detail

      • createPolicyComponent

        IConfigurableModelObject createPolicyComponent()
        Creates a new policy component that is configured by this product component generation. After creating the policy component it is automatically initialized. The new policy component is not added to any parent structure.

        Throws:
        java.lang.RuntimeException - if this product component does not configure a policy component.
      • getValidFrom

        DateTime getValidFrom()
        Returns the date from which this generation is valid.
        Returns:
        The valid from date of this generation
      • getValidFrom

        java.util.Date getValidFrom​(java.util.TimeZone zone)
        Returns the point in time this generation is valid from in the given time zone. This method never returns null.
        Throws:
        java.lang.NullPointerException - if zone is null.
      • isValidationRuleActivated

        boolean isValidationRuleActivated​(java.lang.String ruleName)
        Returns whether the validation rule with the given name is configured as active in this 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.

        Parameters:
        ruleName - the name of the rule in question
        Returns:
        true if the rule was activated, false else.
        Since:
        3.22
      • setValidationRuleActivated

        void setValidationRuleActivated​(java.lang.String ruleName,
                                        boolean active)
        Enables or disables validation for a specific rule.
        Parameters:
        ruleName - the name of the rule in question
        active - indicating whether the validation rule is configured as active
        Throws:
        IllegalRepositoryModificationException - if the IRuntimeRepository containing this IProductObject is not modifiable
        Since:
        3.22