|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectMovieLibrary.VideoLibrary
public class VideoLibrary
Video Library class.
This class creates a Video Library where everything related to the library of videos is done.
This class stores information about the videos and some preferences linked to videos.
| Constructor Summary | |
|---|---|
VideoLibrary()
Constructor for a video library. Creates a new empty Video library. |
|
VideoLibrary(VideoLibrary reqLibrary)
Creates a new Video Library from another. |
|
| Method Summary | |
|---|---|
boolean |
addNewPlaylist(java.lang.String playlistName)
adds a new playlist to this library. |
boolean |
addNewVideo(VideoObject videoToAdd)
adds a new video to the library, but checks if videos has not been added before first. |
boolean |
changeVideoInfo(VideoObject newVideo,
int videoIndexToBeReplaced)
changes the content of the video with the given ID in the library with the content of the given video. |
void |
deleteAllVideos()
removes all the videos from the library. |
boolean |
deleteVideo(int deletionIndex)
deletes the video with the given ID from the library only. |
int[] |
getColumnWidths()
get the widths of the columns of the main table. |
java.lang.String |
getConfigsVersion()
get the configs file version |
boolean |
getDatabaseSearch()
Gets the database search mode. |
java.lang.String |
getDefaultMovieInfoDatabaseAddress()
gets the default address of the movie info database. |
java.util.ArrayList<java.lang.String> |
getFiltersActors()
|
java.util.ArrayList<java.lang.String> |
getFiltersDirectors()
|
java.util.ArrayList<java.lang.String> |
getFiltersGenres()
|
java.util.ArrayList<java.lang.String> |
getFiltersSeasonNos()
|
java.util.ArrayList<java.lang.String> |
getFiltersSeriesNames()
|
java.util.ArrayList<java.lang.String> |
getFiltersYears()
|
boolean |
getHiddenVideo(int videoIndex)
get if the video is hidden to be specific video is filtered out by the media library filters. |
java.lang.String |
getLang()
get DVD default language |
java.lang.String |
getLibraryVersion()
get the library file version |
java.lang.String |
getMediaFolder()
get the media folder path. |
java.lang.String |
getMediaPlayerLocation()
gets the path of the media player. |
java.lang.String |
getMencoderLocation()
gets the location of mencoder . |
java.lang.String |
getMovieInfoDatabaseAddress()
gets the address of the movie info database. |
int |
getNoOfVideos()
gets the number of videos stored in this library. |
Playlist[] |
getPlaylists()
returns the playlist stored in this library. |
int |
getShownVideoCount()
gets the number of videos that have not been filtered out by the media library fileters. |
int |
getThreads()
get the threads used for converting (cores of the processor). |
boolean |
getValidVideo(int videoIndex)
get state of the video path of the selected video. |
VideoObject |
getVideo(int index)
gets the video with the given video ID. |
java.util.ArrayList<java.lang.String> |
getVideosGenres()
|
VideoObject[] |
getVideosList()
gets the list of videos stored in the library (filtered out or not). |
void |
hideNotSelected(int videoType,
java.lang.String clipType,
java.lang.String genre,
java.lang.String director,
java.lang.String actor,
java.lang.String year,
java.lang.String seriesName,
java.lang.String seasonNo,
boolean recalcGenre,
boolean recalcDirect,
boolean recalcActors,
boolean recalcYears)
|
boolean |
importConfigXml(java.io.File confXML)
Method to read the configuration file and import it into the library. |
boolean |
importLibraryFromXML(java.lang.String requiredConfigXML,
java.lang.String requiredLibraryXML)
Method to import information from XML library and configuration XML to this library. Calls separate methods for each file to check if valid and import them if so. |
boolean |
importLibraryXml(java.io.File libXML)
Method to read and import a library XML file to this library. |
boolean |
isImportModeInDepth()
Gives the state of the import mode. In depth import mode off means import will only look for exact math from database, in depth mode on means if no exact match found title will be parsed and detailed search on this parsed title will be done against the database. |
boolean |
isMediaFolderOrganized()
Returns the organize state of the media folder. Organized means auto renaming and organising of videos inside the media folder. |
void |
reorderLibrary()
Reorders the video ID of the videos in the library. |
boolean |
saveLibraryConfig(java.io.File configXml)
save configurations to config XML file. |
boolean |
saveLibraryXml(java.io.File libXml)
Save this library to an XML file. |
void |
setAllShownVideos()
sets all videos in the library to visible to be specific ignores all the filters and lets the table show all the videos in the library. |
void |
setColumnWidths(int[] reqColumnWidths)
sets the column widths of the main table with the given int array of sizes. |
void |
setColumnWidths(java.lang.String stringColumnWidths)
parses the string of column widths from XML file to import it into this library. |
void |
setConfigsVersion(java.lang.String reqVersion)
sets the config version with the given version |
void |
setDatabaseSearch(boolean databasearchState)
Sets the online database search mode to on or off. |
void |
setDefaultMovieInfoDatabaseAddress(java.lang.String reqAddress)
sets the default address of the movie info database. |
void |
setHiddenVideo(int videoIndex,
boolean status)
sets the chosen video visibility state to the chosen state. |
void |
setInDepthImportMode(boolean state)
Sets the state of the import mode. In depth import mode off means import will only look for exact math from database, in depth mode on means if no exact match found title will be parsed and detailed search on this parsed title will be done against the database. |
void |
setLang(java.lang.String reqLang)
set DVD default language |
void |
setLibraryVersion(java.lang.String reqVersion)
sets the library version to the given version |
void |
setMediaFolder(java.lang.String mediaFolderPath)
sets the media folder location. |
void |
setMediaFolderOrganized(boolean state)
sets the media folder organisation state. |
boolean |
setMediaPlayerLocation(java.lang.String requiredMediaPlayerLocation)
sets the location of the media player. |
boolean |
setMencoderLocation(java.lang.String requiredMencoderLocation)
sets the location of mencoder in the library. |
void |
setMovieInfoDbAdd(java.lang.String requiredMovieInfoDbAdd)
sets the address of the movie info database. |
void |
setThreads(int reqThreads)
sets the number of threads to use for converting. |
void |
setValidVideo(int videoIndex,
boolean status)
sets the path validity for the chosen video. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VideoLibrary()
public VideoLibrary(VideoLibrary reqLibrary)
reqLibrary - this library is used to create the new library with those settings| Method Detail |
|---|
public void setDatabaseSearch(boolean databasearchState)
databasearchState - true to set the database search mode to on, false to switch off.public boolean getDatabaseSearch()
public boolean importLibraryFromXML(java.lang.String requiredConfigXML,
java.lang.String requiredLibraryXML)
requiredConfigXML - the path of the configuration XML file to import.requiredLibraryXML - the path of the library XML file to import.
public void reorderLibrary()
public boolean importConfigXml(java.io.File confXML)
confXML - the config XML file to import.
public boolean importLibraryXml(java.io.File libXML)
libXML - library XML file to be read and imported to library .
public boolean saveLibraryXml(java.io.File libXml)
libXml - the XML file the library will be saved to.
public boolean saveLibraryConfig(java.io.File configXml)
configXml - Congiguration XML file the cnfigurations will be saved to.
public java.lang.String getMediaFolder()
public int getThreads()
public void setThreads(int reqThreads)
reqThreads - number of threads to use for converting.public boolean getHiddenVideo(int videoIndex)
videoIndex - index of the video to check visibility state.
public boolean getValidVideo(int videoIndex)
videoIndex - index of the video to check.
public void setValidVideo(int videoIndex,
boolean status)
videoIndex - index of the video to change its state.status - validity of the video path for the chosen video.
public void setHiddenVideo(int videoIndex,
boolean status)
videoIndex - index of the chosen video to update its visibility state.status - visibility of the chosen video.public void setAllShownVideos()
public java.lang.String getMediaPlayerLocation()
public java.lang.String getMencoderLocation()
public java.lang.String getDefaultMovieInfoDatabaseAddress()
public void setDefaultMovieInfoDatabaseAddress(java.lang.String reqAddress)
reqAddress - address to be set for the movie info database.public java.lang.String getMovieInfoDatabaseAddress()
public boolean isMediaFolderOrganized()
public void setMediaFolderOrganized(boolean state)
state - state of the media folder organisation, true if auto organised otherwise false.public boolean isImportModeInDepth()
public void setInDepthImportMode(boolean state)
state - true if in depth import mode on otherwise false.public Playlist[] getPlaylists()
public void setMediaFolder(java.lang.String mediaFolderPath)
mediaFolderPath - path of the media folder to be set.public int getNoOfVideos()
public boolean setMediaPlayerLocation(java.lang.String requiredMediaPlayerLocation)
requiredMediaPlayerLocation - path of the media player to be set.
public boolean setMencoderLocation(java.lang.String requiredMencoderLocation)
requiredMencoderLocation - the path of mencoder to be set.
public void setMovieInfoDbAdd(java.lang.String requiredMovieInfoDbAdd)
requiredMovieInfoDbAdd - address to be set for the movie info database.public boolean addNewPlaylist(java.lang.String playlistName)
playlistName - the name of the playlist to be added .
public boolean addNewVideo(VideoObject videoToAdd)
videoToAdd - the video to check and add to library.
public boolean deleteVideo(int deletionIndex)
deletionIndex - video ID of the video to be deleted from library.
public void deleteAllVideos()
public int getShownVideoCount()
public boolean changeVideoInfo(VideoObject newVideo,
int videoIndexToBeReplaced)
newVideo - the video content to replace the chosen video ID old video content.videoIndexToBeReplaced - the video ID of the video to be replaced.
public VideoObject[] getVideosList()
public VideoObject getVideo(int index)
index - video ID of the video to return.
public int[] getColumnWidths()
public void setColumnWidths(int[] reqColumnWidths)
reqColumnWidths - int array of column widths to replace previous ones.public void setColumnWidths(java.lang.String stringColumnWidths)
stringColumnWidths - string (comma separated values) of column widths to be parsed and imported from
the XML config file to the int array of the library.public void setLang(java.lang.String reqLang)
reqLang - language to set to default languagepublic java.lang.String getLang()
public java.lang.String getLibraryVersion()
public java.lang.String getConfigsVersion()
public void setLibraryVersion(java.lang.String reqVersion)
reqVersion - version to set library topublic void setConfigsVersion(java.lang.String reqVersion)
reqVersion - version to set configs topublic java.util.ArrayList<java.lang.String> getVideosGenres()
public void hideNotSelected(int videoType,
java.lang.String clipType,
java.lang.String genre,
java.lang.String director,
java.lang.String actor,
java.lang.String year,
java.lang.String seriesName,
java.lang.String seasonNo,
boolean recalcGenre,
boolean recalcDirect,
boolean recalcActors,
boolean recalcYears)
public java.util.ArrayList<java.lang.String> getFiltersGenres()
public java.util.ArrayList<java.lang.String> getFiltersActors()
public java.util.ArrayList<java.lang.String> getFiltersDirectors()
public java.util.ArrayList<java.lang.String> getFiltersYears()
public java.util.ArrayList<java.lang.String> getFiltersSeriesNames()
public java.util.ArrayList<java.lang.String> getFiltersSeasonNos()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||