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 TypeMethodDescriptionboolean
static ResourceItem
static ResourceItem
forClientFile
(MandantRessource clientFile) static ResourceItem
forClientFile
(UuidEntityRef clientFileRef) static ResourceItem
static ResourceItem
forFormFile
(ProjektRessource formFile) static ResourceItem
forFormFile
(UuidEntityRef formFileRef) static ResourceItem
forUploadElement
(String identifier) static ResourceItem
forWorkflowNode
(WorkflowNode node) static ResourceItem
forWorkflowNode
(NodeKey nodeKey) Identifier which identifies the object, can be a uuid or an url.getType()
int
hashCode()
void
setEntity
(UuidEntityRef entity) void
setIdentifier
(String identifier) void
setNodeKey
(NodeKey nodeKey) void
setType
(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 theMandantRessource
entity.- 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 theProjektRessource
entity.- 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.
-