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 (throughCustomContentProperties
).- Since:
- 9.3
- Author:
- G. der Kinderen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Metadata()
Metadata(GUID guid, String name, String contentType, String userId, CustomContentProperties properties, Long caseId)
Metadata(FileSystemContentManager.Metadata original)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Map.Entry<String,com.aquima.interactions.portal.content.FileSystemContentManager.Tuple>>
customContentEntrySet()
boolean
equals(Object obj)
Long
getCaseId()
Returns the optionally set case id, may be nullString
getContentType()
Returns the content type of the content, may be null if no content type was specifiedString
getCreatedBy()
Returns the user id of the user that created the content, never nullDateTimeValue
getCreationDate()
Returns the creation date of the content, never nullString
getCustomPropertyDataType(String key)
String
getCustomPropertyValue(String key)
GUID
getId()
Returns the id of the content, never nullDateTimeValue
getLastUpdated()
Returns the date the content was last updated, may be nullString
getLastUpdatedBy()
Returns the user id of the last user that updated the content, may be nullString
getMetadataProperty(String key)
String
getName()
Returns the name of the content, never nullCustomContentProperties
getProperties()
Returns 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.Set<Map.Entry<String,String>>
metadataEntrySet()
void
setCaseId(Long caseId)
Sets the optionally provided case id.void
setCustomProperty(String key, String dataType, String value)
-
-
-
Constructor Detail
-
Metadata
public Metadata()
-
Metadata
public Metadata(GUID guid, String name, String contentType, String userId, CustomContentProperties properties, Long caseId)
-
Metadata
public Metadata(FileSystemContentManager.Metadata original)
-
-
Method Detail
-
isMetadataProperty
public static boolean isMetadataProperty(String name)
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
public static boolean isCustomProperty(String name)
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.
-
customContentEntrySet
public Set<Map.Entry<String,com.aquima.interactions.portal.content.FileSystemContentManager.Tuple>> customContentEntrySet()
-
getId
public GUID 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
public String 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
public final String 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
public String 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
public DateTimeValue 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
public String 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
public DateTimeValue 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
public void setCaseId(Long caseId)
Sets the optionally provided case id.
-
getCaseId
public Long getCaseId()
Description copied from interface:IContentMetadata
Returns the optionally set case id, may be null- Specified by:
getCaseId
in interfaceIContentMetadata
- Returns:
- The optionally provided caseId.
-
getProperties
public CustomContentProperties 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
-
-