@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 BuckoVidLib
public java.util.List<LibrarySection> getSectionList(boolean allowRestricted)
getSectionList
in interface BuckoVidLib
public RestVideo getRandomMovie(boolean allowRestricted)
getRandomMovie
in interface BuckoVidLib
public VideoBase getVideoBaseFromKey(int key, boolean allowRestricted)
getVideoBaseFromKey
in interface BuckoVidLib
public Video getVideoFromKey(int key, boolean allowRestricted)
getVideoFromKey
in interface BuckoVidLib
public java.util.List<FailedToRip> getFailedToRip()
getFailedToRip
in interface BuckoVidLib
public java.util.List<WishList> getWishList()
getWishList
in interface BuckoVidLib
public java.util.List<VideoBase> getRecentlyAdded(int count, boolean allowRestricted)
getRecentlyAdded
in interface BuckoVidLib
public java.util.List<RestVideo> findVideosAndThings(java.lang.String key, boolean allowRestricted, int maxReturned)
findVideosAndThings
in interface BuckoVidLib
public java.util.List<VideoBase> getLibraryListVideos(int key)
getLibraryListVideos
in interface BuckoVidLib
public java.util.List<VideoBase> getDirectorVideos(int key)
getDirectorVideos
in interface BuckoVidLib
public java.util.List<VideoBase> getWriterVideos(int key)
getWriterVideos
in interface BuckoVidLib
public java.util.List<VideoBase> getActorVideos(int key)
getActorVideos
in interface BuckoVidLib
public long getLastUpdateTime()
getLastUpdateTime
in interface BuckoVidLib
public int getTVEpisodeCount(boolean allowRestricted)
getTVEpisodeCount
in interface BuckoVidLib
public int getMovieCount(boolean allowRestricted)
getMovieCount
in interface BuckoVidLib
public int getTVShowCount(boolean allowRestricted)
getTVShowCount
in interface BuckoVidLib
public TVSeason getTVSeasonFromHashKey(int key)
getTVSeasonFromHashKey
in interface BuckoVidLib
public boolean isAdmin(javax.servlet.http.HttpServletRequest request)
BuckoVidLib
isAdmin
in interface BuckoVidLib
request
- The request containing the session containing the Userpublic boolean isAllowRestricted(javax.servlet.http.HttpServletRequest request)
BuckoVidLib
isAllowRestricted
in interface BuckoVidLib
request
- The request containing the session containing the Userpublic boolean isHideRestricted(javax.servlet.http.HttpServletRequest request)
isHideRestricted
in interface BuckoVidLib
public void setHideRestricted(javax.servlet.http.HttpServletRequest request, boolean hideRestricted)
setHideRestricted
in interface BuckoVidLib
public int getBackgroundFit(javax.servlet.http.HttpServletRequest request, boolean artShow)
BuckoVidLib
getBackgroundFit
in interface BuckoVidLib
request
- 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 BuckoVidLib
public void setBackgroundDelays(javax.servlet.http.HttpServletRequest request, int backgroundDelay, int artShowDelay)
setBackgroundDelays
in interface BuckoVidLib
public int getFindMaxResults(javax.servlet.http.HttpServletRequest request)
getFindMaxResults
in interface BuckoVidLib
public void setFindMaxResults(javax.servlet.http.HttpServletRequest request, int findMaxResults)
setFindMaxResults
in interface BuckoVidLib
public java.util.List<UserAttribute> getUserAttributes(int userId)
getUserAttributes
in interface BuckoVidLib
public void saveUserAttributes(java.util.List<UserAttribute> list)
saveUserAttributes
in interface BuckoVidLib
public void startRefreshLibraryFromPlex()
startRefreshLibraryFromPlex
in interface BuckoVidLib
public RestRefreshStatus getRefreshLibraryFromPlexStatus()
getRefreshLibraryFromPlexStatus
in interface BuckoVidLib
public java.lang.String getPlexUrl()
BuckoVidLib
getPlexUrl
in interface BuckoVidLib