| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.gallery.GalleryContentManager
public class GalleryContentManager
The gallery implementation of ContentInterface.
| Constructor Summary | |
|---|---|
GalleryContentManager()
 | 
|
| Method Summary | |
|---|---|
 int | 
createSilverContent(Connection con,
                    Media media,
                    String userId)
add a new content.  | 
 void | 
deleteSilverContent(Connection con,
                    MediaPK mediaPK)
delete a content.  | 
 List<com.stratelia.silverpeas.contentManager.SilverContentInterface> | 
getSilverContentById(List<Integer> ids,
                     String peasId,
                     String userId,
                     List<String> userRoles)
Find all the SilverContent with the given list of SilverContentId  | 
 int | 
getSilverObjectId(String mediaId,
                  String peasId)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GalleryContentManager()
| Method Detail | 
|---|
public List<com.stratelia.silverpeas.contentManager.SilverContentInterface> getSilverContentById(List<Integer> ids,
                                                                                                 String peasId,
                                                                                                 String userId,
                                                                                                 List<String> userRoles)
getSilverContentById in interface com.stratelia.silverpeas.contentManager.ContentInterfaceids - list of silverContentId to retrievepeasId - the id of the instanceuserId - the id of the user who wants to retrieve silverContentuserRoles - the roles of the user
public int getSilverObjectId(String mediaId,
                             String peasId)
public int createSilverContent(Connection con,
                               Media media,
                               String userId)
                        throws com.stratelia.silverpeas.contentManager.ContentManagerException
con - a Connectionmedia - the content to registeruserId - the creator of the content
com.stratelia.silverpeas.contentManager.ContentManagerException
public void deleteSilverContent(Connection con,
                                MediaPK mediaPK)
                         throws com.stratelia.silverpeas.contentManager.ContentManagerException
con - a ConnectionmediaPK - the identifiant of the content to unregister
com.stratelia.silverpeas.contentManager.ContentManagerException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||