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
FieldsModifier and TypeFieldDescriptionstatic final Stringoctet-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, versionPolicyFields inherited from class com.emc.documentum.rest.model.AbstractLinkable
links -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContentLink(String type, String link) Add content linkcomposeContentAttribute(String attrName) booleanDo no convert from date to stringGet content linksintGet current pageGet current page modifierGet current parentGet Dos extensionGet etag stringGet format namelongGet full content sizeGet full formatgetHrefs()Get internal attribute namesGet mandatory attribute namesGet mime typegetName()Get resource namegetPage()Get pageGet page modifierGet parents' idintGet renditionintGet Version stampbooleanCHeck if the resource is renditionvoidsetContentAttributes(List<ContentAttribute> contentAttributes) voidsetCurrentParent(String currentParent) Set current parentvoidMethods 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, toStringMethods 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:PersistentObjectGet mandatory attribute names- Overrides:
getMandatoryFieldsin classPersistentObject- Returns:
- mandatory fields
-
getInternalFields
Description copied from class:PersistentObjectGet internal attribute names- Overrides:
getInternalFieldsin 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:
trueif 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:
convertDatein classPersistentObject- Returns:
- convert date
-