Interface DownloadElement

    • Method Detail

      • getDownload

        Download getDownload()
        Returns the download object associated with the download element.
        Returns:
        the download object associated with the download element.
      • setName

        void setName​(String name)
        Set name of the download.
        Parameters:
        name - download name
      • getAuthor

        @ReferField(stored=false,
                    body=true)
        String getAuthor()
        Returns the author of the download.
        Returns:
        the author of the download.
      • setAuthor

        void setAuthor​(String author)
        Set author of the download.
        Parameters:
        author - download author
      • getVersion

        String getVersion()
        Returns the version of the download.
        Returns:
        the version of the download.
      • setVersion

        void setVersion​(String version)
        Set version of the download.
        Parameters:
        version - download version
      • getDate

        String getDate()
        Returns the date of the download.
        Returns:
        the date of the download.
      • getDownloadDate

        Date getDownloadDate()
        Returns the date of the download.
        Returns:
        the date of the download.
      • setDownloadDate

        void setDownloadDate​(Date date)
        Set date of the download.
        Parameters:
        date - download date
      • getSeeEvent

        @Deprecated
        String getSeeEvent()
        Deprecated.
        Return the see event tag, which is used in the event logging module to signal that the download is seen by the user.
        Returns:
        the download see event tag.
      • getPreviewLink

        String getPreviewLink()
        Return an html link to the download.
        Returns:
        an html link to the download
      • setDownloadFile

        void setDownloadFile​(File file,
                             String originalFileName,
                             String mimeType)
        Upload a file as download.
        Parameters:
        file - actual file
        originalFileName - the original file name
        mimeType - of the file
      • setDownloadFile

        void setDownloadFile​(org.springframework.web.multipart.MultipartFile file)
        Upload a file as download.
        Parameters:
        file - Upload file
      • getDownloadFile

        org.springframework.web.multipart.MultipartFile getDownloadFile()
        Dummy method to enable downloadFile as bean property.
        Returns:
        null
      • getContentId

        int getContentId()
        Returns the contentid that identifies the download.
        Returns:
        the contentid that identifies the download
      • setContentId

        void setContentId​(int contentid)
        Set the contentid that identifies the download.
        Parameters:
        contentid - identifies the download
      • getMediaItem

        @ReferField(stored=false,
                    indexed=true,
                    adapter=ContentReferenceFieldAdapter.class)
        MediaItem getMediaItem()
        Returns the media item representation of the actual download. Returns null if the assigned download is not selected from the Object Manager.
        Returns:
        The media item representation of the assigned download, or null if not originating from the Object Manager.