Class GeneratedAbstractRule

    • Field Detail

      • UUID

        public static final java.lang.String UUID
        Qualifier of the AbstractRule.uuid attribute
        See Also:
        Constant Field Values
      • CODE

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

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

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

        public static final java.lang.String STARTDATE
        Qualifier of the AbstractRule.startDate attribute
        See Also:
        Constant Field Values
      • ENDDATE

        public static final java.lang.String ENDDATE
        Qualifier of the AbstractRule.endDate attribute
        See Also:
        Constant Field Values
      • PRIORITY

        public static final java.lang.String PRIORITY
        Qualifier of the AbstractRule.priority attribute
        See Also:
        Constant Field Values
      • MAXALLOWEDRUNS

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

        public static final java.lang.String STACKABLE
        Qualifier of the AbstractRule.stackable attribute
        See Also:
        Constant Field Values
      • STATUS

        public static final java.lang.String STATUS
        Qualifier of the AbstractRule.status attribute
        See Also:
        Constant Field Values
      • VERSION

        public static final java.lang.String VERSION
        Qualifier of the AbstractRule.version attribute
        See Also:
        Constant Field Values
      • MESSAGEFIRED

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

        public static final java.lang.String RULESMODULES
        Qualifier of the AbstractRule.rulesModules attribute
        See Also:
        Constant Field Values
      • RULEGROUP

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

        public static final java.lang.String ENGINERULES
        Qualifier of the AbstractRule.engineRules 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

      • GeneratedAbstractRule

        public GeneratedAbstractRule()
    • Method Detail

      • getCode

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

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

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

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

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

        public void setDescription​(java.lang.String value)
        Generated method - Setter of the AbstractRule.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 AbstractRule.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 AbstractRule.description attribute.
        Parameters:
        value - the description - Rule description
      • getEndDate

        public java.util.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 java.util.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,
                               java.util.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​(java.util.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 java.util.Set<AbstractRuleEngineRule> getEngineRules​(SessionContext ctx)
        Generated method - Getter of the AbstractRule.engineRules attribute.
        Returns:
        the engineRules
      • getEngineRules

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

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

        public void setEngineRules​(java.util.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 java.lang.Integer getMaxAllowedRuns​(SessionContext ctx)
        Generated method - Getter of the AbstractRule.maxAllowedRuns attribute.
        Returns:
        the maxAllowedRuns - Number of times rule can be applied
      • getMaxAllowedRuns

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

        public java.lang.String getMessageFired()
        Generated method - Getter of the AbstractRule.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 AbstractRule.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 AbstractRule.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 AbstractRule.messageFired attribute.
        Parameters:
        value - the messageFired - Message for fired rule.
      • setMessageFired

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

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

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

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

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

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

        public void setName​(java.lang.String value)
        Generated method - Setter of the AbstractRule.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 AbstractRule.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 AbstractRule.name attribute.
        Parameters:
        value - the name - Rule name
      • getPriority

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

        public java.lang.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,
                                java.lang.Integer value)
        Generated method - Setter of the AbstractRule.priority attribute.
        Parameters:
        value - the priority - priority (higher priority gets applied first)
      • setPriority

        public void setPriority​(java.lang.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 java.util.List<AbstractRulesModule> getRulesModules​(SessionContext ctx)
        Generated method - Getter of the AbstractRule.rulesModules attribute.
        Returns:
        the rulesModules - List of the current deployments.
      • getRulesModules

        public java.util.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,
                                    java.util.List<AbstractRulesModule> value)
        Generated method - Setter of the AbstractRule.rulesModules attribute.
        Parameters:
        value - the rulesModules - List of the current deployments.
      • setRulesModules

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

        public java.lang.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 java.lang.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,
                                 java.lang.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​(java.lang.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 java.util.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 java.util.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,
                                 java.util.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​(java.util.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 java.lang.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 java.lang.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,
                               java.lang.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​(java.lang.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 java.lang.Long getVersion​(SessionContext ctx)
        Generated method - Getter of the AbstractRule.version attribute.
        Returns:
        the version - rule version
      • getVersion

        public java.lang.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,
                               java.lang.Long value)
        Generated method - Setter of the AbstractRule.version attribute.
        Parameters:
        value - the version - rule version
      • setVersion

        public void setVersion​(java.lang.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