public class Library
extends java.lang.Object
Constructor and Description |
---|
Library() |
Modifier and Type | Method and Description |
---|---|
void |
addLibrarySection(LibrarySection librarySection) |
void |
addVideo(int key,
VideoBase video) |
java.util.HashSet<Actor> |
getActors() |
java.util.HashSet<Director> |
getDirectors() |
java.util.HashSet<Genre> |
getGenres() |
LibrarySection |
getLibrarySection(int key) |
java.util.List<LibrarySection> |
getLibrarySections() |
int |
getMaxNewestVideos()
Fetch the max length of the recent video list.
|
VideoBase |
getNewestVideo() |
java.util.List<VideoBase> |
getNewestVideos() |
java.util.List<java.lang.String> |
getRestrictedSectionNames() |
java.util.List<LibrarySection> |
getUnrestrictedLibrarySections() |
VideoBase |
getVideoBase(int key) |
VideoBase |
getVideoById(int videoId) |
java.util.HashMap<java.lang.Integer,VideoBase> |
getVideoMap() |
java.util.HashSet<Writer> |
getWriters() |
void |
setActors(java.util.HashSet<Actor> actors) |
void |
setDirectors(java.util.HashSet<Director> directors) |
void |
setGenres(java.util.HashSet<Genre> genres) |
void |
setLibrarySections(java.util.List<LibrarySection> librarySections) |
void |
setRestrictedSectionNames(java.util.List<java.lang.String> restrictedSectionNames) |
void |
setWriters(java.util.HashSet<Writer> writers) |
public int getMaxNewestVideos()
public java.util.List<LibrarySection> getLibrarySections()
public java.util.List<LibrarySection> getUnrestrictedLibrarySections()
public LibrarySection getLibrarySection(int key)
public void setLibrarySections(java.util.List<LibrarySection> librarySections)
librarySections
- the librarySections to setpublic void addLibrarySection(LibrarySection librarySection)
public java.util.List<java.lang.String> getRestrictedSectionNames()
public void setRestrictedSectionNames(java.util.List<java.lang.String> restrictedSectionNames)
restrictedSectionNames
- the restrictedSectionNames to setpublic java.util.HashMap<java.lang.Integer,VideoBase> getVideoMap()
public void addVideo(int key, VideoBase video)
videoMap
- the videoMap to setpublic VideoBase getVideoBase(int key)
public VideoBase getVideoById(int videoId)
public VideoBase getNewestVideo()
public java.util.List<VideoBase> getNewestVideos()
public java.util.HashSet<Actor> getActors()
public void setActors(java.util.HashSet<Actor> actors)
actors
- the actors to setpublic java.util.HashSet<Genre> getGenres()
public void setGenres(java.util.HashSet<Genre> genres)
genres
- the genres to setpublic java.util.HashSet<Director> getDirectors()
public void setDirectors(java.util.HashSet<Director> directors)
directors
- the directors to setpublic java.util.HashSet<Writer> getWriters()
public void setWriters(java.util.HashSet<Writer> writers)
writers
- the writers to set