Interface MediaItemDownloadVersion
-
- All Superinterfaces:
ContentItemVersion<MediaItem>
,DirectlyDownloadable
,FormBackingObject
,MediaItemVersion
,PublicationStatusEnabled
,WorkflowEnabled
,Wrapper
@Indexable public interface MediaItemDownloadVersion extends MediaItemVersion, DirectlyDownloadable
Representation of download media item.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.gx.webmanager.cms.mediarepository.MediaItemVersion
MediaItemVersion.SearchEngineInclude
-
-
Field Summary
-
Fields inherited from interface nl.gx.webmanager.cms.core.ContentItemVersion
LABELCATEGORY_NOCATEGORY, LABELCATEGORY_NOLABEL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default boolean
attachFile(File file, String originalFileName, String mimeType)
Attaches a file to this download media item version.boolean
attachFile(org.springframework.web.multipart.MultipartFile multipartFile)
Attaches a file to this download media item versionboolean
detachFile()
Detaches a file from this download media item versionString
getAuthor()
get the configured author.String
getDate()
Deprecated.use getFileModifiedDate instead.long
getDownloadFileSize()
Date
getFileModifiedDate()
Get the configured date.PersonalizationItem
getPersonalizationItem()
Returns the personalization assigned to this element ornull
if none is assigned.String
getVersion()
Get the configured version.void
setAuthor(String author)
Set the configured author.void
setFileModifiedDate(Date date)
Set the configured date.void
setPersonalizationItem(PersonalizationItem personalization)
Sets the personalization which is assigned to this element.void
setVersion(String version)
Set the configured version.-
Methods inherited from interface nl.gx.webmanager.cms.core.ContentItemVersion
createNewRevision, deleteRevisions, getAttachedLeadImage, getContentItem, getContentLabelCategories, getContentLabels, getCreationDate, getCreationUser, getHasLead, getIdentifier, getLanguage, getLastModifiedDate, getLastModifiedUser, getLead, getLeadImage, getLeadImageMediaItem, getLeadImageThumbnail, getPreviousRevisions, getRemark, getRevisionCount, getTitle, isEditable, isInContextCurrent, removeAttachedLeadImage, setAttachedLeadImage, setAttachedLeadImageFocusPoint, setEditable, setLead, setLeadImageMediaItem, setRemark
-
Methods inherited from interface nl.gx.webmanager.cms.mediarepository.DirectlyDownloadable
getDownload
-
Methods inherited from interface nl.gx.webmanager.springmvc.FormBackingObject
getNestedPath, getUUID
-
Methods inherited from interface nl.gx.webmanager.cms.mediarepository.MediaItemVersion
addTerm, createRichTextElements, exists, getComponent, getContentType, getCopyrightNotice, getDiscussionConfiguration, getElementHolder, getElements, getExternalId, getForum, getForumSettings, getFriendlyURLTitle, getHtmlTitle, getIncludeInSearchEngine, getLastElement, getMediaItem, getMetaDescription, getMetaKeywords, getMetaTags, getPrivateNode, getReferencedContentItems, getResourceInstances, getSEOPriority, getSEOUpdateFrequency, getTargetPage, getTerms, getTotalVotes, getVotingAverage, getVotingModel, getWebsite, insertLastElementAtCursor, isArticle, isAuthorized, isAuthorizedToPreview, isBundle, isCurrent, removeTerm, setArticle, setAuthorized, setComponent, setContentType, setCopyrightNotice, setDiscussionConfiguration, setElementHolder, setElements, setExternalId, setForum, setForumSettings, setFriendlyURLTitle, setHtmlTitle, setIncludeInSearchEngine, setLanguage, setLastModifiedDate, setLastModifiedUser, setLeadImage, setLeadImage, setMetaDescription, setMetaKeywords, setPrivateNode, setPublic, setResourceInstances, setSEOPriority, setSEOUpdateFrequency, setTargetPage, setTerms, setTitle, setTitleVolatile, setWebsite
-
Methods inherited from interface nl.gx.webmanager.cms.core.PublicationStatusEnabled
getExpirationDate, getPublicationDate, getPublicationStatus, getPublicationStatus, setExpirationDate, setPublicationDate
-
Methods inherited from interface nl.gx.webmanager.cms.workflow.WorkflowEnabled
getWorkflowModel, getWorkflowModelInstance, isPublic
-
-
-
-
Method Detail
-
getAuthor
@Field(body=true) String getAuthor()
get the configured author.- Returns:
- the author, or
null
-
setAuthor
void setAuthor(String author)
Set the configured author.- Parameters:
author
- may benull
-
getDate
@Deprecated String getDate()
Deprecated.use getFileModifiedDate instead.Return date the download was made available.- Returns:
- date the download was made available.
-
getFileModifiedDate
Date getFileModifiedDate()
Get the configured date.- Returns:
- the date, or
null
-
setFileModifiedDate
void setFileModifiedDate(Date date)
Set the configured date.- Parameters:
date
- may benull
-
setVersion
void setVersion(String version)
Set the configured version.- Parameters:
version
- may benull
-
getPersonalizationItem
PersonalizationItem getPersonalizationItem()
Returns the personalization assigned to this element ornull
if none is assigned.- Returns:
- the personalization assigned to this element or
null
if none is assigned
-
setPersonalizationItem
void setPersonalizationItem(PersonalizationItem personalization)
Sets the personalization which is assigned to this element.- Parameters:
personalization
- the personalization which is assigned to this element. In case this isnull
the assigned personalization is removed
-
attachFile
boolean attachFile(org.springframework.web.multipart.MultipartFile multipartFile)
Attaches a file to this download media item version- Parameters:
multipartFile
- The file to attach- Returns:
- true if attaching the file succeeded, false otherwise
-
attachFile
default boolean attachFile(File file, String originalFileName, String mimeType)
Attaches a file to this download media item version.- Parameters:
file
- the actual file to attachoriginalFileName
- the original file name to attachmimeType
- the mimeType of the file to attach- Returns:
- true if attaching the file succeeded, false otherwise
-
detachFile
boolean detachFile()
Detaches a file from this download media item version- Returns:
- true if attaching the file succeeded, false otherwise
-
-