@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 LibraryManager
public java.util.List<LibrarySection> getSectionList()
getSectionList
in interface LibraryManager
public java.util.List<LibrarySection> getSectionList(boolean allowRestricted)
getSectionList
in interface LibraryManager
public VideoBase getRandomMovie(boolean allowRestricted)
getRandomMovie
in interface LibraryManager
public Video getVideoFromKey(int key, boolean allowRestricted)
getVideoFromKey
in interface LibraryManager
public VideoBase getVideoBaseFromKey(int key, boolean allowRestricted)
getVideoBaseFromKey
in interface LibraryManager
public java.util.List<VideoBase> getNewestVideos(int count, boolean allowRestricted)
getNewestVideos
in interface LibraryManager
public java.util.List<VideoBase> findVideos(java.util.regex.Pattern pattern, boolean allowRestricted, int maxReturned)
findVideos
in interface LibraryManager
public java.util.List<Actor> findActors(java.lang.String key, int maxReturned)
findActors
in interface LibraryManager
public java.util.List<Director> findDirectors(java.lang.String key, int maxReturned)
findDirectors
in interface LibraryManager
public java.util.List<Writer> findWriters(java.lang.String key, int maxReturned)
findWriters
in interface LibraryManager
public java.util.List<VideoBase> getLibrarySectionVideos(int key)
getLibrarySectionVideos
in interface LibraryManager
public java.util.List<VideoBase> getDirectorVideos(int key)
getDirectorVideos
in interface LibraryManager
public java.util.List<VideoBase> getWriterVideos(int key)
getWriterVideos
in interface LibraryManager
public java.util.List<VideoBase> getActorVideos(int key)
getActorVideos
in interface LibraryManager
public TVSeason getTVSeasonFromHashKey(int key)
getTVSeasonFromHashKey
in interface LibraryManager
public int getMovieCount(boolean allowRestricted)
getMovieCount
in interface LibraryManager
public int getTVShowCount(boolean allowRestricted)
getTVShowCount
in interface LibraryManager
public int getTVEpisodeCount(boolean allowRestricted)
LibraryManager
getTVEpisodeCount
in interface LibraryManager
allowRestricted
- Note: allowRestricted is ignoredpublic void startRefreshLibraryFromPlex()
LibraryManager
startRefreshLibraryFromPlex
in interface LibraryManager
public RestRefreshStatus getRefreshLibraryFromPlexStatus()
LibraryManager
getRefreshLibraryFromPlexStatus
in interface LibraryManager