Package de.xima.fc.mdl.resource
Class ResourceItem
- java.lang.Object
-
- de.xima.fc.mdl.resource.ResourceItem
-
- All Implemented Interfaces:
Serializable
@NotNullIf(field="entity",dependants="type",target=ResourceItem.class,payload=de.xima.fc.mdl.resource.ResourceItem.entity.class) @NotNullIf(field="nodeKey",dependants="type",target=ResourceItem.class,payload=de.xima.fc.mdl.resource.ResourceItem.nodeKey.class) @NotNullIf(field="identifier",dependants="type",target=ResourceItem.class,payload=de.xima.fc.mdl.resource.ResourceItem.identifier.class) public class ResourceItem extends Object implements Serializable
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
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 ResourceItemforWorkflowNode(WorkflowNode node)static ResourceItemforWorkflowNode(NodeKey nodeKey)UuidEntityRefgetEntity()Identifier which identifies the object, can be a uuid or an url.StringgetIdentifier()NodeKeygetNodeKey()EResourceItemTypegetType()inthashCode()voidsetEntity(UuidEntityRef entity)voidsetIdentifier(String identifier)voidsetNodeKey(NodeKey nodeKey)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
-
getIdentifier
public String getIdentifier()
- Returns:
- identifier which uniquely identifies an element
-
getNodeKey
public NodeKey getNodeKey()
- Returns:
- the identifier
-
getType
public EResourceItemType getType()
- Returns:
EResourceItemType
-
setEntity
public void setEntity(UuidEntityRef entity)
- Parameters:
entity- the object identifier
-
setIdentifier
public void setIdentifier(String identifier)
- Parameters:
identifier- which uniquely identifies an element
-
setNodeKey
public void setNodeKey(NodeKey nodeKey)
- Parameters:
nodeKey- the identifier
-
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.
-
forWorkflowNode
public static ResourceItem forWorkflowNode(NodeKey nodeKey)
- 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(WorkflowNode node)
- Parameters:
node- Node to reference.- Returns:
- A new resource item representing the files produced by a workflow node.
-
-