Package de.xima.fc.mdl.resource
Class ResourceItem
- java.lang.Object
 - 
- de.xima.fc.mdl.resource.ResourceItem
 
 
- 
- All Implemented Interfaces:
 Serializable
public class ResourceItem extends Object implements Serializable
- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceItem.ValidationGroupProvides the default validation groups forResourceItem. 
- 
Constructor Summary
Constructors Constructor Description ResourceItem()For JSON serialization / deserialization. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ResourceItemforAttachmentSearch()static ResourceItemforClientFile(MandantRessource clientFile)static ResourceItemforClientFile(UuidEntityRef clientFileRef)static ResourceItemforExternal()static 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.UuidEntityRefgetEntity()Identifier which identifies the object, can be a uuid or an url.StringgetIdentifier()NodeKeygetNodeKey()WhentypeisFILE_PROVIDE_ACTION: the key of the referenced node.TriggerKeygetTriggerKey()WhentypeisFIRED_TRIGGER: the key of the referenced trigger.EResourceItemTypegetType()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)StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getEntity
public UuidEntityRef getEntity()
Identifier which identifies the object, can be a uuid or an url.- Returns:
 - the identifier
 
 
- 
setEntity
public void setEntity(UuidEntityRef entity)
- Parameters:
 entity- the object identifier
 
- 
getIdentifier
public String getIdentifier()
- Returns:
 - identifier which uniquely identifies an element
 
 
- 
setIdentifier
public void setIdentifier(String identifier)
- Parameters:
 identifier- which uniquely identifies an element
 
- 
getNodeKey
public NodeKey getNodeKey()
WhentypeisFILE_PROVIDE_ACTION: the key of the referenced node.- Returns:
 - Key of the referenced node.
 
 
- 
setNodeKey
public void setNodeKey(NodeKey nodeKey)
WhentypeisFILE_PROVIDE_ACTION: the key of the referenced node.- Parameters:
 nodeKey- Key of the referenced node.
 
- 
getTriggerKey
public TriggerKey getTriggerKey()
WhentypeisFIRED_TRIGGER: the key of the referenced trigger.- Returns:
 - Key of the referenced trigger.
 
 
- 
setTriggerKey
public void setTriggerKey(TriggerKey triggerKey)
WhentypeisFIRED_TRIGGER: the key of the referenced trigger.- Parameters:
 triggerKey- Key of the referenced trigger.
 
- 
getType
public EResourceItemType getType()
- Returns:
 EResourceItemType
 
- 
setType
public void setType(EResourceItemType type)
- Parameters:
 type- aEResourceItemType
 
- 
forAttachmentSearch
public static ResourceItem forAttachmentSearch()
- Returns:
 - A new resource item for the attachment search option.
 
 
- 
forClientFile
public static ResourceItem forClientFile(MandantRessource clientFile)
- Parameters:
 clientFile- A client file to use.- Returns:
 - A new resource item for a client file resource.
 
 
- 
forClientFile
public static ResourceItem forClientFile(UuidEntityRef clientFileRef)
- Parameters:
 clientFileRef- A reference to theMandantRessourceentity.- Returns:
 - A new resource item for a client file resource.
 
 
- 
forExternal
public static ResourceItem forExternal()
- Returns:
 - A new resource item for an external resource option.
 
 
- 
forFormFile
public static ResourceItem forFormFile(ProjektRessource formFile)
- Parameters:
 formFile- A form file to use.- Returns:
 - A new resource item for a form file resource.
 
 
- 
forFormFile
public static ResourceItem forFormFile(UuidEntityRef formFileRef)
- Parameters:
 formFileRef- A reference to theProjektRessourceentity.- Returns:
 - A new resource item for a form file resource.
 
 
- 
forUploadElement
public static ResourceItem forUploadElement(String identifier)
- Parameters:
 identifier- The name of the file upload form element.- Returns:
 - A new resource item for an external resource option.
 
 
- 
forWorkflowElement
public static ResourceItem forWorkflowElement(ElementKey elementKey)
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
public static ResourceItem forWorkflowElement(ElementKey elementKey, String fileKey)
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
public static ResourceItem forWorkflowNode(NodeKey nodeKey)
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
public static ResourceItem forWorkflowNode(NodeKey nodeKey, String fileKey)
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
public static ResourceItem forWorkflowNode(WorkflowNode node)
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
public static ResourceItem forWorkflowNode(WorkflowNode node, String fileKey)
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
public static ResourceItem forWorkflowTrigger(TriggerKey triggerKey)
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
public static ResourceItem forWorkflowTrigger(TriggerKey triggerKey, String fileKey)
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
public static ResourceItem forWorkflowTrigger(WorkflowTrigger trigger)
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
public static ResourceItem forWorkflowTrigger(WorkflowTrigger trigger, String fileKey)
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.
 
 
 - 
 
 -