|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.silverpeas.gallery.control.GallerySessionController
public final class GallerySessionController
Field Summary |
---|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
GallerySessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Standard Session Controller Constructeur |
Method Summary | |
---|---|
void |
addMediaToAlbums(String mediaId,
String[] albums)
|
void |
addMediaToBasket(String mediaId)
Add media identifier given in parameter in basket |
Collection<AlbumDetail> |
addNbMedia(Collection<AlbumDetail> albums)
|
String |
addOrder()
|
boolean |
addToBasket()
Add only photo media inside basket |
static GalleryExporter |
aGalleryExporter()
Gets a new exporter of Kmelia publications. |
Boolean |
areCommentsEnabled()
|
void |
clearBasket()
Clear basket |
void |
clearListSelected()
|
void |
clearSearchContext()
|
void |
copyAlbum(String albumId)
|
void |
copyMedia(String mediaId)
|
void |
copySelectedMedia(Collection<String> mediaIds)
|
void |
createAlbum(AlbumDetail album)
|
String |
createMedia(MediaDataCreateDelegate delegate)
Creating one media (just only one) |
void |
cutAlbum(String albumId)
|
void |
cutMedia(String mediaId)
|
void |
cutSelectedMedia(Collection<String> mediaIds)
|
void |
deleteAlbum(String albumId)
|
void |
deleteMedia(Collection<String> mediaIds)
|
void |
deleteMedia(String mediaId)
|
void |
deletePhotoFromBasket(String mediaId)
|
void |
deleteSelectedPhotosFromBasket()
Only remove selected photo from basket |
com.silverpeas.importExport.report.ExportReport |
exportAlbum(String albumId,
MediaResolution mediaResolution)
Export all picture from an album with the given resolution |
com.silverpeas.importExport.report.ExportReport |
exportSelection(MediaResolution mediaResolution)
Export all selected images from basket with the given resolution |
AlbumDetail |
getAlbum(String albumId)
|
Collection<String> |
getAlbumIdsOf(String mediaId)
|
AlbumDetail |
getAlbumLight(String albumId)
|
Collection<AlbumDetail> |
getAllAlbums()
|
List<com.silverpeas.comment.model.Comment> |
getAllComments(Media media)
|
Collection<Media> |
getAllMedia(AlbumDetail album)
|
List<Order> |
getAllOrders()
|
List<String> |
getBasketMediaIdList()
|
List<Media> |
getBasketMedias()
|
String |
getCharteUrl()
|
String |
getCurrentAlbumId()
|
String |
getCurrentOrderId()
|
MediaResolution |
getDisplayedMediaResolution()
|
MediaResolution |
getImagePreviewSize()
Get the resolution preview of images |
MediaResolution |
getImageResolutionPreview(Media media)
Get the resolution preview of the images |
int |
getIndexOfCurrentPage()
|
List<Media> |
getLastRegisteredMedia()
|
Collection<String> |
getListSelected()
|
Media |
getMedia(String mediaId)
|
List<MetaData> |
getMetaDataKeys()
|
com.stratelia.webactiv.util.ResourceLocator |
getMetadataResources()
|
int |
getNbMediaPerPage()
|
Media |
getNext()
|
Collection<Media> |
getNotVisible()
|
Order |
getOrder(String orderId)
|
String |
getOrderForm()
|
List<Order> |
getOrdersByUser()
|
com.silverpeas.publicationTemplate.PublicationTemplate |
getOrderTemplate(boolean register)
|
Collection<com.stratelia.webactiv.util.node.model.NodeDetail> |
getPath()
|
Collection<com.stratelia.webactiv.util.node.model.NodeDetail> |
getPath(com.stratelia.webactiv.util.node.model.NodePK nodePK)
|
com.stratelia.silverpeas.pdc.model.SearchContext |
getPDCSearchContext()
|
Media |
getPrevious()
|
org.silverpeas.search.searchEngine.model.QueryDescription |
getQuery()
|
int |
getRang()
|
List<Media> |
getRestrictedListMedia()
|
String |
getSearchKeyWord()
|
List<Media> |
getSearchResultListMedia()
|
boolean |
getSelect()
|
int |
getSilverObjectId(String objectId)
|
Integer |
getSlideshowWait()
|
MediaSort |
getSort()
|
com.silverpeas.publicationTemplate.PublicationTemplate |
getTemplate(boolean register)
|
String |
getUrl(String orderId,
String mediaId)
|
String |
getWatermarkHD()
|
String |
getWatermarkOther()
|
String |
getXMLFormName()
|
com.silverpeas.form.DataRecord |
getXMLSearchContext()
|
AlbumDetail |
goToAlbum()
|
AlbumDetail |
goToAlbum(String albumId)
|
String |
initAlertUser(String mediaId)
|
void |
initIndex()
|
boolean |
isAccessAuthorized(String orderId)
|
protected boolean |
isAdminOrPublisher(com.stratelia.webactiv.SilverpeasRole userRole)
|
boolean |
isAlbumAdmin(com.stratelia.webactiv.SilverpeasRole userRole,
String albumId,
String userId)
|
Boolean |
isBasket()
|
Boolean |
isDragAndDropEnabled()
|
boolean |
isExportEnable()
|
Boolean |
isGuest()
|
Boolean |
isMakeWatermark()
|
boolean |
isMediaAdmin(com.stratelia.webactiv.SilverpeasRole userRole,
String mediaId,
String userId)
|
Boolean |
isOrder()
|
Boolean |
isPrivateSearch()
|
boolean |
isSearchResult()
|
Boolean |
isUsePdc()
|
Boolean |
isViewList()
|
Boolean |
isViewMetadata()
|
boolean |
isViewNotVisible()
|
AlbumDetail |
loadCurrentAlbum()
|
void |
notifyUsers(com.stratelia.silverpeas.notificationManager.NotificationMetaData notifMetaData)
|
void |
paste()
|
Collection<Media> |
search(org.silverpeas.search.searchEngine.model.QueryDescription query)
|
void |
sendAskMedia(String asking)
|
void |
sendAskOrder(String orderId)
|
void |
sendAskOrderUser(String orderId)
Send notification to reader to alert him that his order has been processed |
void |
setCurrentAlbumId(String currentAlbumId)
|
void |
setCurrentOrderId(String orderId)
|
void |
setDisplayedMediaResolution(MediaResolution displayedMediaResolution)
|
void |
setIndexOfCurrentPage(String index)
|
void |
setMediaToAlbums(String mediaId,
String[] albums)
|
void |
setPDCSearchContext(com.stratelia.silverpeas.pdc.model.SearchContext context)
|
void |
setQuery(org.silverpeas.search.searchEngine.model.QueryDescription query)
|
void |
setRestrictedListMedia(Collection<Media> restrictedListMedia)
|
void |
setSearchKeyWord(String searchKeyWord)
|
void |
setSearchResult(boolean isSearchResult)
|
void |
setSearchResultListMedia(Collection<Media> searchResultListMedia)
|
void |
setSelect(boolean select)
|
void |
setSort(MediaSort sort)
|
void |
setSortSearch(MediaSort sort)
|
void |
setViewNotVisible(boolean isViewNotVisible)
|
void |
setXMLSearchContext(com.silverpeas.form.DataRecord data)
|
static void |
sortAlbums(List<com.stratelia.webactiv.util.node.model.NodePK> albumPKs)
|
void |
updateAlbum(AlbumDetail album)
|
void |
updateMedia(Media media)
|
void |
updateMediaByUser(Collection<String> mediaIds,
MediaDataUpdateDelegate delegate)
Updating several media (no file have to be handled) |
void |
updateMediaByUser(String mediaId,
MediaDataUpdateDelegate delegate)
Updating one media (just only one) |
void |
updateOrder(Order order)
|
void |
updateOrderRow(String orderId,
String mediaId)
|
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GallerySessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
mainSessionCtrl
- The user's profilecomponentContext
- The component's profile
Method Detail |
---|
public List<Media> getLastRegisteredMedia()
public List<com.silverpeas.comment.model.Comment> getAllComments(Media media)
public int getSilverObjectId(String objectId)
public AlbumDetail goToAlbum()
public AlbumDetail goToAlbum(String albumId)
public AlbumDetail loadCurrentAlbum()
public AlbumDetail getAlbum(String albumId)
public AlbumDetail getAlbumLight(String albumId)
public Collection<Media> getNotVisible()
public Collection<AlbumDetail> getAllAlbums()
public void setMediaToAlbums(String mediaId, String[] albums)
public void addMediaToAlbums(String mediaId, String[] albums)
public void createAlbum(AlbumDetail album)
public void updateAlbum(AlbumDetail album)
public void deleteAlbum(String albumId)
public com.stratelia.webactiv.util.ResourceLocator getMetadataResources()
public Media getMedia(String mediaId)
public Media getPrevious()
public Media getNext()
public String createMedia(MediaDataCreateDelegate delegate)
delegate
-
public void updateMediaByUser(String mediaId, MediaDataUpdateDelegate delegate) throws Exception
mediaId
- delegate
-
Exception
public void updateMediaByUser(Collection<String> mediaIds, MediaDataUpdateDelegate delegate) throws Exception
mediaIds
- delegate
-
Exception
public void updateMedia(Media media)
public void deleteMedia(String mediaId)
public void deleteMedia(Collection<String> mediaIds)
public Collection<com.stratelia.webactiv.util.node.model.NodeDetail> getPath(com.stratelia.webactiv.util.node.model.NodePK nodePK)
public Collection<com.stratelia.webactiv.util.node.model.NodeDetail> getPath()
public Collection<String> getAlbumIdsOf(String mediaId)
public int getNbMediaPerPage()
public MediaResolution getDisplayedMediaResolution()
public void setDisplayedMediaResolution(MediaResolution displayedMediaResolution)
public MediaSort getSort()
public void setSort(MediaSort sort)
public void setSortSearch(MediaSort sort)
public void setIndexOfCurrentPage(String index)
public int getIndexOfCurrentPage()
public String getCurrentAlbumId()
public void setCurrentAlbumId(String currentAlbumId)
public int getRang()
public Boolean isDragAndDropEnabled()
public Boolean isUsePdc()
public Boolean isViewMetadata()
public Boolean isMakeWatermark()
public String getWatermarkHD()
public String getWatermarkOther()
public Boolean isViewList()
public Boolean areCommentsEnabled()
public Integer getSlideshowWait()
public String getXMLFormName()
public void initIndex()
public String initAlertUser(String mediaId)
public Collection<Media> search(org.silverpeas.search.searchEngine.model.QueryDescription query)
public void sendAskMedia(String asking)
public Collection<String> getListSelected()
public void clearListSelected()
public List<Media> getRestrictedListMedia()
public void setRestrictedListMedia(Collection<Media> restrictedListMedia)
public List<Media> getSearchResultListMedia()
public void setSearchResultListMedia(Collection<Media> searchResultListMedia)
public String getSearchKeyWord()
public void setSearchKeyWord(String searchKeyWord)
public boolean getSelect()
public void setSelect(boolean select)
public Boolean isPrivateSearch()
public boolean isAlbumAdmin(com.stratelia.webactiv.SilverpeasRole userRole, String albumId, String userId)
public boolean isMediaAdmin(com.stratelia.webactiv.SilverpeasRole userRole, String mediaId, String userId)
public void copySelectedMedia(Collection<String> mediaIds) throws com.silverpeas.util.clipboard.ClipboardException
com.silverpeas.util.clipboard.ClipboardException
public void cutSelectedMedia(Collection<String> mediaIds) throws com.silverpeas.util.clipboard.ClipboardException
com.silverpeas.util.clipboard.ClipboardException
public void copyMedia(String mediaId) throws com.silverpeas.util.clipboard.ClipboardException
com.silverpeas.util.clipboard.ClipboardException
public void cutMedia(String mediaId) throws com.silverpeas.util.clipboard.ClipboardException
com.silverpeas.util.clipboard.ClipboardException
public void copyAlbum(String albumId) throws com.silverpeas.util.clipboard.ClipboardException
com.silverpeas.util.clipboard.ClipboardException
public void cutAlbum(String albumId) throws com.silverpeas.util.clipboard.ClipboardException
com.silverpeas.util.clipboard.ClipboardException
public void paste() throws com.silverpeas.util.clipboard.ClipboardException
com.silverpeas.util.clipboard.ClipboardException
public Collection<Media> getAllMedia(AlbumDetail album)
public void sendAskOrder(String orderId)
public void sendAskOrderUser(String orderId)
orderId
- the order identifierpublic boolean addToBasket()
public void addMediaToBasket(String mediaId)
mediaId
- the media identifier to addpublic void deleteSelectedPhotosFromBasket()
public void deletePhotoFromBasket(String mediaId)
public void clearBasket()
public List<String> getBasketMediaIdList()
public List<Media> getBasketMedias()
public Order getOrder(String orderId)
public String getCurrentOrderId()
public void setCurrentOrderId(String orderId)
public String addOrder()
public void updateOrderRow(String orderId, String mediaId)
public String getUrl(String orderId, String mediaId)
public boolean isAccessAuthorized(String orderId)
public List<MetaData> getMetaDataKeys()
public void updateOrder(Order order)
public List<Order> getAllOrders()
public List<Order> getOrdersByUser()
public String getOrderForm()
public String getCharteUrl()
public Boolean isBasket()
public Boolean isGuest()
public Boolean isOrder()
public boolean isViewNotVisible()
public boolean isExportEnable()
public void setViewNotVisible(boolean isViewNotVisible)
public boolean isSearchResult()
public void setSearchResult(boolean isSearchResult)
public org.silverpeas.search.searchEngine.model.QueryDescription getQuery()
public void setQuery(org.silverpeas.search.searchEngine.model.QueryDescription query)
public void setPDCSearchContext(com.stratelia.silverpeas.pdc.model.SearchContext context)
public com.stratelia.silverpeas.pdc.model.SearchContext getPDCSearchContext()
public void setXMLSearchContext(com.silverpeas.form.DataRecord data)
public com.silverpeas.form.DataRecord getXMLSearchContext()
public void clearSearchContext()
protected boolean isAdminOrPublisher(com.stratelia.webactiv.SilverpeasRole userRole)
public static void sortAlbums(List<com.stratelia.webactiv.util.node.model.NodePK> albumPKs)
public Collection<AlbumDetail> addNbMedia(Collection<AlbumDetail> albums)
public void notifyUsers(com.stratelia.silverpeas.notificationManager.NotificationMetaData notifMetaData)
public com.silverpeas.importExport.report.ExportReport exportAlbum(String albumId, MediaResolution mediaResolution) throws com.silverpeas.export.ExportException
albumId
- mediaResolution
-
com.silverpeas.export.ExportException
public static GalleryExporter aGalleryExporter()
public com.silverpeas.importExport.report.ExportReport exportSelection(MediaResolution mediaResolution) throws com.silverpeas.export.ExportException
mediaResolution
-
com.silverpeas.export.ExportException
public MediaResolution getImagePreviewSize()
public MediaResolution getImageResolutionPreview(Media media)
media
-
public com.silverpeas.publicationTemplate.PublicationTemplate getTemplate(boolean register) throws com.silverpeas.publicationTemplate.PublicationTemplateException
com.silverpeas.publicationTemplate.PublicationTemplateException
public com.silverpeas.publicationTemplate.PublicationTemplate getOrderTemplate(boolean register) throws com.silverpeas.publicationTemplate.PublicationTemplateException
com.silverpeas.publicationTemplate.PublicationTemplateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |