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 Details

  • Method Details

    • isMetadataProperty

      public static boolean isMetadataProperty(String name)
      Determines if the property name is a standard metadata property. This method returns the inverse result of isCustomProperty(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 of isMetadataProperty(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

      public final String getMetadataProperty(String key)
    • setCustomProperty

      public final void setCustomProperty(String key, String dataType, String value)
    • getCustomPropertyDataType

      public final String getCustomPropertyDataType(String key)
    • getCustomPropertyValue

      public final String getCustomPropertyValue(String key)
    • metadataEntrySet

      public Set<Map.Entry<String,String>> metadataEntrySet()
    • 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 interface IContentMetadata
      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 interface IContentMetadata
      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 interface IContentMetadata
      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 interface IContentMetadata
      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 interface IContentMetadata
      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 interface IContentMetadata
      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 interface IContentMetadata
      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 interface IContentMetadata
      Returns:
      the date the content was last updated, may be null
    • getProcessId

      public Long getProcessId()
      Description copied from interface: IContentMetadata
      Returns the optionally set process id, may be null
      Specified by:
      getProcessId in interface IContentMetadata
      Returns:
      The optionally provided processId.
    • getCaseId

      public String getCaseId()
      Description copied from interface: IContentMetadata
      Returns the optionally set case id, may be null
      Specified by:
      getCaseId in interface IContentMetadata
      Returns:
      The optionally provided caseId.
    • setCaseId

      public void setCaseId(String caseId)
      Sets the optionally provided case id.
    • getProperties

      public CustomContentProperties getProperties()
      Description copied from interface: IContentMetadata
      Returns the custom properties associated with the content, never null
      Specified by:
      getProperties in interface IContentMetadata
      Returns:
      the custom properties associated with the content, never null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object