Class GeneratedWorkflowItemAttachment

    • Field Detail

      • CODE

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

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

        public static final java.lang.String COMMENT
        Qualifier of the WorkflowItemAttachment.comment attribute
        See Also:
        Constant Field Values
      • ITEM

        public static final java.lang.String ITEM
        Qualifier of the WorkflowItemAttachment.item attribute
        See Also:
        Constant Field Values
      • TYPEOFITEM

        public static final java.lang.String TYPEOFITEM
        Qualifier of the WorkflowItemAttachment.typeOfItem attribute
        See Also:
        Constant Field Values
      • ACTIONSTR

        public static final java.lang.String ACTIONSTR
        Qualifier of the WorkflowItemAttachment.actionStr attribute
        See Also:
        Constant Field Values
      • WORKFLOWPOS

        public static final java.lang.String WORKFLOWPOS
        Qualifier of the WorkflowItemAttachment.workflowPOS attribute
        See Also:
        Constant Field Values
      • WORKFLOW

        public static final java.lang.String WORKFLOW
        Qualifier of the WorkflowItemAttachment.workflow attribute
        See Also:
        Constant Field Values
      • ACTIONS

        public static final java.lang.String ACTIONS
        Qualifier of the WorkflowItemAttachment.actions attribute
        See Also:
        Constant Field Values
      • WORKFLOWACTIONITEMATTACHMENTRELATION_SRC_ORDERED

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

        protected static java.lang.String WORKFLOWACTIONITEMATTACHMENTRELATION_TGT_ORDERED
      • WORKFLOWACTIONITEMATTACHMENTRELATION_MARKMODIFIED

        protected static java.lang.String WORKFLOWACTIONITEMATTACHMENTRELATION_MARKMODIFIED
        Relation disable markmodifed parameter constants for WorkflowActionItemAttachmentRelation from ((workflow))
      • DEFAULT_INITIAL_ATTRIBUTES

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

      • GeneratedWorkflowItemAttachment

        public GeneratedWorkflowItemAttachment()
    • Method Detail

      • getActions

        public java.util.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 java.util.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,
                               java.util.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​(java.util.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 java.lang.String getActionStr​(SessionContext ctx)
        Generated method - Getter of the WorkflowItemAttachment.actionStr attribute.
        Returns:
        the actionStr
      • getActionStr

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

        public java.lang.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 java.lang.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,
                               java.lang.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​(java.lang.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 java.lang.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 java.lang.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,
                               java.lang.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​(java.lang.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
      • 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 java.lang.String getName​(SessionContext ctx)
        Generated method - Getter of the WorkflowItemAttachment.name attribute.
        Returns:
        the name - name of the attachment
      • getName

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

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

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

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

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

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

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