|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AlbumDao
DAO for Album objects.
Method Summary | |
---|---|
java.util.List<Album> |
findAlbumsForUser(java.lang.Long userId)
Find all top-level albums owned by a given user. |
java.util.List<Album> |
findAlbumsForUserAndName(java.lang.Long userId,
java.lang.String name)
Find top-level albums owned by a given user named a particular name. |
java.util.List<Album> |
findAlbumsForUserByDate(java.lang.Long userId,
java.util.Calendar since,
boolean anonymousOnly,
boolean browseOnly,
boolean feedOnly)
Find top-level albums owned by a given user, ordered in descending order by date, for all albums created on or since a given date. |
java.util.List<Album> |
findAlbumsForUserByDate(java.lang.Long userId,
int max,
boolean anonymousOnly,
boolean browseOnly,
boolean feedOnly)
Find top-level albums owned by a given user, ordered in descending order by date, with an optional maximum number of albums to return. |
java.util.List<Album> |
findSharedAlbumsContainingItem(MediaItem item)
Get a list of all Albums that contain a given MediaItem and are shared. |
Album |
getAlbumForKey(java.lang.String anonymousKey)
Get an Album for an anonymous key. |
Album |
getAlbumWithItems(java.lang.Long albumId)
Get an Album with it's items fully populated. |
Album |
getParentAlbum(java.lang.Long childAlbumId)
Get the parent album for another album. |
int |
reassignAlbumsUsingTheme(Theme oldTheme,
Theme newTheme)
Reassign all Albums using a particular Theme to a new Theme. |
Methods inherited from interface magoffin.matt.dao.GenericDao |
---|
delete, get, store |
Method Detail |
---|
java.util.List<Album> findAlbumsForUser(java.lang.Long userId)
userId
- the ID of the user to find the albums for
java.util.List<Album> findAlbumsForUserByDate(java.lang.Long userId, int max, boolean anonymousOnly, boolean browseOnly, boolean feedOnly)
userId
- the ID of the user to find the albums formax
- the maximum number of albums to return, if greater
than zero (otherwise return all albums)anonymousOnly
- if true then only get albums which allow
anonymous accessbrowseOnly
- if true then only get albums which allow
browse accessfeedOnly
- if true then only get albums which allow
feed access
java.util.List<Album> findAlbumsForUserByDate(java.lang.Long userId, java.util.Calendar since, boolean anonymousOnly, boolean browseOnly, boolean feedOnly)
userId
- the ID of the user to find the albums forsince
- the date to get albums sinceanonymousOnly
- if true then only get albums which allow
anonymous accessbrowseOnly
- if true then only get albums which allow
browse accessfeedOnly
- if true then only get albums which allow
feed access
java.util.List<Album> findAlbumsForUserAndName(java.lang.Long userId, java.lang.String name)
userId
- the ID of the user to find the albums forname
- the name of the album to find
Album getAlbumForKey(java.lang.String anonymousKey)
anonymousKey
- the anonymous key
Album getParentAlbum(java.lang.Long childAlbumId)
childAlbumId
- the child album ID
Album getAlbumWithItems(java.lang.Long albumId)
albumId
- the ID of the album
int reassignAlbumsUsingTheme(Theme oldTheme, Theme newTheme)
oldTheme
- the Theme to search fornewTheme
- the new Theme to replace the old Theme with
java.util.List<Album> findSharedAlbumsContainingItem(MediaItem item)
item
- the item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |