Class GeneratedAbstractRuleTemplate

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

public abstract class GeneratedAbstractRuleTemplate extends GenericItem
Generated class for type AbstractRuleTemplate.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedAbstractRuleTemplate

      public GeneratedAbstractRuleTemplate()
  • 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 AbstractRuleTemplate.code attribute.
      Returns:
      the code - Rule code that defines the rule uniquely
    • getCode

      public String getCode()
      Generated method - Getter of the AbstractRuleTemplate.code attribute.
      Returns:
      the code - Rule code that defines the rule uniquely
    • setCode

      public void setCode(SessionContext ctx, String value)
      Generated method - Setter of the AbstractRuleTemplate.code attribute.
      Parameters:
      value - the code - Rule code that defines the rule uniquely
    • setCode

      public void setCode(String value)
      Generated method - Setter of the AbstractRuleTemplate.code attribute.
      Parameters:
      value - the code - Rule code that defines the rule uniquely
    • 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 AbstractRuleTemplate.description attribute.
      Returns:
      the description - Rule description
    • getDescription

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

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

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

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

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

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

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

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

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

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

      public int getMaxAllowedRunsAsPrimitive()
      Generated method - Getter of the AbstractRuleTemplate.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 AbstractRuleTemplate.maxAllowedRuns attribute.
      Parameters:
      value - the maxAllowedRuns - Number of times rule can be applied
    • setMaxAllowedRuns

      public void setMaxAllowedRuns(Integer value)
      Generated method - Setter of the AbstractRuleTemplate.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 AbstractRuleTemplate.maxAllowedRuns attribute.
      Parameters:
      value - the maxAllowedRuns - Number of times rule can be applied
    • setMaxAllowedRuns

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

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

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

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

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

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

      public void setMessageFired(String value)
      Generated method - Setter of the AbstractRuleTemplate.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 AbstractRuleTemplate.messageFired attribute.
      Parameters:
      value - the messageFired - Message for fired rule.
    • setAllMessageFired

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

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

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

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

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

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

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

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

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

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

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

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

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