From df7d7981b56a4560c95ea7e9b194080e93398ecf Mon Sep 17 00:00:00 2001 From: Matt Windsor Date: Mon, 21 Mar 2011 21:54:31 +0000 Subject: GREAT PACKAGE RESHUFFLE: Everything is now organised into frontend, backend and common (to frontend and backend) packages. Things may have been broken. Doc refresh. --- doc/uk/org/ury/common/show/ShowUtils.html | 345 ++++++++++++++++++++++++++++++ 1 file changed, 345 insertions(+) create mode 100644 doc/uk/org/ury/common/show/ShowUtils.html (limited to 'doc/uk/org/ury/common/show/ShowUtils.html') diff --git a/doc/uk/org/ury/common/show/ShowUtils.html b/doc/uk/org/ury/common/show/ShowUtils.html new file mode 100644 index 0000000..71d01a6 --- /dev/null +++ b/doc/uk/org/ury/common/show/ShowUtils.html @@ -0,0 +1,345 @@ + + + + + + +ShowUtils + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +uk.org.ury.common.show +
+Class ShowUtils

+
+java.lang.Object
+  extended by uk.org.ury.common.show.ShowUtils
+
+
+
+
public class ShowUtils
extends java.lang.Object
+ + +

+A set of common utility routines to facilitate the extraction of show items + from the show storage areas of the URY database. +

+ +

+

+
Author:
+
Matt Windsor
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static intNUM_CHANNELS + +
+          The number of channels reserved for show items.
+  + + + + + + + + + + +
+Constructor Summary
ShowUtils() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static java.util.List<ShowItem>getChannelList(DatabaseDriver db, + int showID, + int channel) + +
+          Given a show and a channel, retrieve a list of all show items bound to + that channel for the show.
+static java.util.List<java.lang.String>getPublicFolders(DatabaseDriver db) + +
+          Return the names of the public track folders, or "bins".
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NUM_CHANNELS

+
+public static final int NUM_CHANNELS
+
+
The number of channels reserved for show items. + + TODO: move this somewhere more appropriate. +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+ShowUtils

+
+public ShowUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getPublicFolders

+
+public static java.util.List<java.lang.String> getPublicFolders(DatabaseDriver db)
+                                                         throws QueryFailureException
+
+
Return the names of the public track folders, or "bins". +

+

+
Parameters:
db - The database to query. +
Returns:
a list of the public folder names. The list may be empty. +
Throws: +
java.lang.IllegalArgumentException - if the database is null, the show ID is negative or the + channel index falls out of bounds. +
QueryFailureException - if the database backend yielded an error while executing the + search query.
+
+
+
+ +

+getChannelList

+
+public static java.util.List<ShowItem> getChannelList(DatabaseDriver db,
+                                                      int showID,
+                                                      int channel)
+                                               throws QueryFailureException
+
+
Given a show and a channel, retrieve a list of all show items bound to + that channel for the show. +

+

+
Parameters:
db - The database to query.
showID - The unique number that identifies the show.
channel - The index of the channel to query. +
Returns:
a list of ShowItems extracted from the show and channel. The list + may be empty. +
Throws: +
java.lang.IllegalArgumentException - if the database is null, the show ID is negative or the + channel index falls out of bounds. +
QueryFailureException - if the database backend yielded an error while executing the + search query.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3