Class FileSystemContentManager.Metadata
java.lang.Object
com.aquima.interactions.portal.content.FileSystemContentManager.Metadata
- All Implemented Interfaces:
IContentMetadata
,Serializable
- Enclosing class:
- FileSystemContentManager
public static final class FileSystemContentManager.Metadata
extends Object
implements Serializable, IContentMetadata
Metadata representation.
To prevent identifier collision, this implementation applies a namespace to metadata identifiers. This separates
implicit metadata (set by the metadata implementation) from the metadata provided by customers (through
CustomContentProperties
).- Since:
- 9.3
- Author:
- G. der Kinderen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMetadata()
Metadata
(GUID guid, String name, String contentType, String userId, CustomContentProperties properties, Long caseId) Metadata
(FileSystemContentManager.Metadata original) -
Method Summary
Modifier and TypeMethodDescriptionboolean
final String
Returns the content type of the content, may be null if no content type was specifiedReturns the user id of the user that created the content, never nullReturns the creation date of the content, never nullfinal String
final String
getId()
Returns the id of the content, never nullReturns the date the content was last updated, may be nullReturns the user id of the last user that updated the content, may be nullfinal String
getName()
Returns the name of the content, never nullReturns the optionally set process id, may be nullReturns the custom properties associated with the content, never nulllong
getSize()
Returns the size of the contentint
hashCode()
static boolean
isCustomProperty
(String name) Determines if the property name is a custom content property.static boolean
isMetadataProperty
(String name) Determines if the property name is a standard metadata property.void
Sets the optionally provided case id.final void
setCustomProperty
(String key, String dataType, String value)
-
Constructor Details
-
Metadata
public Metadata() -
Metadata
-
Metadata
-
-
Method Details
-
isMetadataProperty
Determines if the property name is a standard metadata property. This method returns the inverse result ofisCustomProperty(String)
- Parameters:
name
- A property name (cannot be null).- Returns:
- true when the property name is recognized as a standard metadata property, otherwise false.
-
isCustomProperty
Determines if the property name is a custom content property. This method returns the inverse result ofisMetadataProperty(String)
- Parameters:
name
- A property name (cannot be null).- Returns:
- true when the property name is not recognized as a standard metadata property, otherwise false.
-
getMetadataProperty
-
setCustomProperty
-
getCustomPropertyDataType
-
getCustomPropertyValue
-
metadataEntrySet
-
customContentEntrySet
-
getId
Description copied from interface:IContentMetadata
Returns the id of the content, never null- Specified by:
getId
in interfaceIContentMetadata
- Returns:
- the id of the content, never null
-
getName
Description copied from interface:IContentMetadata
Returns the name of the content, never null- Specified by:
getName
in interfaceIContentMetadata
- Returns:
- the name of the content, never null
-
getContentType
Description copied from interface:IContentMetadata
Returns the content type of the content, may be null if no content type was specified- Specified by:
getContentType
in interfaceIContentMetadata
- Returns:
- the content type of the content, may be null if no content type was specified
-
getSize
public long getSize()Description copied from interface:IContentMetadata
Returns the size of the content- Specified by:
getSize
in interfaceIContentMetadata
- Returns:
- the size of the content
-
getCreatedBy
Description copied from interface:IContentMetadata
Returns the user id of the user that created the content, never null- Specified by:
getCreatedBy
in interfaceIContentMetadata
- Returns:
- the user id of the user that created the content, never null
-
getCreationDate
Description copied from interface:IContentMetadata
Returns the creation date of the content, never null- Specified by:
getCreationDate
in interfaceIContentMetadata
- Returns:
- the creation date of the content, never null
-
getLastUpdatedBy
Description copied from interface:IContentMetadata
Returns the user id of the last user that updated the content, may be null- Specified by:
getLastUpdatedBy
in interfaceIContentMetadata
- Returns:
- the user id of the last user that updated the content, may be null
-
getLastUpdated
Description copied from interface:IContentMetadata
Returns the date the content was last updated, may be null- Specified by:
getLastUpdated
in interfaceIContentMetadata
- Returns:
- the date the content was last updated, may be null
-
setCaseId
Sets the optionally provided case id. -
getProcessId
Description copied from interface:IContentMetadata
Returns the optionally set process id, may be null- Specified by:
getProcessId
in interfaceIContentMetadata
- Returns:
- The optionally provided caseId.
-
getProperties
Description copied from interface:IContentMetadata
Returns the custom properties associated with the content, never null- Specified by:
getProperties
in interfaceIContentMetadata
- Returns:
- the custom properties associated with the content, never null
-
hashCode
public int hashCode() -
equals
-