|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaManager
| Method Summary | |
|---|---|
java.util.Collection |
getAllMedia()
|
User |
getCreator(int userId)
Gets the user who uploaded this media from the storage medium |
Media |
getMedia(int mediaId)
|
java.util.Collection |
getMediaForPlace(int placeId)
Gets all the media associated with a place |
Place |
getPlace(int placeId)
Gets the place from the storage medium |
int |
insertMedia(java.net.URL url,
java.lang.String desc,
int creatorId,
int placeId,
java.util.Date dateCaptured)
Inserts a new piece of media into the storage medium |
boolean |
removeMedia(int mediaId)
Removes a piece of media from the storage medium |
boolean |
updateMedia(int mediaId,
java.net.URL url,
java.lang.String desc,
int creatorId,
int placeId,
java.util.Date dateCaptured)
Updates the value of a piece of media in the storage medium |
| Method Detail |
|---|
Media getMedia(int mediaId)
mediaId - A unique identifier of a media in the storage medium
java.util.Collection getAllMedia()
int insertMedia(java.net.URL url,
java.lang.String desc,
int creatorId,
int placeId,
java.util.Date dateCaptured)
url - The new location where this media is hosteddesc - The new description of this mediacreatorId - The ID of the user who uploaded this mediaplaceId - The place that this media representsdateCaptured - The new date that this media was captured at the place
boolean updateMedia(int mediaId,
java.net.URL url,
java.lang.String desc,
int creatorId,
int placeId,
java.util.Date dateCaptured)
mediaId - The media to be updatedurl - The new location where this media is hosteddesc - The new description of this mediacreatorId - The ID of the user who uploaded this mediaplaceId - The place that this media representsdateCaptured - The new date that this media was captured at the place
boolean removeMedia(int mediaId)
mediaId - The tag to remove
User getCreator(int userId)
userId - The id of the user to retrieve
Place getPlace(int placeId)
placeId - The id of the place to retrieve
java.util.Collection getMediaForPlace(int placeId)
placeId - The id of the place to get media for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||