Class GeneratedAbstractRule

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
AbstractRule

public abstract class GeneratedAbstractRule extends GenericItem
Generated class for type AbstractRule.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedAbstractRule

      public GeneratedAbstractRule()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getCode

      public String getCode(SessionContext ctx)
      Generated method - Getter of the AbstractRule.code attribute.
      Returns:
      the code - Rule code that defines the rule uniquely, cannot be changed after the rule is created
    • getCode

      public String getCode()
      Generated method - Getter of the AbstractRule.code attribute.
      Returns:
      the code - Rule code that defines the rule uniquely, cannot be changed after the rule is created
    • setCode

      protected void setCode(SessionContext ctx, String value)
      Generated method - Setter of the AbstractRule.code attribute.
      Parameters:
      value - the code - Rule code that defines the rule uniquely, cannot be changed after the rule is created
    • setCode

      protected void setCode(String value)
      Generated method - Setter of the AbstractRule.code attribute.
      Parameters:
      value - the code - Rule code that defines the rule uniquely, cannot be changed after the rule is created
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

      In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
      Sn example:

      
       public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
       ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
       man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
       // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
       SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
       super.getNonInitialAttributes( ctx, allAttributes );
       // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getDescription

      public String getDescription(SessionContext ctx)
      Generated method - Getter of the AbstractRule.description attribute.
      Returns:
      the description - Rule description
    • getDescription

      public String getDescription()
      Generated method - Getter of the AbstractRule.description attribute.
      Returns:
      the description - Rule description
    • getAllDescription

      public Map<Language,String> getAllDescription(SessionContext ctx)
      Generated method - Getter of the AbstractRule.description attribute.
      Returns:
      the localized description - Rule description
    • getAllDescription

      public Map<Language,String> getAllDescription()
      Generated method - Getter of the AbstractRule.description attribute.
      Returns:
      the localized description - Rule description
    • setDescription

      public void setDescription(SessionContext ctx, String value)
      Generated method - Setter of the AbstractRule.description attribute.
      Parameters:
      value - the description - Rule description
    • setDescription

      public void setDescription(String value)
      Generated method - Setter of the AbstractRule.description attribute.
      Parameters:
      value - the description - Rule description
    • setAllDescription

      public void setAllDescription(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the AbstractRule.description attribute.
      Parameters:
      value - the description - Rule description
    • setAllDescription

      public void setAllDescription(Map<Language,String> value)
      Generated method - Setter of the AbstractRule.description attribute.
      Parameters:
      value - the description - Rule description
    • getEndDate

      public Date getEndDate(SessionContext ctx)
      Generated method - Getter of the AbstractRule.endDate attribute.
      Returns:
      the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
    • getEndDate

      public Date getEndDate()
      Generated method - Getter of the AbstractRule.endDate attribute.
      Returns:
      the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
    • setEndDate

      public void setEndDate(SessionContext ctx, Date value)
      Generated method - Setter of the AbstractRule.endDate attribute.
      Parameters:
      value - the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
    • setEndDate

      public void setEndDate(Date value)
      Generated method - Setter of the AbstractRule.endDate attribute.
      Parameters:
      value - the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.
    • getEngineRules

      public Set<AbstractRuleEngineRule> getEngineRules(SessionContext ctx)
      Generated method - Getter of the AbstractRule.engineRules attribute.
      Returns:
      the engineRules
    • getEngineRules

      public Set<AbstractRuleEngineRule> getEngineRules()
      Generated method - Getter of the AbstractRule.engineRules attribute.
      Returns:
      the engineRules
    • setEngineRules

      public void setEngineRules(SessionContext ctx, Set<AbstractRuleEngineRule> value)
      Generated method - Setter of the AbstractRule.engineRules attribute.
      Parameters:
      value - the engineRules
    • setEngineRules

      public void setEngineRules(Set<AbstractRuleEngineRule> value)
      Generated method - Setter of the AbstractRule.engineRules attribute.
      Parameters:
      value - the engineRules
    • addToEngineRules

      public void addToEngineRules(SessionContext ctx, AbstractRuleEngineRule value)
      Generated method - Adds value to engineRules.
      Parameters:
      value - the item to add to engineRules
    • addToEngineRules

      public void addToEngineRules(AbstractRuleEngineRule value)
      Generated method - Adds value to engineRules.
      Parameters:
      value - the item to add to engineRules
    • removeFromEngineRules

      public void removeFromEngineRules(SessionContext ctx, AbstractRuleEngineRule value)
      Generated method - Removes value from engineRules.
      Parameters:
      value - the item to remove from engineRules
    • removeFromEngineRules

      public void removeFromEngineRules(AbstractRuleEngineRule value)
      Generated method - Removes value from engineRules.
      Parameters:
      value - the item to remove from engineRules
    • getMaxAllowedRuns

      public Integer getMaxAllowedRuns(SessionContext ctx)
      Generated method - Getter of the AbstractRule.maxAllowedRuns attribute.
      Returns:
      the maxAllowedRuns - Number of times rule can be applied
    • getMaxAllowedRuns

      public Integer getMaxAllowedRuns()
      Generated method - Getter of the AbstractRule.maxAllowedRuns attribute.
      Returns:
      the maxAllowedRuns - Number of times rule can be applied
    • getMaxAllowedRunsAsPrimitive

      public int getMaxAllowedRunsAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractRule.maxAllowedRuns attribute.
      Returns:
      the maxAllowedRuns - Number of times rule can be applied
    • getMaxAllowedRunsAsPrimitive

      public int getMaxAllowedRunsAsPrimitive()
      Generated method - Getter of the AbstractRule.maxAllowedRuns attribute.
      Returns:
      the maxAllowedRuns - Number of times rule can be applied
    • setMaxAllowedRuns

      public void setMaxAllowedRuns(SessionContext ctx, Integer value)
      Generated method - Setter of the AbstractRule.maxAllowedRuns attribute.
      Parameters:
      value - the maxAllowedRuns - Number of times rule can be applied
    • setMaxAllowedRuns

      public void setMaxAllowedRuns(Integer value)
      Generated method - Setter of the AbstractRule.maxAllowedRuns attribute.
      Parameters:
      value - the maxAllowedRuns - Number of times rule can be applied
    • setMaxAllowedRuns

      public void setMaxAllowedRuns(SessionContext ctx, int value)
      Generated method - Setter of the AbstractRule.maxAllowedRuns attribute.
      Parameters:
      value - the maxAllowedRuns - Number of times rule can be applied
    • setMaxAllowedRuns

      public void setMaxAllowedRuns(int value)
      Generated method - Setter of the AbstractRule.maxAllowedRuns attribute.
      Parameters:
      value - the maxAllowedRuns - Number of times rule can be applied
    • getMessageFired

      public String getMessageFired(SessionContext ctx)
      Generated method - Getter of the AbstractRule.messageFired attribute.
      Returns:
      the messageFired - Message for fired rule.
    • getMessageFired

      public String getMessageFired()
      Generated method - Getter of the AbstractRule.messageFired attribute.
      Returns:
      the messageFired - Message for fired rule.
    • getAllMessageFired

      public Map<Language,String> getAllMessageFired(SessionContext ctx)
      Generated method - Getter of the AbstractRule.messageFired attribute.
      Returns:
      the localized messageFired - Message for fired rule.
    • getAllMessageFired

      public Map<Language,String> getAllMessageFired()
      Generated method - Getter of the AbstractRule.messageFired attribute.
      Returns:
      the localized messageFired - Message for fired rule.
    • setMessageFired

      public void setMessageFired(SessionContext ctx, String value)
      Generated method - Setter of the AbstractRule.messageFired attribute.
      Parameters:
      value - the messageFired - Message for fired rule.
    • setMessageFired

      public void setMessageFired(String value)
      Generated method - Setter of the AbstractRule.messageFired attribute.
      Parameters:
      value - the messageFired - Message for fired rule.
    • setAllMessageFired

      public void setAllMessageFired(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the AbstractRule.messageFired attribute.
      Parameters:
      value - the messageFired - Message for fired rule.
    • setAllMessageFired

      public void setAllMessageFired(Map<Language,String> value)
      Generated method - Setter of the AbstractRule.messageFired attribute.
      Parameters:
      value - the messageFired - Message for fired rule.
    • getName

      public String getName(SessionContext ctx)
      Generated method - Getter of the AbstractRule.name attribute.
      Returns:
      the name - Rule name
    • getName

      public String getName()
      Generated method - Getter of the AbstractRule.name attribute.
      Returns:
      the name - Rule name
    • getAllName

      public Map<Language,String> getAllName(SessionContext ctx)
      Generated method - Getter of the AbstractRule.name attribute.
      Returns:
      the localized name - Rule name
    • getAllName

      public Map<Language,String> getAllName()
      Generated method - Getter of the AbstractRule.name attribute.
      Returns:
      the localized name - Rule name
    • setName

      public void setName(SessionContext ctx, String value)
      Generated method - Setter of the AbstractRule.name attribute.
      Parameters:
      value - the name - Rule name
    • setName

      public void setName(String value)
      Generated method - Setter of the AbstractRule.name attribute.
      Parameters:
      value - the name - Rule name
    • setAllName

      public void setAllName(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the AbstractRule.name attribute.
      Parameters:
      value - the name - Rule name
    • setAllName

      public void setAllName(Map<Language,String> value)
      Generated method - Setter of the AbstractRule.name attribute.
      Parameters:
      value - the name - Rule name
    • getPriority

      public Integer getPriority(SessionContext ctx)
      Generated method - Getter of the AbstractRule.priority attribute.
      Returns:
      the priority - priority (higher priority gets applied first)
    • getPriority

      public Integer getPriority()
      Generated method - Getter of the AbstractRule.priority attribute.
      Returns:
      the priority - priority (higher priority gets applied first)
    • getPriorityAsPrimitive

      public int getPriorityAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractRule.priority attribute.
      Returns:
      the priority - priority (higher priority gets applied first)
    • getPriorityAsPrimitive

      public int getPriorityAsPrimitive()
      Generated method - Getter of the AbstractRule.priority attribute.
      Returns:
      the priority - priority (higher priority gets applied first)
    • setPriority

      public void setPriority(SessionContext ctx, Integer value)
      Generated method - Setter of the AbstractRule.priority attribute.
      Parameters:
      value - the priority - priority (higher priority gets applied first)
    • setPriority

      public void setPriority(Integer value)
      Generated method - Setter of the AbstractRule.priority attribute.
      Parameters:
      value - the priority - priority (higher priority gets applied first)
    • setPriority

      public void setPriority(SessionContext ctx, int value)
      Generated method - Setter of the AbstractRule.priority attribute.
      Parameters:
      value - the priority - priority (higher priority gets applied first)
    • setPriority

      public void setPriority(int value)
      Generated method - Setter of the AbstractRule.priority attribute.
      Parameters:
      value - the priority - priority (higher priority gets applied first)
    • getRuleGroup

      public RuleGroup getRuleGroup(SessionContext ctx)
      Generated method - Getter of the AbstractRule.ruleGroup attribute.
      Returns:
      the ruleGroup
    • getRuleGroup

      public RuleGroup getRuleGroup()
      Generated method - Getter of the AbstractRule.ruleGroup attribute.
      Returns:
      the ruleGroup
    • setRuleGroup

      public void setRuleGroup(SessionContext ctx, RuleGroup value)
      Generated method - Setter of the AbstractRule.ruleGroup attribute.
      Parameters:
      value - the ruleGroup
    • setRuleGroup

      public void setRuleGroup(RuleGroup value)
      Generated method - Setter of the AbstractRule.ruleGroup attribute.
      Parameters:
      value - the ruleGroup
    • getRulesModules

      public List<AbstractRulesModule> getRulesModules(SessionContext ctx)
      Generated method - Getter of the AbstractRule.rulesModules attribute.
      Returns:
      the rulesModules - List of the current deployments.
    • getRulesModules

      public List<AbstractRulesModule> getRulesModules()
      Generated method - Getter of the AbstractRule.rulesModules attribute.
      Returns:
      the rulesModules - List of the current deployments.
    • setRulesModules

      public void setRulesModules(SessionContext ctx, List<AbstractRulesModule> value)
      Generated method - Setter of the AbstractRule.rulesModules attribute.
      Parameters:
      value - the rulesModules - List of the current deployments.
    • setRulesModules

      public void setRulesModules(List<AbstractRulesModule> value)
      Generated method - Setter of the AbstractRule.rulesModules attribute.
      Parameters:
      value - the rulesModules - List of the current deployments.
    • isStackable

      public Boolean isStackable(SessionContext ctx)
      Deprecated.
      Since 6.7
      Generated method - Getter of the AbstractRule.stackable attribute.
      Returns:
      the stackable - whether the rule is stackable
    • isStackable

      public Boolean isStackable()
      Deprecated.
      Since 6.7
      Generated method - Getter of the AbstractRule.stackable attribute.
      Returns:
      the stackable - whether the rule is stackable
    • isStackableAsPrimitive

      public boolean isStackableAsPrimitive(SessionContext ctx)
      Deprecated.
      Since 6.7
      Generated method - Getter of the AbstractRule.stackable attribute.
      Returns:
      the stackable - whether the rule is stackable
    • isStackableAsPrimitive

      public boolean isStackableAsPrimitive()
      Deprecated.
      Since 6.7
      Generated method - Getter of the AbstractRule.stackable attribute.
      Returns:
      the stackable - whether the rule is stackable
    • setStackable

      public void setStackable(SessionContext ctx, Boolean value)
      Deprecated.
      Since 6.7
      Generated method - Setter of the AbstractRule.stackable attribute.
      Parameters:
      value - the stackable - whether the rule is stackable
    • setStackable

      public void setStackable(Boolean value)
      Deprecated.
      Since 6.7
      Generated method - Setter of the AbstractRule.stackable attribute.
      Parameters:
      value - the stackable - whether the rule is stackable
    • setStackable

      public void setStackable(SessionContext ctx, boolean value)
      Deprecated.
      Since 6.7
      Generated method - Setter of the AbstractRule.stackable attribute.
      Parameters:
      value - the stackable - whether the rule is stackable
    • setStackable

      public void setStackable(boolean value)
      Deprecated.
      Since 6.7
      Generated method - Setter of the AbstractRule.stackable attribute.
      Parameters:
      value - the stackable - whether the rule is stackable
    • getStartDate

      public Date getStartDate(SessionContext ctx)
      Generated method - Getter of the AbstractRule.startDate attribute.
      Returns:
      the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
    • getStartDate

      public Date getStartDate()
      Generated method - Getter of the AbstractRule.startDate attribute.
      Returns:
      the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
    • setStartDate

      public void setStartDate(SessionContext ctx, Date value)
      Generated method - Setter of the AbstractRule.startDate attribute.
      Parameters:
      value - the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
    • setStartDate

      public void setStartDate(Date value)
      Generated method - Setter of the AbstractRule.startDate attribute.
      Parameters:
      value - the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.
    • getStatus

      public EnumerationValue getStatus(SessionContext ctx)
      Generated method - Getter of the AbstractRule.status attribute.
      Returns:
      the status - Status of a rule
    • getStatus

      public EnumerationValue getStatus()
      Generated method - Getter of the AbstractRule.status attribute.
      Returns:
      the status - Status of a rule
    • setStatus

      public void setStatus(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the AbstractRule.status attribute.
      Parameters:
      value - the status - Status of a rule
    • setStatus

      public void setStatus(EnumerationValue value)
      Generated method - Setter of the AbstractRule.status attribute.
      Parameters:
      value - the status - Status of a rule
    • getUuid

      public String getUuid(SessionContext ctx)
      Generated method - Getter of the AbstractRule.uuid attribute.
      Returns:
      the uuid - Rule uuid that defines the rule uniquely, cannot be changed after the rule is created
    • getUuid

      public String getUuid()
      Generated method - Getter of the AbstractRule.uuid attribute.
      Returns:
      the uuid - Rule uuid that defines the rule uniquely, cannot be changed after the rule is created
    • setUuid

      protected void setUuid(SessionContext ctx, String value)
      Generated method - Setter of the AbstractRule.uuid attribute.
      Parameters:
      value - the uuid - Rule uuid that defines the rule uniquely, cannot be changed after the rule is created
    • setUuid

      protected void setUuid(String value)
      Generated method - Setter of the AbstractRule.uuid attribute.
      Parameters:
      value - the uuid - Rule uuid that defines the rule uniquely, cannot be changed after the rule is created
    • getVersion

      public Long getVersion(SessionContext ctx)
      Generated method - Getter of the AbstractRule.version attribute.
      Returns:
      the version - rule version
    • getVersion

      public Long getVersion()
      Generated method - Getter of the AbstractRule.version attribute.
      Returns:
      the version - rule version
    • getVersionAsPrimitive

      public long getVersionAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractRule.version attribute.
      Returns:
      the version - rule version
    • getVersionAsPrimitive

      public long getVersionAsPrimitive()
      Generated method - Getter of the AbstractRule.version attribute.
      Returns:
      the version - rule version
    • setVersion

      public void setVersion(SessionContext ctx, Long value)
      Generated method - Setter of the AbstractRule.version attribute.
      Parameters:
      value - the version - rule version
    • setVersion

      public void setVersion(Long value)
      Generated method - Setter of the AbstractRule.version attribute.
      Parameters:
      value - the version - rule version
    • setVersion

      public void setVersion(SessionContext ctx, long value)
      Generated method - Setter of the AbstractRule.version attribute.
      Parameters:
      value - the version - rule version
    • setVersion

      public void setVersion(long value)
      Generated method - Setter of the AbstractRule.version attribute.
      Parameters:
      value - the version - rule version