public class DocumentModel extends MediaModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_ITEMDOCRRELATION
Generated relation code constant for relation
ItemDocrRelation defining source attribute sourceItem in extension commons. |
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
FORMAT
Generated constant - Attribute key of
Document.format attribute defined at extension commons. |
static java.lang.String |
ITEMTIMESTAMP
Generated constant - Attribute key of
Document.itemTimestamp attribute defined at extension commons. |
static java.lang.String |
SOURCEITEM
Generated constant - Attribute key of
Document.sourceItem attribute defined at extension commons. |
_CATEGORYMEDIARELATION, _CONVERTEDMEDIASRELATION, _MEDIACONTAINER2MEDIAREL, ALTTEXT, CATALOG, CATALOGVERSION, CODE, CONVERTEDMEDIAS, DENIEDPRINCIPALS, DERIVEDMEDIAS, DESCRIPTION, DOWNLOADURL, FOLDER, FOREIGNDATAOWNERS, INTERNALURL, MEDIACONTAINER, MEDIAFORMAT, METADATA, METADATADATAPK, ORIGINAL, ORIGINALDATAPK, PERMITTEDPRINCIPALS, REMOVABLE, SUBFOLDERPATH, SUPERCATEGORIES, URL, URL2DATAPK, LOCATION, LOCATIONHASH, MIME, REALFILENAME, SIZE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
DocumentModel()
Generated constructor - Default constructor for generic creation.
|
DocumentModel(CatalogVersionModel _catalogVersion,
java.lang.String _code,
FormatModel _format)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
DocumentModel(CatalogVersionModel _catalogVersion,
java.lang.String _code,
FormatModel _format,
ItemModel _owner,
ItemModel _sourceItem)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
DocumentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
FormatModel |
getFormat()
Generated method - Getter of the
Document.format attribute defined at extension commons. |
java.util.Date |
getItemTimestamp()
Generated method - Getter of the
Document.itemTimestamp attribute defined at extension commons. |
ItemModel |
getSourceItem()
Generated method - Getter of the
Document.sourceItem attribute defined at extension commons. |
void |
setFormat(FormatModel value)
Generated method - Initial setter of
Document.format attribute defined at extension commons. |
void |
setItemTimestamp(java.util.Date value)
Generated method - Setter of
Document.itemTimestamp attribute defined at extension commons. |
void |
setSourceItem(ItemModel value)
Generated method - Initial setter of
Document.sourceItem attribute defined at extension commons. |
getAlttext, getAltText, getCatalogVersion, getCode, getConvertedMedias, getDeniedPrincipals, getDerivedMedias, getDescription, getDownloadurl, getDownloadURL, getFolder, getForeignDataOwners, getInternalURL, getMediaContainer, getMediaFormat, getMetaData, getMetaDataDataPK, getOriginal, getOriginalDataPK, getPermittedPrincipals, getRemovable, getSubFolderPath, getSupercategories, getUrl, getURL, getUrl2, getURL2, setAlttext, setAltText, setCatalogVersion, setCode, setConvertedMedias, setDeniedPrincipals, setDerivedMedias, setDescription, setFolder, setInternalURL, setMediaContainer, setMediaFormat, setMetaData, setMetaDataDataPK, setOriginal, setOriginalDataPK, setPermittedPrincipals, setRemovable, setSubFolderPath, setSupercategories, setUrl, setURLgetDataPK, getLocation, getLocationHash, getMime, getRealfilename, getRealFileName, getSize, setDataPK, setLocation, setLocationHash, setMime, setRealfilename, setRealFileName, setSizegetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerequals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplacepublic static final java.lang.String _TYPECODE
public static final java.lang.String _ITEMDOCRRELATION
ItemDocrRelation defining source attribute sourceItem in extension commons.public static final java.lang.String ITEMTIMESTAMP
Document.itemTimestamp attribute defined at extension commons.public static final java.lang.String FORMAT
Document.format attribute defined at extension commons.public static final java.lang.String SOURCEITEM
Document.sourceItem attribute defined at extension commons.public DocumentModel()
public DocumentModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public DocumentModel(CatalogVersionModel _catalogVersion, java.lang.String _code, FormatModel _format)
_catalogVersion - initial attribute declared by type Document at extension catalog_code - initial attribute declared by type Media at extension core_format - initial attribute declared by type Document at extension commons@Deprecated public DocumentModel(CatalogVersionModel _catalogVersion, java.lang.String _code, FormatModel _format, ItemModel _owner, ItemModel _sourceItem)
_catalogVersion - initial attribute declared by type Document at extension catalog_code - initial attribute declared by type Media at extension core_format - initial attribute declared by type Document at extension commons_owner - initial attribute declared by type Item at extension core_sourceItem - initial attribute declared by type Document at extension commons@Accessor(qualifier="format", type=GETTER) public FormatModel getFormat()
Document.format attribute defined at extension commons.@Accessor(qualifier="itemTimestamp", type=GETTER) public java.util.Date getItemTimestamp()
Document.itemTimestamp attribute defined at extension commons.@Accessor(qualifier="sourceItem", type=GETTER) public ItemModel getSourceItem()
Document.sourceItem attribute defined at extension commons.@Accessor(qualifier="format", type=SETTER) public void setFormat(FormatModel value)
Document.format attribute defined at extension commons. Can only be used at creation of model - before first save.value - the format - The format of the document@Accessor(qualifier="itemTimestamp", type=SETTER) public void setItemTimestamp(java.util.Date value)
Document.itemTimestamp attribute defined at extension commons.value - the itemTimestamp - The modified time of the attached item. If the time of the item is
younger than the value of this document it could be outdated.Copyright © 2018 SAP SE. All Rights Reserved.