| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.gallery.dao.MediaDAO
public class MediaDAO
| Method Summary | |
|---|---|
static void | 
deleteAllMediaPath(Connection con,
                   Media media)
Deletes the paths of the specified media.  | 
static void | 
deleteMedia(Connection con,
            Media media)
Deletes the specified media (and its paths).  | 
static List<Media> | 
findByCriteria(Connection con,
               MediaCriteria criteria)
Finds media according to the given criteria.  | 
static Collection<String> | 
getAlbumIdsOf(Connection con,
              Media media)
Gets the paths of a media.  | 
static List<com.silverpeas.socialnetwork.model.SocialInformation> | 
getAllMediaIdByUserId(Connection con,
                      String userId,
                      org.silverpeas.date.Period period)
get my SocialInformationGallery according to the type of data base used(PostgreSQL,Oracle,MMS) .  | 
static Media | 
getByCriteria(Connection con,
              MediaCriteria criteria)
Gets the media behind the specified criteria.  | 
static List<com.silverpeas.socialnetwork.model.SocialInformation> | 
getSocialInformationListOfMyContacts(Connection con,
                                     List<String> userIds,
                                     List<String> availableComponents,
                                     org.silverpeas.date.Period period)
get list of socialInformationGallery of my contacts according to the type of data base used(PostgreSQL,Oracle,MMS) .  | 
static String | 
saveMedia(Connection con,
          org.silverpeas.persistence.repository.OperationContext context,
          Media media)
Saves (insert or update) a media.  | 
static void | 
saveMediaPath(Connection con,
              Media media,
              String albumId)
Saves the path of the media.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static Media getByCriteria(Connection con,
                                  MediaCriteria criteria)
                           throws SQLException,
                                  IllegalArgumentException
con - the database connection.criteria - the media criteria.
IllegalArgumentException if several media are found.
SQLException
IllegalArgumentException
public static List<Media> findByCriteria(Connection con,
                                         MediaCriteria criteria)
                                  throws SQLException
con - the database connection.criteria - the media criteria.
SQLException
public static String saveMedia(Connection con,
                               org.silverpeas.persistence.repository.OperationContext context,
                               Media media)
                        throws SQLException,
                               com.stratelia.webactiv.util.exception.UtilException
con - context - media - 
SQLException
com.stratelia.webactiv.util.exception.UtilException
public static void deleteMedia(Connection con,
                               Media media)
                        throws SQLException
con - media - 
SQLException
public static void saveMediaPath(Connection con,
                                 Media media,
                                 String albumId)
                          throws SQLException,
                                 com.stratelia.webactiv.util.exception.UtilException
con - media - albumId - 
SQLException
com.stratelia.webactiv.util.exception.UtilException
public static void deleteAllMediaPath(Connection con,
                                      Media media)
                               throws SQLException
con - media - 
SQLException
public static Collection<String> getAlbumIdsOf(Connection con,
                                               Media media)
                                        throws SQLException
con - media - 
SQLException
public static List<com.silverpeas.socialnetwork.model.SocialInformation> getAllMediaIdByUserId(Connection con,
                                                                                               String userId,
                                                                                               org.silverpeas.date.Period period)
                                                                                        throws SQLException
con - userId - period - 
SQLException
ParseException
public static List<com.silverpeas.socialnetwork.model.SocialInformation> getSocialInformationListOfMyContacts(Connection con,
                                                                                                              List<String> userIds,
                                                                                                              List<String> availableComponents,
                                                                                                              org.silverpeas.date.Period period)
                                                                                                       throws SQLException
con - userIds - availableComponents - period - 
SQLException
ParseException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||