Class GeneratedAbstractRuleTemplate

    • Field Detail

      • CODE

        public static final java.lang.String CODE
        Qualifier of the AbstractRuleTemplate.code attribute
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        Qualifier of the AbstractRuleTemplate.name attribute
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Qualifier of the AbstractRuleTemplate.description attribute
        See Also:
        Constant Field Values
      • MAXALLOWEDRUNS

        public static final java.lang.String MAXALLOWEDRUNS
        Qualifier of the AbstractRuleTemplate.maxAllowedRuns attribute
        See Also:
        Constant Field Values
      • MESSAGEFIRED

        public static final java.lang.String MESSAGEFIRED
        Qualifier of the AbstractRuleTemplate.messageFired attribute
        See Also:
        Constant Field Values
      • RULEGROUP

        public static final java.lang.String RULEGROUP
        Qualifier of the AbstractRuleTemplate.ruleGroup attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedAbstractRuleTemplate

        public GeneratedAbstractRuleTemplate()
    • Method Detail

      • getCode

        public java.lang.String getCode​(SessionContext ctx)
        Generated method - Getter of the AbstractRuleTemplate.code attribute.
        Returns:
        the code - Rule code that defines the rule uniquely
      • getCode

        public java.lang.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,
                            java.lang.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​(java.lang.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 java.lang.String getDescription​(SessionContext ctx)
        Generated method - Getter of the AbstractRuleTemplate.description attribute.
        Returns:
        the description - Rule description
      • getDescription

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

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

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

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

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

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

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

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

        public java.lang.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,
                                      java.lang.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​(java.lang.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 java.lang.String getMessageFired​(SessionContext ctx)
        Generated method - Getter of the AbstractRuleTemplate.messageFired attribute.
        Returns:
        the messageFired - Message for fired rule.
      • getMessageFired

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public void setAllName​(java.util.Map<Language,​java.lang.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