Class GeneratedYFormData

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

public abstract class GeneratedYFormData extends GenericItem
Generated class for type YFormData.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedYFormData

      public GeneratedYFormData()
  • Method Details

    • getDefaultAttributeModes

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

      public String getApplicationId(SessionContext ctx)
      Generated method - Getter of the YFormData.applicationId attribute.
      Returns:
      the applicationId
    • getApplicationId

      public String getApplicationId()
      Generated method - Getter of the YFormData.applicationId attribute.
      Returns:
      the applicationId
    • setApplicationId

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

      public void setApplicationId(String value)
      Generated method - Setter of the YFormData.applicationId attribute.
      Parameters:
      value - the applicationId
    • getContent

      public String getContent(SessionContext ctx)
      Generated method - Getter of the YFormData.content attribute.
      Returns:
      the content
    • getContent

      public String getContent()
      Generated method - Getter of the YFormData.content attribute.
      Returns:
      the content
    • setContent

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

      public void setContent(String value)
      Generated method - Setter of the YFormData.content attribute.
      Parameters:
      value - the content
    • 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
    • getFormDefinition

      public YFormDefinition getFormDefinition(SessionContext ctx)
      Generated method - Getter of the YFormData.formDefinition attribute.
      Returns:
      the formDefinition
    • getFormDefinition

      public YFormDefinition getFormDefinition()
      Generated method - Getter of the YFormData.formDefinition attribute.
      Returns:
      the formDefinition
    • setFormDefinition

      public void setFormDefinition(SessionContext ctx, YFormDefinition value)
      Generated method - Setter of the YFormData.formDefinition attribute.
      Parameters:
      value - the formDefinition
    • setFormDefinition

      public void setFormDefinition(YFormDefinition value)
      Generated method - Setter of the YFormData.formDefinition attribute.
      Parameters:
      value - the formDefinition
    • getFormId

      public String getFormId(SessionContext ctx)
      Generated method - Getter of the YFormData.formId attribute.
      Returns:
      the formId
    • getFormId

      public String getFormId()
      Generated method - Getter of the YFormData.formId attribute.
      Returns:
      the formId
    • setFormId

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

      public void setFormId(String value)
      Generated method - Setter of the YFormData.formId attribute.
      Parameters:
      value - the formId
    • getHistory

      public List<YFormDataHistory> getHistory(SessionContext ctx)
      Generated method - Getter of the YFormData.history attribute.
      Returns:
      the history
    • getHistory

      public List<YFormDataHistory> getHistory()
      Generated method - Getter of the YFormData.history attribute.
      Returns:
      the history
    • setHistory

      public void setHistory(SessionContext ctx, List<YFormDataHistory> value)
      Generated method - Setter of the YFormData.history attribute.
      Parameters:
      value - the history
    • setHistory

      public void setHistory(List<YFormDataHistory> value)
      Generated method - Setter of the YFormData.history attribute.
      Parameters:
      value - the history
    • addToHistory

      public void addToHistory(SessionContext ctx, YFormDataHistory value)
      Generated method - Adds value to history.
      Parameters:
      value - the item to add to history
    • addToHistory

      public void addToHistory(YFormDataHistory value)
      Generated method - Adds value to history.
      Parameters:
      value - the item to add to history
    • removeFromHistory

      public void removeFromHistory(SessionContext ctx, YFormDataHistory value)
      Generated method - Removes value from history.
      Parameters:
      value - the item to remove from history
    • removeFromHistory

      public void removeFromHistory(YFormDataHistory value)
      Generated method - Removes value from history.
      Parameters:
      value - the item to remove from history
    • getId

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

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

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

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

      public String getRefId(SessionContext ctx)
      Generated method - Getter of the YFormData.refId attribute.
      Returns:
      the refId
    • getRefId

      public String getRefId()
      Generated method - Getter of the YFormData.refId attribute.
      Returns:
      the refId
    • setRefId

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

      public void setRefId(String value)
      Generated method - Setter of the YFormData.refId attribute.
      Parameters:
      value - the refId
    • isSystem

      public Boolean isSystem(SessionContext ctx)
      Generated method - Getter of the YFormData.system attribute.
      Returns:
      the system
    • isSystem

      public Boolean isSystem()
      Generated method - Getter of the YFormData.system attribute.
      Returns:
      the system
    • isSystemAsPrimitive

      public boolean isSystemAsPrimitive(SessionContext ctx)
      Generated method - Getter of the YFormData.system attribute.
      Returns:
      the system
    • isSystemAsPrimitive

      public boolean isSystemAsPrimitive()
      Generated method - Getter of the YFormData.system attribute.
      Returns:
      the system
    • setSystem

      public void setSystem(SessionContext ctx, Boolean value)
      Generated method - Setter of the YFormData.system attribute.
      Parameters:
      value - the system
    • setSystem

      public void setSystem(Boolean value)
      Generated method - Setter of the YFormData.system attribute.
      Parameters:
      value - the system
    • setSystem

      public void setSystem(SessionContext ctx, boolean value)
      Generated method - Setter of the YFormData.system attribute.
      Parameters:
      value - the system
    • setSystem

      public void setSystem(boolean value)
      Generated method - Setter of the YFormData.system attribute.
      Parameters:
      value - the system
    • getType

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

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

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

      public void setType(EnumerationValue value)
      Generated method - Setter of the YFormData.type attribute.
      Parameters:
      value - the type