@Component public class LibraryManagerImpl extends java.lang.Object implements LibraryManager
| Modifier and Type | Class and Description |
|---|---|
class |
LibraryManagerImpl.PlexLibraryUpdater |
| Constructor and Description |
|---|
LibraryManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Actor> |
findActors(java.lang.String key,
int maxReturned) |
java.util.List<Director> |
findDirectors(java.lang.String key,
int maxReturned) |
java.util.List<VideoBase> |
findVideos(java.util.regex.Pattern pattern,
boolean allowRestricted,
int maxReturned) |
java.util.List<Writer> |
findWriters(java.lang.String key,
int maxReturned) |
java.util.List<VideoBase> |
getActorVideos(int key) |
java.util.List<VideoBase> |
getDirectorVideos(int key) |
long |
getLastUpdateTime() |
java.util.List<VideoBase> |
getLibrarySectionVideos(int key) |
int |
getMovieCount(boolean allowRestricted) |
java.util.List<VideoBase> |
getNewestVideos(int count,
boolean allowRestricted) |
VideoBase |
getRandomMovie(boolean allowRestricted) |
RestRefreshStatus |
getRefreshLibraryFromPlexStatus()
Fetch a status about how the RefreshLibraryFromPlex thread is doing.
|
java.util.List<LibrarySection> |
getSectionList() |
java.util.List<LibrarySection> |
getSectionList(boolean allowRestricted) |
int |
getTVEpisodeCount(boolean allowRestricted)
Return the number of TV episodes we have
|
TVSeason |
getTVSeasonFromHashKey(int key) |
int |
getTVShowCount(boolean allowRestricted) |
VideoBase |
getVideoBaseFromKey(int key,
boolean allowRestricted) |
Video |
getVideoFromKey(int key,
boolean allowRestricted) |
java.util.List<VideoBase> |
getWriterVideos(int key) |
void |
startRefreshLibraryFromPlex()
Start the slow background thread that refreshes our database from plex.
|
public long getLastUpdateTime()
getLastUpdateTime in interface LibraryManagerpublic java.util.List<LibrarySection> getSectionList()
getSectionList in interface LibraryManagerpublic java.util.List<LibrarySection> getSectionList(boolean allowRestricted)
getSectionList in interface LibraryManagerpublic VideoBase getRandomMovie(boolean allowRestricted)
getRandomMovie in interface LibraryManagerpublic Video getVideoFromKey(int key, boolean allowRestricted)
getVideoFromKey in interface LibraryManagerpublic VideoBase getVideoBaseFromKey(int key, boolean allowRestricted)
getVideoBaseFromKey in interface LibraryManagerpublic java.util.List<VideoBase> getNewestVideos(int count, boolean allowRestricted)
getNewestVideos in interface LibraryManagerpublic java.util.List<VideoBase> findVideos(java.util.regex.Pattern pattern, boolean allowRestricted, int maxReturned)
findVideos in interface LibraryManagerpublic java.util.List<Actor> findActors(java.lang.String key, int maxReturned)
findActors in interface LibraryManagerpublic java.util.List<Director> findDirectors(java.lang.String key, int maxReturned)
findDirectors in interface LibraryManagerpublic java.util.List<Writer> findWriters(java.lang.String key, int maxReturned)
findWriters in interface LibraryManagerpublic java.util.List<VideoBase> getLibrarySectionVideos(int key)
getLibrarySectionVideos in interface LibraryManagerpublic java.util.List<VideoBase> getDirectorVideos(int key)
getDirectorVideos in interface LibraryManagerpublic java.util.List<VideoBase> getWriterVideos(int key)
getWriterVideos in interface LibraryManagerpublic java.util.List<VideoBase> getActorVideos(int key)
getActorVideos in interface LibraryManagerpublic TVSeason getTVSeasonFromHashKey(int key)
getTVSeasonFromHashKey in interface LibraryManagerpublic int getMovieCount(boolean allowRestricted)
getMovieCount in interface LibraryManagerpublic int getTVShowCount(boolean allowRestricted)
getTVShowCount in interface LibraryManagerpublic int getTVEpisodeCount(boolean allowRestricted)
LibraryManagergetTVEpisodeCount in interface LibraryManagerallowRestricted - Note: allowRestricted is ignoredpublic void startRefreshLibraryFromPlex()
LibraryManagerstartRefreshLibraryFromPlex in interface LibraryManagerpublic RestRefreshStatus getRefreshLibraryFromPlexStatus()
LibraryManagergetRefreshLibraryFromPlexStatus in interface LibraryManager