@Component public class BuckoVidLibImpl extends java.lang.Object implements BuckoVidLib
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RestVideo> |
findVideosAndThings(java.lang.String key,
boolean allowRestricted,
int maxReturned) |
java.util.List<VideoBase> |
getActorVideos(int key) |
int |
getBackgroundFit(javax.servlet.http.HttpServletRequest request,
boolean artShow)
Get the background fit style.
|
java.util.List<VideoBase> |
getDirectorVideos(int key) |
java.util.List<FailedToRip> |
getFailedToRip() |
int |
getFindMaxResults(javax.servlet.http.HttpServletRequest request) |
long |
getLastUpdateTime() |
java.util.List<VideoBase> |
getLibraryListVideos(int key) |
int |
getMovieCount(boolean allowRestricted) |
java.lang.String |
getPlexUrl()
Get the base url for our plex server from the properties file.
|
RestVideo |
getRandomMovie(boolean allowRestricted) |
java.util.List<VideoBase> |
getRecentlyAdded(int count,
boolean allowRestricted) |
RestRefreshStatus |
getRefreshLibraryFromPlexStatus() |
java.util.List<LibrarySection> |
getSectionList() |
java.util.List<LibrarySection> |
getSectionList(boolean allowRestricted) |
int |
getTVEpisodeCount(boolean allowRestricted) |
TVSeason |
getTVSeasonFromHashKey(int key) |
int |
getTVShowCount(boolean allowRestricted) |
java.util.List<UserAttribute> |
getUserAttributes(int userId) |
VideoBase |
getVideoBaseFromKey(int key,
boolean allowRestricted) |
Video |
getVideoFromKey(int key,
boolean allowRestricted) |
java.util.List<WishList> |
getWishList() |
java.util.List<VideoBase> |
getWriterVideos(int key) |
boolean |
isAdmin(javax.servlet.http.HttpServletRequest request)
Is this user an Admin?
|
boolean |
isAllowRestricted(javax.servlet.http.HttpServletRequest request)
Is this user allowed access to the restricted sections, and does he want to see them?
|
boolean |
isHideRestricted(javax.servlet.http.HttpServletRequest request) |
void |
saveUserAttributes(java.util.List<UserAttribute> list) |
void |
setBackgroundDelays(javax.servlet.http.HttpServletRequest request,
int backgroundDelay,
int artShowDelay) |
void |
setBackgroundFit(javax.servlet.http.HttpServletRequest request,
int backgroundFit) |
void |
setFindMaxResults(javax.servlet.http.HttpServletRequest request,
int findMaxResults) |
void |
setHideRestricted(javax.servlet.http.HttpServletRequest request,
boolean hideRestricted) |
void |
startRefreshLibraryFromPlex() |
public java.util.List<LibrarySection> getSectionList()
getSectionList in interface BuckoVidLibpublic java.util.List<LibrarySection> getSectionList(boolean allowRestricted)
getSectionList in interface BuckoVidLibpublic RestVideo getRandomMovie(boolean allowRestricted)
getRandomMovie in interface BuckoVidLibpublic VideoBase getVideoBaseFromKey(int key, boolean allowRestricted)
getVideoBaseFromKey in interface BuckoVidLibpublic Video getVideoFromKey(int key, boolean allowRestricted)
getVideoFromKey in interface BuckoVidLibpublic java.util.List<FailedToRip> getFailedToRip()
getFailedToRip in interface BuckoVidLibpublic java.util.List<WishList> getWishList()
getWishList in interface BuckoVidLibpublic java.util.List<VideoBase> getRecentlyAdded(int count, boolean allowRestricted)
getRecentlyAdded in interface BuckoVidLibpublic java.util.List<RestVideo> findVideosAndThings(java.lang.String key, boolean allowRestricted, int maxReturned)
findVideosAndThings in interface BuckoVidLibpublic java.util.List<VideoBase> getLibraryListVideos(int key)
getLibraryListVideos in interface BuckoVidLibpublic java.util.List<VideoBase> getDirectorVideos(int key)
getDirectorVideos in interface BuckoVidLibpublic java.util.List<VideoBase> getWriterVideos(int key)
getWriterVideos in interface BuckoVidLibpublic java.util.List<VideoBase> getActorVideos(int key)
getActorVideos in interface BuckoVidLibpublic long getLastUpdateTime()
getLastUpdateTime in interface BuckoVidLibpublic int getTVEpisodeCount(boolean allowRestricted)
getTVEpisodeCount in interface BuckoVidLibpublic int getMovieCount(boolean allowRestricted)
getMovieCount in interface BuckoVidLibpublic int getTVShowCount(boolean allowRestricted)
getTVShowCount in interface BuckoVidLibpublic TVSeason getTVSeasonFromHashKey(int key)
getTVSeasonFromHashKey in interface BuckoVidLibpublic boolean isAdmin(javax.servlet.http.HttpServletRequest request)
BuckoVidLibisAdmin in interface BuckoVidLibrequest - The request containing the session containing the Userpublic boolean isAllowRestricted(javax.servlet.http.HttpServletRequest request)
BuckoVidLibisAllowRestricted in interface BuckoVidLibrequest - The request containing the session containing the Userpublic boolean isHideRestricted(javax.servlet.http.HttpServletRequest request)
isHideRestricted in interface BuckoVidLibpublic void setHideRestricted(javax.servlet.http.HttpServletRequest request,
boolean hideRestricted)
setHideRestricted in interface BuckoVidLibpublic int getBackgroundFit(javax.servlet.http.HttpServletRequest request,
boolean artShow)
BuckoVidLibgetBackgroundFit in interface BuckoVidLibrequest - The request containing the session containing the UserartShow - Maybe we are running the ArtShow and want the override. Grey background needs a real style for the ArtShow.public void setBackgroundFit(javax.servlet.http.HttpServletRequest request,
int backgroundFit)
setBackgroundFit in interface BuckoVidLibpublic void setBackgroundDelays(javax.servlet.http.HttpServletRequest request,
int backgroundDelay,
int artShowDelay)
setBackgroundDelays in interface BuckoVidLibpublic int getFindMaxResults(javax.servlet.http.HttpServletRequest request)
getFindMaxResults in interface BuckoVidLibpublic void setFindMaxResults(javax.servlet.http.HttpServletRequest request,
int findMaxResults)
setFindMaxResults in interface BuckoVidLibpublic java.util.List<UserAttribute> getUserAttributes(int userId)
getUserAttributes in interface BuckoVidLibpublic void saveUserAttributes(java.util.List<UserAttribute> list)
saveUserAttributes in interface BuckoVidLibpublic void startRefreshLibraryFromPlex()
startRefreshLibraryFromPlex in interface BuckoVidLibpublic RestRefreshStatus getRefreshLibraryFromPlexStatus()
getRefreshLibraryFromPlexStatus in interface BuckoVidLibpublic java.lang.String getPlexUrl()
BuckoVidLibgetPlexUrl in interface BuckoVidLib