Class GeneratedWorkflowItemAttachment

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

public abstract class GeneratedWorkflowItemAttachment extends GenericItem
Generated class for type WorkflowItemAttachment.
See Also:
  • Field Details

    • CODE

      public static final String CODE
      Qualifier of the WorkflowItemAttachment.code attribute
      See Also:
    • NAME

      public static final String NAME
      Qualifier of the WorkflowItemAttachment.name attribute
      See Also:
    • COMMENT

      public static final String COMMENT
      Qualifier of the WorkflowItemAttachment.comment attribute
      See Also:
    • ITEM

      public static final String ITEM
      Qualifier of the WorkflowItemAttachment.item attribute
      See Also:
    • TYPEOFITEM

      public static final String TYPEOFITEM
      Qualifier of the WorkflowItemAttachment.typeOfItem attribute
      See Also:
    • ACTIONSTR

      public static final String ACTIONSTR
      Qualifier of the WorkflowItemAttachment.actionStr attribute
      See Also:
    • WORKFLOWPOS

      public static final String WORKFLOWPOS
      Qualifier of the WorkflowItemAttachment.workflowPOS attribute
      See Also:
    • WORKFLOW

      public static final String WORKFLOW
      Qualifier of the WorkflowItemAttachment.workflow attribute
      See Also:
    • ACTIONS

      public static final String ACTIONS
      Qualifier of the WorkflowItemAttachment.actions attribute
      See Also:
    • WORKFLOWACTIONITEMATTACHMENTRELATION_SRC_ORDERED

      protected static String WORKFLOWACTIONITEMATTACHMENTRELATION_SRC_ORDERED
      Relation ordering override parameter constants for WorkflowActionItemAttachmentRelation from ((workflow))
    • WORKFLOWACTIONITEMATTACHMENTRELATION_TGT_ORDERED

      protected static String WORKFLOWACTIONITEMATTACHMENTRELATION_TGT_ORDERED
    • WORKFLOWACTIONITEMATTACHMENTRELATION_MARKMODIFIED

      protected static String WORKFLOWACTIONITEMATTACHMENTRELATION_MARKMODIFIED
      Relation disable markmodifed parameter constants for WorkflowActionItemAttachmentRelation from ((workflow))
    • WORKFLOWHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedWorkflowItemAttachment> WORKFLOWHANDLER
      BidirectionalOneToManyHandler for handling 1:n WORKFLOW's relation attributes from 'one' side.
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedWorkflowItemAttachment

      public GeneratedWorkflowItemAttachment()
  • Method Details

    • getDefaultAttributeModes

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

      public Collection<WorkflowAction> getActions(SessionContext ctx)
      Generated method - Getter of the WorkflowItemAttachment.actions attribute.
      Returns:
      the actions - part of WorkflowActionItemAttachmentRelation; references specific actions of referenced workflow for which attachment is relevant for processing
    • getActions

      public Collection<WorkflowAction> getActions()
      Generated method - Getter of the WorkflowItemAttachment.actions attribute.
      Returns:
      the actions - part of WorkflowActionItemAttachmentRelation; references specific actions of referenced workflow for which attachment is relevant for processing
    • getActionsCount

      public long getActionsCount(SessionContext ctx)
    • getActionsCount

      public long getActionsCount()
    • setActions

      public void setActions(SessionContext ctx, Collection<WorkflowAction> value)
      Generated method - Setter of the WorkflowItemAttachment.actions attribute.
      Parameters:
      value - the actions - part of WorkflowActionItemAttachmentRelation; references specific actions of referenced workflow for which attachment is relevant for processing
    • setActions

      public void setActions(Collection<WorkflowAction> value)
      Generated method - Setter of the WorkflowItemAttachment.actions attribute.
      Parameters:
      value - the actions - part of WorkflowActionItemAttachmentRelation; references specific actions of referenced workflow for which attachment is relevant for processing
    • addToActions

      public void addToActions(SessionContext ctx, WorkflowAction value)
      Generated method - Adds value to actions.
      Parameters:
      value - the item to add to actions - part of WorkflowActionItemAttachmentRelation; references specific actions of referenced workflow for which attachment is relevant for processing
    • addToActions

      public void addToActions(WorkflowAction value)
      Generated method - Adds value to actions.
      Parameters:
      value - the item to add to actions - part of WorkflowActionItemAttachmentRelation; references specific actions of referenced workflow for which attachment is relevant for processing
    • removeFromActions

      public void removeFromActions(SessionContext ctx, WorkflowAction value)
      Generated method - Removes value from actions.
      Parameters:
      value - the item to remove from actions - part of WorkflowActionItemAttachmentRelation; references specific actions of referenced workflow for which attachment is relevant for processing
    • removeFromActions

      public void removeFromActions(WorkflowAction value)
      Generated method - Removes value from actions.
      Parameters:
      value - the item to remove from actions - part of WorkflowActionItemAttachmentRelation; references specific actions of referenced workflow for which attachment is relevant for processing
    • getActionStr

      public abstract String getActionStr(SessionContext ctx)
      Generated method - Getter of the WorkflowItemAttachment.actionStr attribute.
      Returns:
      the actionStr
    • getActionStr

      public String getActionStr()
      Generated method - Getter of the WorkflowItemAttachment.actionStr attribute.
      Returns:
      the actionStr
    • getCode

      public String getCode(SessionContext ctx)
      Generated method - Getter of the WorkflowItemAttachment.code attribute.
      Returns:
      the code - identifier of this attachment; will be generated if not set
    • getCode

      public String getCode()
      Generated method - Getter of the WorkflowItemAttachment.code attribute.
      Returns:
      the code - identifier of this attachment; will be generated if not set
    • setCode

      protected void setCode(SessionContext ctx, String value)
      Generated method - Setter of the WorkflowItemAttachment.code attribute.
      Parameters:
      value - the code - identifier of this attachment; will be generated if not set
    • setCode

      protected void setCode(String value)
      Generated method - Setter of the WorkflowItemAttachment.code attribute.
      Parameters:
      value - the code - identifier of this attachment; will be generated if not set
    • getComment

      public String getComment(SessionContext ctx)
      Generated method - Getter of the WorkflowItemAttachment.comment attribute.
      Returns:
      the comment - a comment containing some notes either by creator or processor
    • getComment

      public String getComment()
      Generated method - Getter of the WorkflowItemAttachment.comment attribute.
      Returns:
      the comment - a comment containing some notes either by creator or processor
    • setComment

      public void setComment(SessionContext ctx, String value)
      Generated method - Setter of the WorkflowItemAttachment.comment attribute.
      Parameters:
      value - the comment - a comment containing some notes either by creator or processor
    • setComment

      public void setComment(String value)
      Generated method - Setter of the WorkflowItemAttachment.comment attribute.
      Parameters:
      value - the comment - a comment containing some notes either by creator or processor
    • 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
    • isMarkModifiedDisabled

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class Item
    • getItem

      public Item getItem(SessionContext ctx)
      Generated method - Getter of the WorkflowItemAttachment.item attribute.
      Returns:
      the item - the item this attachment references
    • getItem

      public Item getItem()
      Generated method - Getter of the WorkflowItemAttachment.item attribute.
      Returns:
      the item - the item this attachment references
    • setItem

      public void setItem(SessionContext ctx, Item value)
      Generated method - Setter of the WorkflowItemAttachment.item attribute.
      Parameters:
      value - the item - the item this attachment references
    • setItem

      public void setItem(Item value)
      Generated method - Setter of the WorkflowItemAttachment.item attribute.
      Parameters:
      value - the item - the item this attachment references
    • getName

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

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

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

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

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

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

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

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

      public ComposedType getTypeOfItem(SessionContext ctx)
      Generated method - Getter of the WorkflowItemAttachment.typeOfItem attribute.
      Returns:
      the typeOfItem
    • getTypeOfItem

      public ComposedType getTypeOfItem()
      Generated method - Getter of the WorkflowItemAttachment.typeOfItem attribute.
      Returns:
      the typeOfItem
    • getWorkflow

      public Workflow getWorkflow(SessionContext ctx)
      Generated method - Getter of the WorkflowItemAttachment.workflow attribute.
      Returns:
      the workflow - 1-part of WorkflowItemAttachmentRelation; references the related workflow this attachment belongs to
    • getWorkflow

      public Workflow getWorkflow()
      Generated method - Getter of the WorkflowItemAttachment.workflow attribute.
      Returns:
      the workflow - 1-part of WorkflowItemAttachmentRelation; references the related workflow this attachment belongs to
    • setWorkflow

      protected void setWorkflow(SessionContext ctx, Workflow value)
      Generated method - Setter of the WorkflowItemAttachment.workflow attribute.
      Parameters:
      value - the workflow - 1-part of WorkflowItemAttachmentRelation; references the related workflow this attachment belongs to
    • setWorkflow

      protected void setWorkflow(Workflow value)
      Generated method - Setter of the WorkflowItemAttachment.workflow attribute.
      Parameters:
      value - the workflow - 1-part of WorkflowItemAttachmentRelation; references the related workflow this attachment belongs to