Package de.hybris.platform.commons.model
Class DocumentModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.core.model.media.AbstractMediaModel
-
- de.hybris.platform.core.model.media.MediaModel
-
- de.hybris.platform.commons.model.DocumentModel
-
- All Implemented Interfaces:
java.io.Serializable
public class DocumentModel extends MediaModel
Generated model class for type Document first defined at extension commons.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_ITEMDOCRRELATIONGenerated relation code constant for relationItemDocrRelationdefining source attributesourceItemin extensioncommons.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringFORMATGenerated constant - Attribute key ofDocument.formatattribute defined at extensioncommons.static java.lang.StringITEMTIMESTAMPGenerated constant - Attribute key ofDocument.itemTimestampattribute defined at extensioncommons.static java.lang.StringSOURCEITEMGenerated constant - Attribute key ofDocument.sourceItemattribute defined at extensioncommons.-
Fields inherited from class de.hybris.platform.core.model.media.MediaModel
_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, URL2
-
Fields inherited from class de.hybris.platform.core.model.media.AbstractMediaModel
DATAPK, LOCATION, LOCATIONHASH, MIME, REALFILENAME, SIZE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description DocumentModel()Generated constructor - Default constructor for generic creation.DocumentModel(CatalogVersionModel _catalogVersion, java.lang.String _code, FormatModel _format)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersDocumentModel(CatalogVersionModel _catalogVersion, java.lang.String _code, FormatModel _format, ItemModel _owner, ItemModel _sourceItem)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersDocumentModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatModelgetFormat()Generated method - Getter of theDocument.formatattribute defined at extensioncommons.java.util.DategetItemTimestamp()Generated method - Getter of theDocument.itemTimestampattribute defined at extensioncommons.ItemModelgetSourceItem()Generated method - Getter of theDocument.sourceItemattribute defined at extensioncommons.voidsetFormat(FormatModel value)Generated method - Initial setter ofDocument.formatattribute defined at extensioncommons.voidsetItemTimestamp(java.util.Date value)Generated method - Setter ofDocument.itemTimestampattribute defined at extensioncommons.voidsetSourceItem(ItemModel value)Generated method - Initial setter ofDocument.sourceItemattribute defined at extensioncommons.-
Methods inherited from class de.hybris.platform.core.model.media.MediaModel
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, setURL
-
Methods inherited from class de.hybris.platform.core.model.media.AbstractMediaModel
getDataPK, getLocation, getLocationHash, getMime, getRealfilename, getRealFileName, getSize, setDataPK, setLocation, setLocationHash, setMime, setRealfilename, setRealFileName, setSize
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, 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, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_ITEMDOCRRELATION
public static final java.lang.String _ITEMDOCRRELATION
Generated relation code constant for relationItemDocrRelationdefining source attributesourceItemin extensioncommons.- See Also:
- Constant Field Values
-
ITEMTIMESTAMP
public static final java.lang.String ITEMTIMESTAMP
Generated constant - Attribute key ofDocument.itemTimestampattribute defined at extensioncommons.- See Also:
- Constant Field Values
-
FORMAT
public static final java.lang.String FORMAT
Generated constant - Attribute key ofDocument.formatattribute defined at extensioncommons.- See Also:
- Constant Field Values
-
SOURCEITEM
public static final java.lang.String SOURCEITEM
Generated constant - Attribute key ofDocument.sourceItemattribute defined at extensioncommons.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DocumentModel
public DocumentModel()
Generated constructor - Default constructor for generic creation.
-
DocumentModel
public DocumentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
DocumentModel
@Deprecated(since="4.1.1", forRemoval=true) public DocumentModel(CatalogVersionModel _catalogVersion, java.lang.String _code, FormatModel _format)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_catalogVersion- initial attribute declared by typeDocumentat extensioncatalog_code- initial attribute declared by typeMediaat extensioncore_format- initial attribute declared by typeDocumentat extensioncommons
-
DocumentModel
@Deprecated(since="4.1.1", forRemoval=true) public DocumentModel(CatalogVersionModel _catalogVersion, java.lang.String _code, FormatModel _format, ItemModel _owner, ItemModel _sourceItem)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_catalogVersion- initial attribute declared by typeDocumentat extensioncatalog_code- initial attribute declared by typeMediaat extensioncore_format- initial attribute declared by typeDocumentat extensioncommons_owner- initial attribute declared by typeItemat extensioncore_sourceItem- initial attribute declared by typeDocumentat extensioncommons
-
-
Method Detail
-
getFormat
@Accessor(qualifier="format", type=GETTER) public FormatModel getFormat()
Generated method - Getter of theDocument.formatattribute defined at extensioncommons.- Returns:
- the format - The format of the document
-
getItemTimestamp
@Accessor(qualifier="itemTimestamp", type=GETTER) public java.util.Date getItemTimestamp()
Generated method - Getter of theDocument.itemTimestampattribute defined at extensioncommons.- Returns:
- 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.
-
getSourceItem
@Accessor(qualifier="sourceItem", type=GETTER) public ItemModel getSourceItem()
Generated method - Getter of theDocument.sourceItemattribute defined at extensioncommons.- Returns:
- the sourceItem
-
setFormat
@Accessor(qualifier="format", type=SETTER) public void setFormat(FormatModel value)
Generated method - Initial setter ofDocument.formatattribute defined at extensioncommons. Can only be used at creation of model - before first save.- Parameters:
value- the format - The format of the document
-
setItemTimestamp
@Accessor(qualifier="itemTimestamp", type=SETTER) public void setItemTimestamp(java.util.Date value)
Generated method - Setter ofDocument.itemTimestampattribute defined at extensioncommons.- Parameters:
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.
-
-