nl.gx.webmanager.cms.element
Interface DownloadElement

All Superinterfaces:
DelegatedControllerAware, Element, Presentable, Wrapper

public interface DownloadElement
extends Element

Meta information for the Download Element.


Method Summary
 java.lang.String getAuthor()
          Returns the author of the download.
 int getContentId()
          Returns the contentid that identifies the download.
 java.lang.String getDate()
          Returns the date of the download.
 Download getDownload()
          Returns the download object associated with the download element.
 java.util.Date getDownloadDate()
          Returns the date of the download.
 org.springframework.web.multipart.MultipartFile getDownloadFile()
          Dummy method to enable downloadFile as bean property.
 MediaItem getMediaItem()
          Returns the media item representation of the actual download.
 java.lang.String getName()
          Returns the name of the download.
 java.lang.String getPreviewLink()
          Return an html link to the download.
 java.lang.String getSeeEvent()
          Deprecated. 
 java.lang.String getTitle()
          Returns the title of the download.
 java.lang.String getVersion()
          Returns the version of the download.
 void setAuthor(java.lang.String author)
          Set author of the download.
 void setContentId(int contentid)
          Set the contentid that identifies the download.
 void setDownloadDate(java.util.Date date)
          Set date of the download.
 void setDownloadFile(org.springframework.web.multipart.MultipartFile file)
          Upload a file as download.
 void setName(java.lang.String name)
          Set name of the download.
 void setVersion(java.lang.String version)
          Set version of the download.
 
Methods inherited from interface nl.gx.webmanager.cms.element.Element
cleanup, copy, getEditElementHeader, getElementHolder, getHeader, getIcon, getMediaItemVersion, getPageModel, getPageModelElement, getPageVersion, getPersonalization, getWebsite, isAuthorized, setAuthorized, setDefaultPresentation, setEditElementHeader, setHeader, setIcon, setPersonalization
 
Methods inherited from interface nl.gx.webmanager.cms.core.Presentable
getPresentation, render, render, setPresentation
 
Methods inherited from interface nl.gx.webmanager.wrapper.Wrapper
getId, getUUID, setId, setUUID
 
Methods inherited from interface nl.gx.webmanager.springmvc.DelegatedControllerAware
getDelegatedController, setDelegatedController
 

Method Detail

getDownload

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

Returns:
the download object associated with the download element.

getTitle

java.lang.String getTitle()
Returns the title of the download.

Returns:
the title of the download.

getName

java.lang.String getName()
Returns the name of the download.

Returns:
the name of the download.

setName

void setName(java.lang.String name)
Set name of the download.

Parameters:
name - download name

getAuthor

java.lang.String getAuthor()
Returns the author of the download.

Returns:
the author of the download.

setAuthor

void setAuthor(java.lang.String author)
Set author of the download.

Parameters:
author - download author

getVersion

java.lang.String getVersion()
Returns the version of the download.

Returns:
the version of the download.

setVersion

void setVersion(java.lang.String version)
Set version of the download.

Parameters:
version - download version

getDate

java.lang.String getDate()
Returns the date of the download.

Returns:
the date of the download.

getDownloadDate

java.util.Date getDownloadDate()
Returns the date of the download.

Returns:
the date of the download.

setDownloadDate

void setDownloadDate(java.util.Date date)
Set date of the download.

Parameters:
date - download date

getSeeEvent

@Deprecated
java.lang.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

java.lang.String getPreviewLink()
Return an html link to the download.

Returns:
an html link to the download

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

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.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.