Interface MediaItemDownloadVersion

    • 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 be null
      • 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 be null
      • getVersion

        @Field
        String getVersion()
        Get the configured version.
        Returns:
        the version, may be null
      • setVersion

        void setVersion​(String version)
        Set the configured version.
        Parameters:
        version - may be null
      • getPersonalizationItem

        PersonalizationItem getPersonalizationItem()
        Returns the personalization assigned to this element or null 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 is null 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 attach
        originalFileName - the original file name to attach
        mimeType - 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
      • getDownloadFileSize

        @Field(indexed=true)
        long getDownloadFileSize()