Package com.emc.documentum.rest.model
Class ContentMetaData
java.lang.Object
com.emc.documentum.rest.model.AbstractLinkable
com.emc.documentum.rest.model.PersistentObject
com.emc.documentum.rest.model.ContentMetaData
- All Implemented Interfaces:
com.emc.documentum.rest.conditional.Digestible
,Linkable
class for primary content and rendition metadata
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
octet-stream media typeInternal fieldsMandatory fieldsFields inherited from class com.emc.documentum.rest.model.PersistentObject
id, isLightweight, isMaterialized, isSnapshot, isVirtual, mandatoryAttributes, optionalAttributes, parentId, permissions, properties, reqDigest, type, typeDef, versionPolicy
Fields inherited from class com.emc.documentum.rest.model.AbstractLinkable
links
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContentLink
(String type, String link) Add content linkcomposeContentAttribute
(String attrName) boolean
Do no convert from date to stringGet content linksint
Get current pageGet current page modifierGet current parentGet Dos extensionGet etag stringGet format namelong
Get full content sizeGet full formatgetHrefs()
Get internal attribute namesGet mandatory attribute namesGet mime typegetName()
Get resource namegetPage()
Get pageGet page modifierGet parents' idint
Get renditionint
Get Version stampboolean
CHeck if the resource is renditionvoid
setContentAttributes
(List<ContentAttribute> contentAttributes) void
setCurrentParent
(String currentParent) Set current parentvoid
Methods inherited from class com.emc.documentum.rest.model.PersistentObject
addAttribute, addMandatoryAttribute, addOptionalAttribute, calculatesDigest, geOptionalAttribute, getAttributeByName, getAttributes, getId, getMandatoryAttribute, getOptionalFields, getParentId, getPermissions, getReqDigest, getType, getTypeDef, getVersionPolicy, hasAttribute, hasAttributeValue, hasOptionalAttribute, isLightweight, isMatchedWithReqDigest, isMaterialized, isSnapshot, isVirtualDocument, reInitAttributes, removeAttributeIfExisted, setId, setIsSnapshot, setIsVirtualDocument, setLightweight, setMaterialized, setParentId, setPermissions, setReqDigest, setType, setTypeDef, setVersionPolicy, toString
Methods inherited from class com.emc.documentum.rest.model.AbstractLinkable
getLinks, setLinks
-
Field Details
-
DEFAULT_MIME
octet-stream media type -
MANDATORY_FIELDS
Mandatory fields -
INTERNAL_FIELDS
Internal fields
-
-
Constructor Details
-
ContentMetaData
public ContentMetaData()
-
-
Method Details
-
getMandatoryFields
Description copied from class:PersistentObject
Get mandatory attribute names- Overrides:
getMandatoryFields
in classPersistentObject
- Returns:
- mandatory fields
-
getInternalFields
Description copied from class:PersistentObject
Get internal attribute names- Overrides:
getInternalFields
in classPersistentObject
- Returns:
- internal fields
-
getName
Get resource name- Returns:
- resource name
-
getParent
Get parents' id- Returns:
- parents' id
-
getCurrentParent
Get current parent- Returns:
- current parent
-
setCurrentParent
Set current parent- Parameters:
currentParent
- current parent
-
getFullContentSize
public long getFullContentSize()Get full content size- Returns:
- full content size
-
getFormatName
Get format name- Returns:
- format name
-
getMimeType
Get mime type- Returns:
- mime type
-
getDosExtension
Get Dos extension- Returns:
- Dos extension
-
getFullFormat
Get full format- Returns:
- full format
-
getRendition
public int getRendition()Get rendition- Returns:
- rendition
-
getPage
Get page- Returns:
- page
-
getCurrentPage
public int getCurrentPage()Get current page- Returns:
- current page
-
getPageModifier
Get page modifier- Returns:
- page modifier
-
getContentAttrName
-
getContentAttrDataType
-
getContentAttrStringValue
-
getContentAttrNumValue
-
getContentAttrDateValue
-
composeContentAttribute
-
getContentAttributes
-
setContentAttributes
-
getCurrentPageModifier
Get current page modifier- Returns:
- current page modifier
-
isRendition
public boolean isRendition()CHeck if the resource is rendition- Returns:
true
if the resource is rendition
-
getVersionStamp
public int getVersionStamp()Get Version stamp- Returns:
- version stamp
-
getEtagString
Get etag string- Returns:
- etag string
-
addContentLink
Add content link- Parameters:
type
- content link typelink
- content link
-
getContentLinks
Get content links- Returns:
- content links
-
getHrefs
-
setHrefs
-
convertDate
public boolean convertDate()Do no convert from date to string- Overrides:
convertDate
in classPersistentObject
- Returns:
- convert date
-