|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.gallery.model.Media
com.silverpeas.gallery.model.InternalMedia
public abstract class InternalMedia
This class represents a Media that the content (the file in other words) is saved on the Silverpeas workspace.
Field Summary |
---|
Fields inherited from class com.silverpeas.gallery.model.Media |
---|
BASE_PATH |
Constructor Summary | |
---|---|
InternalMedia()
|
Method Summary | |
---|---|
void |
addMetaData(MetaData data)
Adds a metadata. |
String |
getApplicationThumbnailUrl(MediaResolution mediaResolution)
Gets the Application URL thumbnail of the media according the specified media resolution. |
org.silverpeas.date.Period |
getDownloadPeriod()
|
org.silverpeas.file.SilverpeasFile |
getFile(MediaResolution mediaResolution)
Gets the Silverpeas file. |
MediaMimeType |
getFileMimeType()
|
String |
getFileName()
|
long |
getFileSize()
|
MetaData |
getMetaData(String property)
Gets a metadata according to the specified property name. |
Collection<String> |
getMetaDataProperties()
Gets all metadata property names. |
boolean |
isDownloadable()
Indicates if the download is possible according the visibility information. |
boolean |
isDownloadAuthorized()
Indicates if the media is marked as downloadable. |
void |
setDownloadAuthorized(boolean downloadAuthorized)
|
void |
setDownloadPeriod(org.silverpeas.date.Period downloadPeriod)
|
void |
setFileMimeType(MediaMimeType fileMimeType)
|
void |
setFileName(String fileName)
|
void |
setFileSize(long fileSize)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InternalMedia()
Method Detail |
---|
public boolean isDownloadAuthorized()
public boolean isDownloadable()
isDownloadable
in class Media
public String getFileName()
public void setFileName(String fileName)
public long getFileSize()
public void setFileSize(long fileSize)
public MediaMimeType getFileMimeType()
public void setFileMimeType(MediaMimeType fileMimeType)
public void setDownloadAuthorized(boolean downloadAuthorized)
public org.silverpeas.date.Period getDownloadPeriod()
public void setDownloadPeriod(org.silverpeas.date.Period downloadPeriod)
public String getApplicationThumbnailUrl(MediaResolution mediaResolution)
Media
getApplicationThumbnailUrl
in class Media
public org.silverpeas.file.SilverpeasFile getFile(MediaResolution mediaResolution)
Media
getFile
in class Media
public void addMetaData(MetaData data)
data
- a metadata.public MetaData getMetaData(String property)
property
- the property name for which the metadata is requested.
public Collection<String> getMetaDataProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |