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:
-
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 ResourceItemforWorkflowNode(WorkflowNode node) static ResourceItemforWorkflowNode(NodeKey nodeKey) Identifier which identifies the object, can be a uuid or an url.getType()inthashCode()voidsetEntity(UuidEntityRef entity) voidsetIdentifier(String identifier) voidsetNodeKey(NodeKey nodeKey) 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
-
getIdentifier
- Returns:
- identifier which uniquely identifies an element
-
getNodeKey
- Returns:
- the identifier
-
getType
- Returns:
EResourceItemType
-
hashCode
public int hashCode() -
setEntity
- Parameters:
entity- the object identifier
-
setIdentifier
- Parameters:
identifier- which uniquely identifies an element
-
setNodeKey
- Parameters:
nodeKey- the identifier
-
setType
- Parameters:
type- aEResourceItemType
-
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.
-
forWorkflowNode
- Parameters:
nodeKey- Key of the node to reference.- Returns:
- A new resource item representing the files produced by a workflow node.
-
forWorkflowNode
- Parameters:
node- Node to reference.- Returns:
- A new resource item representing the files produced by a workflow node.
-