Class GeneratedRuleConditionDefinitionParameter

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

public abstract class GeneratedRuleConditionDefinitionParameter extends GenericItem
Generated class for type RuleConditionDefinitionParameter.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedRuleConditionDefinitionParameter

      public GeneratedRuleConditionDefinitionParameter()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • 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
    • getDefaultEditor

      public String getDefaultEditor(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.defaultEditor attribute.
      Returns:
      the defaultEditor - default editor for the parameter
    • getDefaultEditor

      public String getDefaultEditor()
      Generated method - Getter of the RuleConditionDefinitionParameter.defaultEditor attribute.
      Returns:
      the defaultEditor - default editor for the parameter
    • setDefaultEditor

      public void setDefaultEditor(SessionContext ctx, String value)
      Generated method - Setter of the RuleConditionDefinitionParameter.defaultEditor attribute.
      Parameters:
      value - the defaultEditor - default editor for the parameter
    • setDefaultEditor

      public void setDefaultEditor(String value)
      Generated method - Setter of the RuleConditionDefinitionParameter.defaultEditor attribute.
      Parameters:
      value - the defaultEditor - default editor for the parameter
    • getDefinition

      public RuleConditionDefinition getDefinition(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.definition attribute.
      Returns:
      the definition
    • getDefinition

      public RuleConditionDefinition getDefinition()
      Generated method - Getter of the RuleConditionDefinitionParameter.definition attribute.
      Returns:
      the definition
    • setDefinition

      public void setDefinition(SessionContext ctx, RuleConditionDefinition value)
      Generated method - Setter of the RuleConditionDefinitionParameter.definition attribute.
      Parameters:
      value - the definition
    • setDefinition

      public void setDefinition(RuleConditionDefinition value)
      Generated method - Setter of the RuleConditionDefinitionParameter.definition attribute.
      Parameters:
      value - the definition
    • getDescription

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

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

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

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

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

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

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

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

      public Map<String,String> getAllFilters(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.filters attribute.
      Returns:
      the filters - The map defines narrowing filtering rules. For every entry: key corresponds to the type field name to narrow for, value corresponds to RuleConditionDefinitionParameter.id to narrow by
    • getAllFilters

      public Map<String,String> getAllFilters()
      Generated method - Getter of the RuleConditionDefinitionParameter.filters attribute.
      Returns:
      the filters - The map defines narrowing filtering rules. For every entry: key corresponds to the type field name to narrow for, value corresponds to RuleConditionDefinitionParameter.id to narrow by
    • setAllFilters

      public void setAllFilters(SessionContext ctx, Map<String,String> value)
      Generated method - Setter of the RuleConditionDefinitionParameter.filters attribute.
      Parameters:
      value - the filters - The map defines narrowing filtering rules. For every entry: key corresponds to the type field name to narrow for, value corresponds to RuleConditionDefinitionParameter.id to narrow by
    • setAllFilters

      public void setAllFilters(Map<String,String> value)
      Generated method - Setter of the RuleConditionDefinitionParameter.filters attribute.
      Parameters:
      value - the filters - The map defines narrowing filtering rules. For every entry: key corresponds to the type field name to narrow for, value corresponds to RuleConditionDefinitionParameter.id to narrow by
    • getId

      public String getId(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.id attribute.
      Returns:
      the id
    • getId

      public String getId()
      Generated method - Getter of the RuleConditionDefinitionParameter.id attribute.
      Returns:
      the id
    • setId

      public void setId(SessionContext ctx, String value)
      Generated method - Setter of the RuleConditionDefinitionParameter.id attribute.
      Parameters:
      value - the id
    • setId

      public void setId(String value)
      Generated method - Setter of the RuleConditionDefinitionParameter.id attribute.
      Parameters:
      value - the id
    • getName

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

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

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

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

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

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

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

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

      public Integer getPriority(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.priority attribute.
      Returns:
      the priority
    • getPriority

      public Integer getPriority()
      Generated method - Getter of the RuleConditionDefinitionParameter.priority attribute.
      Returns:
      the priority
    • getPriorityAsPrimitive

      public int getPriorityAsPrimitive(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.priority attribute.
      Returns:
      the priority
    • getPriorityAsPrimitive

      public int getPriorityAsPrimitive()
      Generated method - Getter of the RuleConditionDefinitionParameter.priority attribute.
      Returns:
      the priority
    • setPriority

      public void setPriority(SessionContext ctx, Integer value)
      Generated method - Setter of the RuleConditionDefinitionParameter.priority attribute.
      Parameters:
      value - the priority
    • setPriority

      public void setPriority(Integer value)
      Generated method - Setter of the RuleConditionDefinitionParameter.priority attribute.
      Parameters:
      value - the priority
    • setPriority

      public void setPriority(SessionContext ctx, int value)
      Generated method - Setter of the RuleConditionDefinitionParameter.priority attribute.
      Parameters:
      value - the priority
    • setPriority

      public void setPriority(int value)
      Generated method - Setter of the RuleConditionDefinitionParameter.priority attribute.
      Parameters:
      value - the priority
    • isRequired

      public Boolean isRequired(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.required attribute.
      Returns:
      the required - whether the parameter is required
    • isRequired

      public Boolean isRequired()
      Generated method - Getter of the RuleConditionDefinitionParameter.required attribute.
      Returns:
      the required - whether the parameter is required
    • isRequiredAsPrimitive

      public boolean isRequiredAsPrimitive(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.required attribute.
      Returns:
      the required - whether the parameter is required
    • isRequiredAsPrimitive

      public boolean isRequiredAsPrimitive()
      Generated method - Getter of the RuleConditionDefinitionParameter.required attribute.
      Returns:
      the required - whether the parameter is required
    • setRequired

      public void setRequired(SessionContext ctx, Boolean value)
      Generated method - Setter of the RuleConditionDefinitionParameter.required attribute.
      Parameters:
      value - the required - whether the parameter is required
    • setRequired

      public void setRequired(Boolean value)
      Generated method - Setter of the RuleConditionDefinitionParameter.required attribute.
      Parameters:
      value - the required - whether the parameter is required
    • setRequired

      public void setRequired(SessionContext ctx, boolean value)
      Generated method - Setter of the RuleConditionDefinitionParameter.required attribute.
      Parameters:
      value - the required - whether the parameter is required
    • setRequired

      public void setRequired(boolean value)
      Generated method - Setter of the RuleConditionDefinitionParameter.required attribute.
      Parameters:
      value - the required - whether the parameter is required
    • getType

      public String getType(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.type attribute.
      Returns:
      the type
    • getType

      public String getType()
      Generated method - Getter of the RuleConditionDefinitionParameter.type attribute.
      Returns:
      the type
    • setType

      public void setType(SessionContext ctx, String value)
      Generated method - Setter of the RuleConditionDefinitionParameter.type attribute.
      Parameters:
      value - the type
    • setType

      public void setType(String value)
      Generated method - Setter of the RuleConditionDefinitionParameter.type attribute.
      Parameters:
      value - the type
    • getValidators

      public List<String> getValidators(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.validators attribute.
      Returns:
      the validators
    • getValidators

      public List<String> getValidators()
      Generated method - Getter of the RuleConditionDefinitionParameter.validators attribute.
      Returns:
      the validators
    • setValidators

      public void setValidators(SessionContext ctx, List<String> value)
      Generated method - Setter of the RuleConditionDefinitionParameter.validators attribute.
      Parameters:
      value - the validators
    • setValidators

      public void setValidators(List<String> value)
      Generated method - Setter of the RuleConditionDefinitionParameter.validators attribute.
      Parameters:
      value - the validators
    • getValue

      public String getValue(SessionContext ctx)
      Generated method - Getter of the RuleConditionDefinitionParameter.value attribute.
      Returns:
      the value
    • getValue

      public String getValue()
      Generated method - Getter of the RuleConditionDefinitionParameter.value attribute.
      Returns:
      the value
    • setValue

      public void setValue(SessionContext ctx, String value)
      Generated method - Setter of the RuleConditionDefinitionParameter.value attribute.
      Parameters:
      value - the value
    • setValue

      public void setValue(String value)
      Generated method - Setter of the RuleConditionDefinitionParameter.value attribute.
      Parameters:
      value - the value