|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaItemDao
DAO for MediaItem objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface magoffin.matt.dao.BatchableDao |
|---|
magoffin.matt.dao.BatchableDao.BatchCallback<T>, magoffin.matt.dao.BatchableDao.BatchCallbackResult, magoffin.matt.dao.BatchableDao.BatchMode, magoffin.matt.dao.BatchableDao.BatchOptions, magoffin.matt.dao.BatchableDao.BatchResult |
| Field Summary | |
|---|---|
static java.lang.String |
BATCH_NAME_INDEX
The batch processing name to index MediaItem objects. |
static java.lang.String |
BATCH_NAME_PROCESS_MEDIA_IDS
The batch processing name to process a list of MediaItem objects by ID. |
static java.lang.String |
BATCH_PROCESS_PARAM_MEDIA_IDS_LIST
The batch processing parameter key for a List of MediaItem IDs to process. |
| Method Summary | |
|---|---|
java.util.List<MediaItem> |
findItemsForAlbum(java.lang.Long albumId)
Find all MediaItems for a specific album. |
java.util.List<MediaItem> |
findItemsForCollection(java.lang.Long collectionId)
Find all MediaItems for a specific collection. |
MediaItem |
getItemForPath(java.lang.Long collectionId,
java.lang.String path)
Find a MediaItem by its path and a specific collection. |
MediaItem |
getMediaItemWithInfo(java.lang.Long itemId)
Get a MediaItem fully populated (with metadata, etc). |
java.util.List<MediaItem> |
removeItemsFromAlbums(java.lang.Long[] itemIds)
Remove a set of MediaItems from any albums they reside in. |
java.util.List<MediaItem> |
removeItemsFromCollections(java.lang.Long[] itemIds)
Remove a set of media items from the collections they are in. |
java.util.List<MediaItem> |
removeItemsOfCollectionFromAlbums(java.lang.Long collectionId)
Find all MediaItems for a specific collection and then remove them from any album they reside in. |
| Methods inherited from interface magoffin.matt.dao.GenericDao |
|---|
delete, get, store |
| Methods inherited from interface magoffin.matt.dao.BatchableDao |
|---|
batchProcess |
| Field Detail |
|---|
static final java.lang.String BATCH_NAME_PROCESS_MEDIA_IDS
static final java.lang.String BATCH_NAME_INDEX
static final java.lang.String BATCH_PROCESS_PARAM_MEDIA_IDS_LIST
| Method Detail |
|---|
MediaItem getItemForPath(java.lang.Long collectionId,
java.lang.String path)
collectionId - the ID of the collection the item is inpath - the item's path
java.util.List<MediaItem> findItemsForCollection(java.lang.Long collectionId)
collectionId - the ID of the collection
java.util.List<MediaItem> findItemsForAlbum(java.lang.Long albumId)
albumId - the ID of the album
java.util.List<MediaItem> removeItemsOfCollectionFromAlbums(java.lang.Long collectionId)
collectionId - the ID of the collection
java.util.List<MediaItem> removeItemsFromAlbums(java.lang.Long[] itemIds)
itemIds - the IDs of the items to remove from albums
java.util.List<MediaItem> removeItemsFromCollections(java.lang.Long[] itemIds)
itemIds - the IDs of the items to remove from collections
MediaItem getMediaItemWithInfo(java.lang.Long itemId)
itemId - the ID of the item to get
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||