Package nl.gx.webmanager.cms.core
Interface RelatedDownloadLink
-
- All Superinterfaces:
RelatedLink
,Wrapper
public interface RelatedDownloadLink extends RelatedLink
Related download link.- See Also:
RelatedLink
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Download
getDownload()
Get theDownload
this related link points to.FileResource
getDownloadFileResource()
Get the FileResource this link points to.MediaItemDownloadVersion
getDownloadMediaItemDownloadVersion()
Get the MediaItemDownloadVersion this link points to.MediaItemDownloadVersion
getInContextDownloadMediaItemDownloadVersion()
Get the MediaItemDownloadVersion this link points to incontext mode.void
setDownloadFileResource(FileResource file)
Deprecated.The method has been deprecated because this kind of direct download link, not using aMediaItem
, are not currently supported by the User Interface.void
setDownloadMediaItemDownloadVersion(MediaItemDownloadVersion mediaItemDownloadVersion)
Set the download by setting a download media item.-
Methods inherited from interface nl.gx.webmanager.cms.core.RelatedLink
getCode, getCustomTitle, getEditLink, getLink, getLink, getLink, getLink, getLink, getLinkModel, getPopUpProperties, getPopUpProperties, getSuffix, getTarget, getTarget, getTitle, getTitleOption, setCode, setCustomTitle, setLinkModel, setSuffix, setTitleOption
-
-
-
-
Method Detail
-
getDownload
Download getDownload()
Get theDownload
this related link points to.- Returns:
- the
Download
this related link points to
-
setDownloadFileResource
@Deprecated void setDownloadFileResource(FileResource file)
Deprecated.The method has been deprecated because this kind of direct download link, not using aMediaItem
, are not currently supported by the User Interface. The method might therefore be removed in a future version.Set the download by setting a file.- Parameters:
file
- the file to offer as download- Since:
- 9.12.0
-
getDownloadFileResource
FileResource getDownloadFileResource()
Get the FileResource this link points to.- Returns:
- the configured FileResource or
null
if none is set - Since:
- 9.12.0
-
setDownloadMediaItemDownloadVersion
void setDownloadMediaItemDownloadVersion(MediaItemDownloadVersion mediaItemDownloadVersion)
Set the download by setting a download media item.- Parameters:
mediaItemDownloadVersion
- the download media item to set. Anull
can be given here to remove any associated file- Since:
- 9.12.0
-
getDownloadMediaItemDownloadVersion
MediaItemDownloadVersion getDownloadMediaItemDownloadVersion()
Get the MediaItemDownloadVersion this link points to.- Returns:
- the configured MediaItemDownloadVersion or
null
if none is set - Since:
- 9.12.0
-
getInContextDownloadMediaItemDownloadVersion
MediaItemDownloadVersion getInContextDownloadMediaItemDownloadVersion()
Get the MediaItemDownloadVersion this link points to incontext mode. It will return the planned version if the current is null.- Returns:
- the configured MediaItemDownloadVersion or
null
if none is set - Since:
- 10.2.0
-
-