|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.Database
public class Database
Contains methods for manipulating database objects in SageTV as well as doing general database queries NOTE: All of the 'Search' methods will be limited to 1000 results.
| Method Summary | |
|---|---|
java.util.Vector |
DataIntersection(java.lang.Object DataSet1,
java.lang.Object DataSet2)
Creates an intersection of two sets of data. |
java.util.Vector |
DataUnion(java.lang.Object DataSet1,
java.lang.Object DataSet2)
Creates a Union of one or more sets of data. |
(package private) java.lang.Object |
FilterByBoolMethod(java.lang.Object Data,
java.lang.String Method,
boolean MatchValue)
Filters data by a boolean method. |
(package private) java.lang.Object |
FilterByMethod(java.lang.Object Data,
java.lang.String Method,
java.lang.Object MatchValue,
boolean MatchedPasses)
Filters data by a method. |
(package private) java.lang.Object |
FilterByMethodRegex(java.lang.Object Data,
java.lang.String Method,
java.util.regex.Pattern RegexPattern,
boolean MatchedPasses,
boolean CompleteMatch)
Filters data by a method. |
java.lang.Object |
FilterByRange(java.lang.Object Data,
java.lang.String Method,
java.lang.Comparable LowerBoundInclusive,
java.lang.Comparable UpperBoundExclusive,
boolean KeepWithinBounds)
Filters data by a comparable range. |
sage.Airing[] |
GetAiringsOnChannelAtTime(sage.Channel Channel,
long StartTime,
long EndTime,
boolean MustStartDuringTime)
Returns all of the Airing objects in the database that are on the specified channel during the specified time span. |
sage.Airing[] |
GetAiringsOnViewableChannelsAtTime(long StartTime,
long EndTime,
boolean MustStartDuringTime)
Returns all of the Airing objects in the database on all of the channels that are viewable during the specified time span. |
java.lang.String[] |
GetAllCategories()
Gets all of the categories that are in the database. |
java.lang.String[] |
GetAllCategories(java.lang.String MediaMask)
Gets all of the categories that are in the database. |
java.lang.String[] |
GetAllGroupingCategories()
Gets all of the categories that are in the database. |
java.lang.String[] |
GetAllGroupingCategories(java.lang.String MediaMask)
Gets all of the categories that are in the database. |
sage.Airing[] |
GetAllNonMusicWithPerson(java.lang.String Person)
Deprecated. |
sage.Airing[] |
GetAllNonMusicWithTitle(java.lang.String Title)
Deprecated. |
java.lang.String[] |
GetAllPeople()
Gets all of the people that are in the database. |
java.lang.String[] |
GetAllPeople(java.lang.String MediaMask)
Gets all of the people that are in the database. |
java.lang.String[] |
GetAllTitles()
Gets all of the titles that are in the database. |
java.lang.String[] |
GetAllTitles(java.lang.String MediaMask)
Gets all of the titles that are in the database. |
sage.Channel[] |
GetChannelsOnLineup(java.lang.String Lineup)
Returns all of the Channel objects in the database that are on the specified Lineup. |
long |
GetDatabaseLastModifiedTime(java.lang.String MediaMask)
Returns the last modification time for objects that match anything in the specified MediaMask. |
java.lang.Object |
GetFilesWithImportPrefix(java.lang.Object MediaData,
java.lang.String ImportPrefix,
boolean IncludeFiles,
boolean IncludeFolders,
boolean GroupFolders)
Returns a list of java.io.File objects w/ the specified MediaMask whos import prefix matches that of the argument |
java.lang.Object |
GetMediaFilesWithImportPrefix(java.lang.Object MediaData,
java.lang.String ImportPrefix,
boolean IncludeFiles,
boolean IncludeFolders,
boolean GroupFolders)
Returns a list or map of MediaFile objects w/ the specified MediaMask whos import prefix matches that of the argument |
java.util.Map |
GroupByArrayMethod(java.lang.Object Data,
java.lang.String Method)
Grouping method for data lists/maps. |
java.util.Map |
GroupByMethod(java.lang.Object Data,
java.lang.String Method)
Grouping method for data lists/maps. |
boolean |
IsDatabaseMemoryMaxed()
Returns true if the database has maxed out its memory usage and cannot add more content |
sage.Airing[] |
SearchByPerson(java.lang.String SearchString)
Returns all Airings in the database that refer to content that is NOT a music file and includes the specified person in the list of people involved (i.e. |
sage.Airing[] |
SearchByPerson(java.lang.String SearchString,
java.lang.String MediaMask)
Returns all Airings in the database that refer to content that includes the specified person in the list of people involved (i.e. |
sage.Airing[] |
SearchByText(java.lang.String SearchString)
Searches the descriptions and episode names of all of the content in the database for the specified search string. |
sage.Airing[] |
SearchByText(java.lang.String SearchString,
java.lang.String MediaMask)
Searches the descriptions and episode names of all of the content in the database for the specified search string. |
sage.Airing[] |
SearchByTitle(java.lang.String SearchString)
Returns all Airings in the database that refer to content that is NOT a music file and has the specified title. |
sage.Airing[] |
SearchByTitle(java.lang.String SearchString,
java.lang.String MediaMask)
Returns all Airings in the database that refer to content that has the specified title. |
java.lang.String[] |
SearchForPeople(java.lang.String SearchString)
Returns a list of all of the people in the database that include the search string in their name. |
java.lang.String[] |
SearchForPeople(java.lang.String SearchString,
java.lang.String MediaMask)
Returns a list of all of the people in the database that include the search string in their name. |
java.lang.String[] |
SearchForPeopleRegex(java.util.regex.Pattern RegexPattern)
Returns a list of all of the people in the database that match the passed in regular expression. |
java.lang.String[] |
SearchForPeopleRegex(java.util.regex.Pattern RegexPattern,
java.lang.String MediaMask)
Returns a list of all of the people in the database that match the passed in regular expression. |
java.lang.String[] |
SearchForTitles(java.lang.String SearchString)
Returns a list of all of the titles in the database that include the search string in them. |
java.lang.String[] |
SearchForTitles(java.lang.String SearchString,
java.lang.String MediaMask)
Returns a list of all of the titles in the database that include the search string in them. |
java.lang.String[] |
SearchForTitlesRegex(java.util.regex.Pattern RegexPattern)
Returns a list of all of the titles in the database that match the passed in regular expression. |
java.lang.String[] |
SearchForTitlesRegex(java.util.regex.Pattern RegexPattern,
java.lang.String MediaMask)
Returns a list of all of the titles in the database that match the passed in regular expression. |
java.util.Vector |
SearchSelectedExactFields(java.lang.String SearchString,
boolean CaseSensitive,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc)
Searches the specified fields of all the Airings in the database for the specified search string. |
java.util.Vector |
SearchSelectedExactFields(java.lang.String SearchString,
boolean CaseSensitive,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc,
java.lang.String MediaMask)
Searches the specified fields of all the Airings in the database for the specified search string. |
java.util.Vector |
SearchSelectedFields(java.lang.String SearchString,
boolean CaseSensitive,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc)
Searches the specified fields of all the Airings in the database for the specified search string. |
java.util.Vector |
SearchSelectedFields(java.lang.String SearchString,
boolean CaseSensitive,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc,
java.lang.String MediaMask)
Searches the specified fields of all the Airings in the database for the specified search string. |
java.util.Vector |
SearchSelectedFieldsRegex(java.util.regex.Pattern RegexPattern,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc)
Searches the specified fields of all the Airings in the database and tries to match them against the passed in regular expression. |
java.util.Vector |
SearchSelectedFieldsRegex(java.util.regex.Pattern RegexPattern,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc,
java.lang.String MediaMask)
Searches the specified fields of all the Airings in the database and tries to match them against the passed in regular expression. |
java.lang.Object |
Sort(java.lang.Object Data,
boolean Descending,
java.lang.Object SortTechnique)
Sorts a list of data according to the specified sorting technique. |
java.lang.Object |
SortLexical(java.lang.Object Data,
boolean Descending,
java.lang.String SortByMethod)
Sorts a list of data based on the result of calling the "SortByMethod" on each item and using toString on the return value of that method. |
java.lang.String |
StripLeadingArticles(java.lang.String Text)
Strips any leading 'a, an or the' prefixes from the passed in string and returns the resulting string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
java.lang.Object FilterByBoolMethod(java.lang.Object Data,
java.lang.String Method,
boolean MatchValue)
Data - the data that is to be filtered; this can be a java.util.Collection, java.util.Map or an Array. For Maps & Collections the filtering is done IN-PLACE.Method - This is what is evaluated with an element as the only argument. This can be a list of methods to test against separated by the '|' character.MatchValue - the Method must return this value to be in the returned data
java.lang.Object FilterByMethod(java.lang.Object Data,
java.lang.String Method,
java.lang.Object MatchValue,
boolean MatchedPasses)
Data - the data that is to be filtered; this can be a java.util.Collection, java.util.Map or an Array. For Maps & Collections the filtering is done IN-PLACE. For Maps the keys are used for the filtering.Method - This is what is evaluated with an element as the only argument. This can be a list of methods to test against separated by the '|' character. There is also a special 'UserCategories' option which will check the ManualRecord, Favorite and MediaFile "UserCategory" property as well as the Show Category & SubCategory for any matches against a comma-delimited list in the MatchValue parameter.MatchValue - the value to test the return value of Method againstMatchedPasses - if true then matches are included in the return data, if false then everything that doesn't match is returned
java.lang.Object FilterByMethodRegex(java.lang.Object Data,
java.lang.String Method,
java.util.regex.Pattern RegexPattern,
boolean MatchedPasses,
boolean CompleteMatch)
Data - the data that is to be filtered; this can be a java.util.Collection, java.util.Map or an Array. For Maps & Collections the filtering is done IN-PLACE.Method - This is what is evaluated with an element as the only argument (and additional arguments if passed in).RegexPattern - The compiled regular expression used for matching (if it's not compiled, then it will be converted to a compiled regular expression)MatchedPasses - if true then matches are included in the return data, if false then everything that doesn't match is returnedCompleteMatch - if true then the entire string must match the regular expression, if false then the regular expression only needs to match a substring of it
public java.lang.Object FilterByRange(java.lang.Object Data,
java.lang.String Method,
java.lang.Comparable LowerBoundInclusive,
java.lang.Comparable UpperBoundExclusive,
boolean KeepWithinBounds)
Data - the data that is to be filtered; this can be a java.util.Collection, java.util.Map or an Array. For Maps & Collections the filtering is done IN-PLACE.Method - This is what is evaluated with an element as the only argumentLowerBoundInclusive - a java.lang.Comparable which specifies the INCLUSIVE lower bound for the rangeUpperBoundExclusive - a java.lang.Comparable which specified the EXCLUSIVE upper bound for the rangeKeepWithinBounds - if true then values within the range are returned, if false then values outside the range are returned
public java.util.Map GroupByMethod(java.lang.Object Data,
java.lang.String Method)
Data - the data to perform the grouping on, must be a java.util.Collection, java.util.Map or an ArrayMethod - the name of the Method to execute on each element to retrieve the key used for grouping, see the note above regarding "Categories" as a special option
public java.util.Map GroupByArrayMethod(java.lang.Object Data,
java.lang.String Method)
Data - the data to perform the grouping on, must be a java.util.Collection, java.util.Map or an ArrayMethod - the name of the Method to execute on each element to retrieve the keys used for grouping
public java.lang.Object Sort(java.lang.Object Data,
boolean Descending,
java.lang.Object SortTechnique)
Data - the data to sort, this must be a java.util.Collection, a java.util.Map, or an array; for Collections all the elements must be the same ClassDescending - if true then the data will be sorted in descending order, if false then the order will be reversedSortTechnique - the technique to sort the data by; this can be a java.util.Comparator
which then explicitly controls the sort, or it can be one of the named sorting techniques of:
Intelligent, ChannelNumber, CaseInsensitive, FavoritePriority, Natural or a method name. If null is passed then the elements "natural" sorting is used.
public java.lang.Object SortLexical(java.lang.Object Data,
boolean Descending,
java.lang.String SortByMethod)
Sort()
SortLexical should be used when sorting text if possible, as it uses more advanced language-specific sorting techniques to determine a proper order.
This sort is performed case-insensitive.
NOTE: If you pass more than 3 arguments to this function then the extra arguments will be passed along to the SortByMethod.
Data - the data to sort, this must be a java.util.Collection, a java.util.Map, or an array; for Collections all the elements must be the same ClassDescending - if true then the data will be sorted in descending order, if false then the order will be reversedSortByMethod - the method to call on each data item to get the value it should be sorted by, if this is null then the data elements are converted to Strings directly and then compared
public sage.Airing[] GetAiringsOnChannelAtTime(sage.Channel Channel,
long StartTime,
long EndTime,
boolean MustStartDuringTime)
Channel - the Channel that the Airings need to be oneStartTime - the start of the time window to search for Airings inEndTime - the end of the time window to search for Airings inMustStartDuringTime - if true, then only Airings that start during the time window will be returned, if false
then any Airing that overlaps with the time window will be returned
public sage.Airing[] GetAiringsOnViewableChannelsAtTime(long StartTime,
long EndTime,
boolean MustStartDuringTime)
StartTime - the start of the time window to search for Airings inEndTime - the end of the time window to search for Airings inMustStartDuringTime - if true, then only Airings that start during the time window will be returned, if false
then any Airing that overlaps with the time window will be returned
public sage.Airing[] GetAllNonMusicWithPerson(java.lang.String Person)
Person - the name of the person to search for matching content on
public sage.Airing[] GetAllNonMusicWithTitle(java.lang.String Title)
Title - the title of the content must match this exactly
public sage.Airing[] SearchByPerson(java.lang.String SearchString)
GetAllNonMusicWithPerson()
SearchString - the name of the person to search for matching content on
public sage.Airing[] SearchByPerson(java.lang.String SearchString,
java.lang.String MediaMask)
SearchString - the name of the person to search for matching content onMediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public sage.Airing[] SearchByText(java.lang.String SearchString)
SearchString - the string to search for
public sage.Airing[] SearchByText(java.lang.String SearchString,
java.lang.String MediaMask)
SearchString - the string to search forMediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public sage.Airing[] SearchByTitle(java.lang.String SearchString)
GetAllNonMusicWithTitle()
SearchString - the title of the content must match this exactly
public sage.Airing[] SearchByTitle(java.lang.String SearchString,
java.lang.String MediaMask)
SearchString - the title of the content must match this exactlyMediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.lang.String[] SearchForPeople(java.lang.String SearchString)
SearchString - the string to search on
public java.lang.String[] SearchForPeople(java.lang.String SearchString,
java.lang.String MediaMask)
SearchString - the string to search onMediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.lang.String[] SearchForTitles(java.lang.String SearchString)
SearchString - the string to search on
public java.lang.String[] SearchForTitles(java.lang.String SearchString,
java.lang.String MediaMask)
SearchString - the string to search onMediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.lang.String[] SearchForPeopleRegex(java.util.regex.Pattern RegexPattern)
RegexPattern - The compiled regular expression used for matching (if it's not compiled, then it will be converted to a compiled regular expression)
public java.lang.String[] SearchForPeopleRegex(java.util.regex.Pattern RegexPattern,
java.lang.String MediaMask)
RegexPattern - The compiled regular expression used for matching (if it's not compiled, then it will be converted to a compiled regular expression)MediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.lang.String[] SearchForTitlesRegex(java.util.regex.Pattern RegexPattern)
RegexPattern - The compiled regular expression used for matching (if it's not compiled, then it will be converted to a compiled regular expression)
public java.lang.String[] SearchForTitlesRegex(java.util.regex.Pattern RegexPattern,
java.lang.String MediaMask)
RegexPattern - The compiled regular expression used for matching (if it's not compiled, then it will be converted to a compiled regular expression)MediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.util.Vector DataUnion(java.lang.Object DataSet1,
java.lang.Object DataSet2)
DataSet1 - one of the data sets to include in the unionDataSet2 - another one of the data sets to include in the union
public java.util.Vector DataIntersection(java.lang.Object DataSet1,
java.lang.Object DataSet2)
DataSet1 - one of the data sets to include in the intersectionDataSet2 - the other data set to include in the intersection
public java.util.Vector SearchSelectedFields(java.lang.String SearchString,
boolean CaseSensitive,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc)
SearchString - the string to search withCaseSensitive - if true then the search is case senstive, if false then it's case insensitiveTitles - if true then the title fields will be searched, if false then they will not beEpisode - if true then the episode fields will be searched, if false then they will be not beDescription - if true then the description fields will be searched, if false then they will not bePeople - if true then the people fields will be searched, if false then they will not beCategory - if true then the category fields will be searched, if false then they will not beRated - if true then the rated fields will be searched, if false then they will not beExtendedRatings - if true then the extended ratings fields will be searched, if false then they will not beYear - if true then the year fields will be searched, if false then they will not beMisc - if true then the miscellaneous fields will be searched, if false then they will not be
public java.util.Vector SearchSelectedFields(java.lang.String SearchString,
boolean CaseSensitive,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc,
java.lang.String MediaMask)
SearchString - the string to search withCaseSensitive - if true then the search is case senstive, if false then it's case insensitiveTitles - if true then the title fields will be searched, if false then they will not beEpisode - if true then the episode fields will be searched, if false then they will be not beDescription - if true then the description fields will be searched, if false then they will not bePeople - if true then the people fields will be searched, if false then they will not beCategory - if true then the category fields will be searched, if false then they will not beRated - if true then the rated fields will be searched, if false then they will not beExtendedRatings - if true then the extended ratings fields will be searched, if false then they will not beYear - if true then the year fields will be searched, if false then they will not beMisc - if true then the miscellaneous fields will be searched, if false then they will not beMediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.util.Vector SearchSelectedExactFields(java.lang.String SearchString,
boolean CaseSensitive,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc)
SearchSelectedFields
which only requires that the SearchString exist within the field's value somewhere (i.e. a substring)
SearchString - the string to search withCaseSensitive - if true then the search is case senstive, if false then it's case insensitiveTitles - if true then the title fields will be searched, if false then they will not beEpisode - if true then the episode fields will be searched, if false then they will be not beDescription - if true then the description fields will be searched, if false then they will not bePeople - if true then the people fields will be searched, if false then they will not beCategory - if true then the category fields will be searched, if false then they will not beRated - if true then the rated fields will be searched, if false then they will not beExtendedRatings - if true then the extended ratings fields will be searched, if false then they will not beYear - if true then the year fields will be searched, if false then they will not beMisc - if true then the miscellaneous fields will be searched, if false then they will not be
public java.util.Vector SearchSelectedExactFields(java.lang.String SearchString,
boolean CaseSensitive,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc,
java.lang.String MediaMask)
SearchSelectedFields
which only requires that the SearchString exist within the field's value somewhere (i.e. a substring)
The content it references must also match one of the media types specified in the MediaMask.
SearchString - the string to search withCaseSensitive - if true then the search is case senstive, if false then it's case insensitiveTitles - if true then the title fields will be searched, if false then they will not beEpisode - if true then the episode fields will be searched, if false then they will be not beDescription - if true then the description fields will be searched, if false then they will not bePeople - if true then the people fields will be searched, if false then they will not beCategory - if true then the category fields will be searched, if false then they will not beRated - if true then the rated fields will be searched, if false then they will not beExtendedRatings - if true then the extended ratings fields will be searched, if false then they will not beYear - if true then the year fields will be searched, if false then they will not beMisc - if true then the miscellaneous fields will be searched, if false then they will not beMediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.util.Vector SearchSelectedFieldsRegex(java.util.regex.Pattern RegexPattern,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc)
RegexPattern - The compiled regular expression used for matching (if it's not compiled, then it will be converted to a compiled regular expression)Titles - if true then the title fields will be searched, if false then they will not beEpisode - if true then the episode fields will be searched, if false then they will be not beDescription - if true then the description fields will be searched, if false then they will not bePeople - if true then the people fields will be searched, if false then they will not beCategory - if true then the category fields will be searched, if false then they will not beRated - if true then the rated fields will be searched, if false then they will not beExtendedRatings - if true then the extended ratings fields will be searched, if false then they will not beYear - if true then the year fields will be searched, if false then they will not beMisc - if true then the miscellaneous fields will be searched, if false then they will not be
public java.util.Vector SearchSelectedFieldsRegex(java.util.regex.Pattern RegexPattern,
boolean Titles,
boolean Episode,
boolean Description,
boolean People,
boolean Category,
boolean Rated,
boolean ExtendedRatings,
boolean Year,
boolean Misc,
java.lang.String MediaMask)
RegexPattern - The compiled regular expression used for matching (if it's not compiled, then it will be converted to a compiled regular expression)Titles - if true then the title fields will be searched, if false then they will not beEpisode - if true then the episode fields will be searched, if false then they will be not beDescription - if true then the description fields will be searched, if false then they will not bePeople - if true then the people fields will be searched, if false then they will not beCategory - if true then the category fields will be searched, if false then they will not beRated - if true then the rated fields will be searched, if false then they will not beExtendedRatings - if true then the extended ratings fields will be searched, if false then they will not beYear - if true then the year fields will be searched, if false then they will not beMisc - if true then the miscellaneous fields will be searched, if false then they will not beMediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public sage.Channel[] GetChannelsOnLineup(java.lang.String Lineup)
Lineup - the name of the EPG lineup to get the channels for
public java.lang.String[] GetAllTitles()
public java.lang.String[] GetAllTitles(java.lang.String MediaMask)
MediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.lang.String[] GetAllPeople()
public java.lang.String[] GetAllPeople(java.lang.String MediaMask)
MediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.lang.String[] GetAllCategories()
public java.lang.String[] GetAllCategories(java.lang.String MediaMask)
MediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.lang.String[] GetAllGroupingCategories()
public java.lang.String[] GetAllGroupingCategories(java.lang.String MediaMask)
MediaMask - string specifying what content types to search (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public long GetDatabaseLastModifiedTime(java.lang.String MediaMask)
MediaMask - string specifying what content types (i.e. "TM" for TV & Music, 'T'=TV, 'M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay)
public java.lang.Object GetFilesWithImportPrefix(java.lang.Object MediaData,
java.lang.String ImportPrefix,
boolean IncludeFiles,
boolean IncludeFolders,
boolean GroupFolders)
MediaData - can either by a MediaMask string specifying what content types ('M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay) or it can be an array/collection of the specific MediaFile objects to analyzeImportPrefix - a string specifying a subpath that must match the start of the import files path relative to its import rootIncludeFiles - if true, then MediaFile objects with a complete prefix match will be returnedIncludeFolders - if true, then MediaFile objects with a partial prefix match will be returnedGroupFolders - if true, then MediaFile objects with partial prefixes that match will be grouped by their next path section; extract the 'null' keyed value to get the list of the files
public java.lang.Object GetMediaFilesWithImportPrefix(java.lang.Object MediaData,
java.lang.String ImportPrefix,
boolean IncludeFiles,
boolean IncludeFolders,
boolean GroupFolders)
MediaData - can either by a MediaMask string specifying what content types ('M'=Music, 'V'=Video, 'D'=DVD, 'P'=Pictures, 'B'=BluRay) or it can be an array/collection of the specific MediaFile objects to analyzeImportPrefix - a string specifying a subpath that must match the start of the import files path relative to its import rootIncludeFiles - if true, then MediaFile objects with a complete prefix match will be returnedIncludeFolders - if true, then MediaFile objects with a partial prefix match will be returnedGroupFolders - if true, then MediaFile objects with partial prefixes that match will be grouped by their next path section; extract the 'null' keyed value to get the list of the files
public boolean IsDatabaseMemoryMaxed()
public java.lang.String StripLeadingArticles(java.lang.String Text)
Text - the string to strip the leading articles from
|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||