Interface RelatedDownloadLink

    • Method Detail

      • getDownload

        Download getDownload()
        Get the Download 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 a MediaItem, 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. A null 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