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:
Serializable
Generated model class for type Document first defined at extension commons.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationItemDocrRelationdefining source attributesourceItemin extensioncommons.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofDocument.formatattribute defined at extensioncommons.static final StringGenerated constant - Attribute key ofDocument.itemTimestampattribute defined at extensioncommons.static final StringGenerated constant - Attribute key ofDocument.sourceItemattribute defined at extensioncommons.Fields inherited from class de.hybris.platform.core.model.media.MediaModel
_CATEGORYMEDIARELATION, _MEDIACONTAINER2MEDIAREL, ALTTEXT, CATALOG, CATALOGVERSION, CODE, DENIEDPRINCIPALS, DERIVEDMEDIAS, DESCRIPTION, DOWNLOADURL, FOLDER, FOREIGNDATAOWNERS, INTERNALURL, MEDIACONTAINER, MEDIAFORMAT, PERMITTEDPRINCIPALS, REMOVABLE, SUBFOLDERPATH, SUPERCATEGORIES, URL, URL2Fields inherited from class de.hybris.platform.core.model.media.AbstractMediaModel
DATAPK, LOCATION, LOCATIONHASH, MIME, REALFILENAME, SIZEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.DocumentModel(CatalogVersionModel _catalogVersion, 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, 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(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theDocument.formatattribute defined at extensioncommons.Generated method - Getter of theDocument.itemTimestampattribute defined at extensioncommons.Generated method - Getter of theDocument.sourceItemattribute defined at extensioncommons.voidsetFormat(FormatModel value) Generated method - Initial setter ofDocument.formatattribute defined at extensioncommons.voidsetItemTimestamp(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, getDeniedPrincipals, getDerivedMedias, getDescription, getDownloadurl, getDownloadURL, getFolder, getForeignDataOwners, getInternalURL, getMediaContainer, getMediaFormat, getPermittedPrincipals, getRemovable, getSubFolderPath, getSupercategories, getUrl, getURL, getUrl2, getURL2, setAlttext, setAltText, setCatalogVersion, setCode, setDeniedPrincipals, setDerivedMedias, setDescription, setFolder, setInternalURL, setMediaContainer, setMediaFormat, setPermittedPrincipals, setRemovable, setSubFolderPath, setSupercategories, setUrl, setURLMethods inherited from class de.hybris.platform.core.model.media.AbstractMediaModel
getDataPK, getLocation, getLocationHash, getMime, getRealfilename, getRealFileName, getSize, setDataPK, setLocation, setLocationHash, setMime, setRealfilename, setRealFileName, setSizeMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_ITEMDOCRRELATION
Generated relation code constant for relationItemDocrRelationdefining source attributesourceItemin extensioncommons.- See Also:
-
ITEMTIMESTAMP
Generated constant - Attribute key ofDocument.itemTimestampattribute defined at extensioncommons.- See Also:
-
FORMAT
Generated constant - Attribute key ofDocument.formatattribute defined at extensioncommons.- See Also:
-
SOURCEITEM
Generated constant - Attribute key ofDocument.sourceItemattribute defined at extensioncommons.- See Also:
-
-
Constructor Details
-
DocumentModel
public DocumentModel()Generated constructor - Default constructor for generic creation. -
DocumentModel
public DocumentModel(de.hybris.platform.servicelayer.model.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, 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, 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 Details
-
getFormat
Generated method - Getter of theDocument.formatattribute defined at extensioncommons.- Returns:
- the format - The format of the document
-
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
Generated method - Getter of theDocument.sourceItemattribute defined at extensioncommons.- Returns:
- the sourceItem
-
setFormat
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
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.
-
setSourceItem
Generated method - Initial setter ofDocument.sourceItemattribute defined at extensioncommons. Can only be used at creation of model - before first save.- Parameters:
value- the sourceItem
-