|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.gallery.model.Media
public abstract class Media
This class represents a Media and provides all the common data.
| Field Summary | |
|---|---|
static org.silverpeas.process.io.file.FileBasePath |
BASE_PATH
|
| Constructor Summary | |
|---|---|
Media()
|
|
| Method Summary | |
|---|---|
void |
addToAlbums(String... albumIds)
Adds the current media to the album represented by specified identifiers. |
boolean |
canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
|
boolean |
equals(Object o)
|
String |
getApplicationEmbedUrl(MediaResolution mediaResolution)
Gets the Application URL thumbnail of the media according the specified media resolution. |
String |
getApplicationOriginalUrl()
Gets the original URL of a media with cache handling. |
String |
getApplicationThumbnailUrl(MediaResolution mediaResolution)
Gets the Application URL thumbnail of the media according the specified media resolution. |
String |
getAuthor()
|
String |
getComponentInstanceId()
|
String |
getContributionType()
|
Date |
getCreationDate()
|
com.stratelia.webactiv.beans.admin.UserDetail |
getCreator()
|
String |
getCreatorId()
|
String |
getCreatorName()
|
String |
getDate()
|
String |
getDescription()
|
String |
getDescription(String language)
|
abstract org.silverpeas.file.SilverpeasFile |
getFile(MediaResolution mediaResolution)
Gets the Silverpeas file. |
protected com.stratelia.webactiv.SilverpeasRole |
getGreatestUserRole(com.stratelia.webactiv.beans.admin.UserDetail user)
Retrieve greatest user role |
String |
getIconUrl()
|
String |
getId()
|
String |
getInstanceId()
|
InternalMedia |
getInternalMedia()
Gets the internal media instance if type of the current media is MediaType.Photo or
MediaType.Video or MediaType.Sound. |
String |
getKeyWord()
|
Iterator<String> |
getLanguages()
|
Date |
getLastUpdateDate()
|
String |
getLastUpdatedBy()
|
com.stratelia.webactiv.beans.admin.UserDetail |
getLastUpdater()
|
String |
getLastUpdaterName()
|
MediaPK |
getMediaPK()
|
String |
getName()
|
String |
getName(String language)
|
String |
getPermalink()
Gets the permalink of a media. |
Photo |
getPhoto()
Gets the photo instance if type of the current media is MediaType.Photo. |
String |
getSilverCreationDate()
|
String |
getSilverpeasContentId()
|
Sound |
getSound()
Gets the sound instance if type of the current media is MediaType.Sound. |
Streaming |
getStreaming()
Gets the streaming instance if type of the current media is MediaType.Streaming. |
String |
getTitle()
|
abstract MediaType |
getType()
|
String |
getURL()
|
Video |
getVideo()
Gets the video instance if type of the current media is MediaType.Video. |
org.silverpeas.date.Period |
getVisibilityPeriod()
|
String |
getWorkspaceSubFolderName()
Gets the sub folder name of the media in the Silverpeas workspace. |
int |
hashCode()
|
boolean |
isDownloadable()
Indicated if the download is possible. |
boolean |
isPreviewable()
Indicates if the media is previewable. |
boolean |
isVisible()
|
protected boolean |
isVisible(Date today)
|
void |
removeFromAllAlbums()
Removes the current media from all albums which it is attached to. |
void |
setAuthor(String author)
|
void |
setComponentInstanceId(String instanceId)
|
void |
setCreationDate(Date createDate)
|
void |
setCreator(com.stratelia.webactiv.beans.admin.UserDetail creator)
|
void |
setCreatorId(String creatorId)
|
void |
setDescription(String description)
|
void |
setIconUrl(String iconUrl)
|
void |
setId(String mediaId)
|
void |
setKeyWord(String keyWord)
|
void |
setLastUpdateDate(Date lastUpdateDate)
|
void |
setLastUpdatedBy(String lastUpdatedBy)
|
void |
setLastUpdater(com.stratelia.webactiv.beans.admin.UserDetail lastUpdater)
|
void |
setMediaPK(MediaPK mediaPK)
|
void |
setSilverpeasContentId(String silverpeasContentId)
|
void |
setTitle(String title)
|
void |
setToAlbums(String... albumIds)
Sets the current media to the album represented by specified identifiers. |
void |
setVisibilityPeriod(org.silverpeas.date.Period visibilityPeriod)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.silverpeas.process.io.file.FileBasePath BASE_PATH
| Constructor Detail |
|---|
public Media()
| Method Detail |
|---|
public MediaPK getMediaPK()
public void setMediaPK(MediaPK mediaPK)
public void setId(String mediaId)
public String getId()
getId in interface com.silverpeas.SilverpeasContentgetId in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic void setComponentInstanceId(String instanceId)
public String getInstanceId()
getInstanceId in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic String getComponentInstanceId()
getComponentInstanceId in interface com.silverpeas.SilverpeasContentpublic String getContributionType()
getContributionType in interface com.silverpeas.SilverpeasContentpublic abstract MediaType getType()
public String getTitle()
getTitle in interface com.silverpeas.SilverpeasContentpublic void setTitle(String title)
public String getDescription()
getDescription in interface com.silverpeas.SilverpeasContentgetDescription in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic void setDescription(String description)
public String getAuthor()
public void setAuthor(String author)
public String getKeyWord()
public void setKeyWord(String keyWord)
public org.silverpeas.date.Period getVisibilityPeriod()
public void setVisibilityPeriod(org.silverpeas.date.Period visibilityPeriod)
public boolean isVisible()
protected boolean isVisible(Date today)
public Date getCreationDate()
getCreationDate in interface com.silverpeas.SilverpeasContentpublic void setCreationDate(Date createDate)
public com.stratelia.webactiv.beans.admin.UserDetail getCreator()
getCreator in interface com.silverpeas.SilverpeasContentpublic void setCreator(com.stratelia.webactiv.beans.admin.UserDetail creator)
public String getCreatorId()
getCreatorId in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic void setCreatorId(String creatorId)
public String getCreatorName()
public Date getLastUpdateDate()
public void setLastUpdateDate(Date lastUpdateDate)
public com.stratelia.webactiv.beans.admin.UserDetail getLastUpdater()
public void setLastUpdater(com.stratelia.webactiv.beans.admin.UserDetail lastUpdater)
public String getLastUpdatedBy()
public void setLastUpdatedBy(String lastUpdatedBy)
public String getLastUpdaterName()
public boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
canBeAccessedBy in interface com.silverpeas.SilverpeasContentpublic String getWorkspaceSubFolderName()
public String getPermalink()
public boolean isPreviewable()
public String getApplicationThumbnailUrl(MediaResolution mediaResolution)
mediaResolution -
public String getApplicationEmbedUrl(MediaResolution mediaResolution)
mediaResolution -
public String getApplicationOriginalUrl()
public abstract org.silverpeas.file.SilverpeasFile getFile(MediaResolution mediaResolution)
mediaResolution -
public String getSilverpeasContentId()
getSilverpeasContentId in interface com.silverpeas.SilverpeasContentpublic void setSilverpeasContentId(String silverpeasContentId)
public void setIconUrl(String iconUrl)
public String getIconUrl()
getIconUrl in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic boolean isDownloadable()
public String getURL()
getURL in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic String getDate()
getDate in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic String getSilverCreationDate()
getSilverCreationDate in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic String getName()
getName in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic String getName(String language)
getName in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic String getDescription(String language)
getDescription in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic Iterator<String> getLanguages()
getLanguages in interface com.stratelia.silverpeas.contentManager.SilverContentInterfacepublic String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic InternalMedia getInternalMedia()
MediaType.Photo or
MediaType.Video or MediaType.Sound.
MediaType.Photo or
MediaType.Video or MediaType.Sound.public Photo getPhoto()
MediaType.Photo.
MediaType.Photo.public Video getVideo()
MediaType.Video.
MediaType.Video.public Sound getSound()
MediaType.Sound.
MediaType.Sound.public Streaming getStreaming()
MediaType.Streaming.
MediaType.Streaming.public void removeFromAllAlbums()
public void addToAlbums(String... albumIds)
albumIds - the identifier of albums.public void setToAlbums(String... albumIds)
albumIds - the identifier of albums.protected com.stratelia.webactiv.SilverpeasRole getGreatestUserRole(com.stratelia.webactiv.beans.admin.UserDetail user)
user - the current user detail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||