Class SourceRuleModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProductConfigSourceRuleModel, PromotionSourceRuleModel

public class SourceRuleModel extends AbstractRuleModel
Generated model class for type SourceRule first defined at extension ruleengineservices.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _CAMPAIGN2SOURCERULERELATION

      public static final String _CAMPAIGN2SOURCERULERELATION
      Generated relation code constant for relation Campaign2SourceRuleRelation defining source attribute campaigns in extension ruleengineservices.
      See Also:
    • CONDITIONS

      public static final String CONDITIONS
      Generated constant - Attribute key of SourceRule.conditions attribute defined at extension ruleengineservices.
      See Also:
    • ACTIONS

      public static final String ACTIONS
      Generated constant - Attribute key of SourceRule.actions attribute defined at extension ruleengineservices.
      See Also:
    • CAMPAIGNS

      public static final String CAMPAIGNS
      Generated constant - Attribute key of SourceRule.campaigns attribute defined at extension ruleengineservices.
      See Also:
  • Constructor Details

    • SourceRuleModel

      public SourceRuleModel()
      Generated constructor - Default constructor for generic creation.
    • SourceRuleModel

      public SourceRuleModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • SourceRuleModel

      @Deprecated(since="4.1.1", forRemoval=true) public SourceRuleModel(String _code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _code - initial attribute declared by type AbstractRule at extension ruleengineservices
    • SourceRuleModel

      @Deprecated(since="4.1.1", forRemoval=true) public SourceRuleModel(String _code, ItemModel _owner, String _uuid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _code - initial attribute declared by type AbstractRule at extension ruleengineservices
      _owner - initial attribute declared by type Item at extension core
      _uuid - initial attribute declared by type AbstractRule at extension ruleengineservices
  • Method Details

    • getActions

      @Accessor(qualifier="actions", type=GETTER) public String getActions()
      Generated method - Getter of the SourceRule.actions attribute defined at extension ruleengineservices.
      Returns:
      the actions - Rule consequences stored in a formatted String
    • getCampaigns

      @Accessor(qualifier="campaigns", type=GETTER) public Set<CampaignModel> getCampaigns()
      Generated method - Getter of the SourceRule.campaigns attribute defined at extension ruleengineservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the campaigns
    • getConditions

      @Accessor(qualifier="conditions", type=GETTER) public String getConditions()
      Generated method - Getter of the SourceRule.conditions attribute defined at extension ruleengineservices.
      Returns:
      the conditions - Rule conditions stored in a formatted String
    • setActions

      @Accessor(qualifier="actions", type=SETTER) public void setActions(String value)
      Generated method - Setter of SourceRule.actions attribute defined at extension ruleengineservices.
      Parameters:
      value - the actions - Rule consequences stored in a formatted String
    • setCampaigns

      @Accessor(qualifier="campaigns", type=SETTER) public void setCampaigns(Set<CampaignModel> value)
      Generated method - Setter of SourceRule.campaigns attribute defined at extension ruleengineservices.
      Parameters:
      value - the campaigns
    • setConditions

      @Accessor(qualifier="conditions", type=SETTER) public void setConditions(String value)
      Generated method - Setter of SourceRule.conditions attribute defined at extension ruleengineservices.
      Parameters:
      value - the conditions - Rule conditions stored in a formatted String