Class ResourceItem
java.lang.Object
de.xima.fc.mdl.resource.ResourceItem
- All Implemented Interfaces:
Serializable
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides the default validation groups forResourceItem. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ResourceItemstatic ResourceItemforClientFile(MandantRessource clientFile) static ResourceItemforClientFile(UuidEntityRef clientFileRef) static ResourceItemstatic ResourceItemforFormFile(ProjektRessource formFile) static ResourceItemforFormFile(UuidEntityRef formFileRef) static ResourceItemforUploadElement(String identifier) static ResourceItemforWorkflowElement(ElementKey elementKey) Creates a new resource item that references files provided by a workflow trigger or node for the default file type.static ResourceItemforWorkflowElement(ElementKey elementKey, String fileKey) Creates a new resource item that references files provided by a workflow trigger or node for the given file type.static ResourceItemforWorkflowNode(WorkflowNode node) Creates a new resource item that references files produced by a workflow node for the default file type.static ResourceItemforWorkflowNode(WorkflowNode node, String fileKey) Creates a new resource item that references files produced by a workflow node for the given file type.static ResourceItemforWorkflowNode(NodeKey nodeKey) Creates a new resource item that references files produced by a workflow node for the default file type.static ResourceItemforWorkflowNode(NodeKey nodeKey, String fileKey) Creates a new resource item that references files produced by a workflow node for the given file type.static ResourceItemforWorkflowTrigger(WorkflowTrigger trigger) Creates a new resource item that references files provided by a workflow trigger for the default file type.static ResourceItemforWorkflowTrigger(WorkflowTrigger trigger, String fileKey) Creates a new resource item that references files provided by a workflow trigger for the given file type.static ResourceItemforWorkflowTrigger(TriggerKey triggerKey) Creates a new resource item that references files provided by a workflow trigger for the default file type.static ResourceItemforWorkflowTrigger(TriggerKey triggerKey, String fileKey) Creates a new resource item that references files provided by a workflow trigger for the given file type.Identifier which identifies the object, can be a uuid or an url.WhentypeisFILE_PROVIDE_ACTION: the key of the referenced node.WhentypeisFIRED_TRIGGER: the key of the referenced trigger.getType()inthashCode()voidsetEntity(UuidEntityRef entity) voidsetIdentifier(String identifier) voidsetNodeKey(NodeKey nodeKey) WhentypeisFILE_PROVIDE_ACTION: the key of the referenced node.voidsetTriggerKey(TriggerKey triggerKey) WhentypeisFIRED_TRIGGER: the key of the referenced trigger.voidsetType(EResourceItemType type) toString()
-
Constructor Details
-
ResourceItem
public ResourceItem()For JSON serialization / deserialization.
-
-
Method Details
-
equals
-
getEntity
Identifier which identifies the object, can be a uuid or an url.- Returns:
- the identifier
-
setEntity
- Parameters:
entity- the object identifier
-
getIdentifier
- Returns:
- identifier which uniquely identifies an element
-
setIdentifier
- Parameters:
identifier- which uniquely identifies an element
-
getNodeKey
WhentypeisFILE_PROVIDE_ACTION: the key of the referenced node.- Returns:
- Key of the referenced node.
-
setNodeKey
WhentypeisFILE_PROVIDE_ACTION: the key of the referenced node.- Parameters:
nodeKey- Key of the referenced node.
-
getTriggerKey
WhentypeisFIRED_TRIGGER: the key of the referenced trigger.- Returns:
- Key of the referenced trigger.
-
setTriggerKey
WhentypeisFIRED_TRIGGER: the key of the referenced trigger.- Parameters:
triggerKey- Key of the referenced trigger.
-
getType
- Returns:
EResourceItemType
-
setType
- Parameters:
type- aEResourceItemType
-
hashCode
-
toString
-
forAttachmentSearch
- Returns:
- A new resource item for the attachment search option.
-
forClientFile
- Parameters:
clientFile- A client file to use.- Returns:
- A new resource item for a client file resource.
-
forClientFile
- Parameters:
clientFileRef- A reference to theMandantRessourceentity.- Returns:
- A new resource item for a client file resource.
-
forExternal
- Returns:
- A new resource item for an external resource option.
-
forFormFile
- Parameters:
formFile- A form file to use.- Returns:
- A new resource item for a form file resource.
-
forFormFile
- Parameters:
formFileRef- A reference to theProjektRessourceentity.- Returns:
- A new resource item for a form file resource.
-
forUploadElement
- Parameters:
identifier- The name of the file upload form element.- Returns:
- A new resource item for an external resource option.
-
forWorkflowElement
Creates a new resource item that references files provided by a workflow trigger or node for the default file type.- Parameters:
elementKey- Key of an element to reference.- Returns:
- A new resource item representing the files provided by a workflow element.
-
forWorkflowElement
Creates a new resource item that references files provided by a workflow trigger or node for the given file type.- Parameters:
elementKey- Key of an element to reference.fileKey- Type of the files to reference.- Returns:
- A new resource item representing the files provided by a workflow element.
-
forWorkflowNode
Creates a new resource item that references files produced by a workflow node for the default file type.- Parameters:
nodeKey- Key of the node to reference.- Returns:
- A new resource item representing the files produced by a workflow node.
-
forWorkflowNode
Creates a new resource item that references files produced by a workflow node for the given file type.- Parameters:
nodeKey- Key of the node to reference.fileKey- Type of the files to reference.- Returns:
- A new resource item representing the files produced by a workflow node.
-
forWorkflowNode
Creates a new resource item that references files produced by a workflow node for the default file type.- Parameters:
node- Node to reference.- Returns:
- A new resource item representing the files produced by a workflow node.
-
forWorkflowNode
Creates a new resource item that references files produced by a workflow node for the given file type.- Parameters:
node- Node to reference.fileKey- Type of the files to reference.- Returns:
- A new resource item representing the files produced by a workflow node.
-
forWorkflowTrigger
Creates a new resource item that references files provided by a workflow trigger for the default file type.- Parameters:
triggerKey- Key of a trigger to reference.- Returns:
- A new resource item representing the files provided by a workflow trigger.
-
forWorkflowTrigger
Creates a new resource item that references files provided by a workflow trigger for the given file type.- Parameters:
triggerKey- Key of a trigger to reference.fileKey- Type of the files to reference.- Returns:
- A new resource item representing the files provided by a workflow trigger.
-
forWorkflowTrigger
Creates a new resource item that references files provided by a workflow trigger for the default file type.- Parameters:
trigger- Trigger to reference.- Returns:
- A new resource item representing the files provided by a workflow trigger.
-
forWorkflowTrigger
Creates a new resource item that references files provided by a workflow trigger for the given file type.- Parameters:
trigger- Trigger to reference.fileKey- Type of the files to reference.- Returns:
- A new resource item representing the files provided by a workflow trigger.
-