|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecteTextReader.clientInterface.DBClient
public class DBClient
An class implementing the methods of interface NotationClient. Also contains several static utility methods.
Nested Class Summary | |
---|---|
static class |
DBClient.NEW_USER_STATUS
An enum to describe the possible outcomes when creating a new user |
Field Summary | |
---|---|
private static java.util.Vector |
allClients
|
private java.sql.Connection |
con
|
private static int |
dbVersion
|
private static int |
defaultTransactionIsolationLevel
|
private static java.lang.String |
driverName
|
static int |
FETCH_SIZE
|
private static java.lang.String |
host
|
private static java.lang.String |
jdbcString
|
private java.util.Vector |
listeners
|
private java.lang.String |
name
|
private java.sql.Connection |
nextCon
|
private java.sql.Connection |
offlineCon
|
private boolean |
online
|
private DBClientOnlineTest |
onlineTester
|
private int |
reconnectTime
|
private boolean |
tryNextCon
|
private boolean |
verbose
|
Constructor Summary | |
---|---|
DBClient()
Constructs a DBClient object. |
|
DBClient(boolean verbose)
Constructs a DB client object with specified value for verbose and name of "Unnamed"; |
|
DBClient(boolean verbose,
java.lang.String name)
Constructs a DBClient object. |
Method Summary | |
---|---|
boolean |
addBookToCourse(java.lang.String courseID,
java.lang.String bookURL)
Adds the book identified by the given URL to the specified course |
void |
addDatabaseEventListener(java.lang.Object listener)
Register an object as an DatabaseEventListener of this class. |
void |
addMember(java.lang.String memberName,
java.lang.String groupName)
|
boolean |
addUserToCourse(java.lang.String userName,
java.lang.String courseName)
Adds the specified user to the specified course |
void |
beginTransaction()
Executes a begin transaction statement. |
boolean |
bookmarkExists(Notation n)
determines if an annotation bookmark exists for the annotation n |
static Criteria |
buildCriteria(java.lang.Object[] args)
Builds a Criteria object out of an array of pairs of objects |
static Notation |
buildNotation(java.lang.Object[] args)
Builds a Notation object out of an array of pairs of objects |
void |
clearApplicationPreferences(java.lang.String userName)
Deletes any stored application preferences for the given user. |
void |
clearCourseBooks(java.lang.String courseID)
Remove records of any books associated with the specified course from the database. |
void |
clearLogRecords(java.lang.String userName)
This method clears all log activity associated with the given user. |
void |
clearUserAnnotations(java.lang.String author,
Notation.AnnotationType type)
Removes all annotations of the specified type authored by the given author from the database. |
void |
clearUserCourses(java.lang.String userName)
Remove records of any courses associated with the given user from the database. |
boolean |
closeConnection()
Permanently close the connection to the database for this client. |
void |
commitTransaction()
Executes a commit transaction statement. |
int |
computeIdentity(java.lang.String type)
get an identity value that will be unique, even across replicated servers. |
java.lang.String |
computeUniqueNotationSubject(java.lang.String candidate,
java.lang.String userName)
looks in the database for notations with a subject matching candidate. |
int |
createNewGroup(java.lang.String newGroupName,
java.lang.String userName)
|
DBClient.NEW_USER_STATUS |
createNewUser(java.lang.String userName,
java.lang.String password,
PasswordPolicy policy)
Creates a new user with the given user name and password, if it doesn't already exist |
void |
deleteNotation(java.lang.String userName,
java.lang.String theTable,
Criteria selectCriteria)
Delete an existing notation. |
boolean |
deleteUser(java.lang.String userName)
Deletes the given user from the set of valid users |
java.sql.ResultSet |
executeString(java.lang.String sqlstmt)
Deprecated. Use query(String) method as of 6/16/03. This simply calls that method. |
void |
fireDatabaseEvent(DatabaseEvent de)
Send an DatabaseEvent to all registered listeners. |
java.util.Map |
getAllowableNotations()
retrieve a Map of NotationType, AllowableMode pairs The keys of the Map are the Notation Types, while the values are a Collection of all the allowable display modes for that type |
Notation |
getAnnotationBookmark(Notation n)
Retrieves the annotation bookmark associated with the given annotation |
java.util.List |
getAnnotationURLS()
retrieve a list of all the URL's containing annotations |
static int |
getDefaultTransactionIsolationLevel()
|
static int |
getFETCH_SIZE()
|
int |
getLastId()
Gets the last id assigned to an inserted notation by the database. |
java.lang.String |
getName()
retrieve the name given to this client when it was created |
int |
getNumberOfPosts(Notation disc)
returns the number of posts that exist in the discussion that disc is a part of |
java.util.Map |
getQuickLaunchPrefs(java.lang.String user)
retrieve the user's preference for QuickAnnotation viewing modes |
boolean |
goOffline()
requests that the client work offline note that most likely, you want to call the static version of this method in order to make all open DBClient objects work offline |
boolean |
goOnline()
requests that the client work online note that most likely, you want to call the static version of this method in order to make all open DBClient objects work online |
boolean |
goOnline(boolean on)
attempts to change the online/offline status |
boolean |
isOnline()
returns whether or not client is currently online |
void |
leaveGroup(java.lang.String leaveName,
java.lang.String userName)
|
int |
lookupISFID(int pngID)
Looks up the notation id of the ISF version of a notation, given the id of the PNG value |
void |
lookupReference(Notation not)
|
static void |
main(java.lang.String[] args)
Test bed for DBClient implementation |
void |
markAlerted(java.lang.String userName,
Notation viewed)
Mark the specified notation as read in the bigbrother logging table |
void |
modifyGroupAdmin(java.lang.String groupName)
|
int |
postNewBookmark(Notation.AnnotationType bookmarkType,
java.lang.String name,
java.lang.String author,
java.lang.String url,
java.lang.String addressStart,
java.lang.String addressEnd)
Creates a new bookmark with the specified parameters. |
int |
postNotation(java.lang.String userName,
java.lang.String theTable,
Notation theNotation)
Post a notation to a document. |
java.sql.ResultSet |
preparedPostNotation(java.lang.String userName,
java.lang.String theTable,
Notation theNotation)
Creates a prepared statement and calls preparedQuery
to post the Notation. |
java.sql.ResultSet |
preparedQuery(java.lang.String statement,
java.util.ArrayList info)
Takes a string and an arraylist of statement info objects to build and execute a stored procedure using a callable statement |
boolean |
preparedQuery(java.lang.String sqlString,
Notation theNotation)
Takes a String and a Notation , creates a prepared statement out of them,
and executes, returning a boolean. |
private void |
printSQLError(java.sql.SQLException e)
Prints error information about an SQLException. |
java.sql.ResultSet |
query(java.lang.String statement)
Takes a String and executes it as an SQL query that returns a ResultSet All queries should use query( String ) or updateQuery( String ) to enable offline (local) database access. |
void |
removeMember(java.lang.String memberName,
java.lang.String groupName)
|
static java.lang.String |
replaceSingleQuotes(java.lang.String s)
Return a string which is a copy of the parameter, with all single quotes escaped as "''" |
java.util.List<java.lang.String> |
requestBookList(java.lang.String courseID)
Retrieves a list of book URLs for the given course |
java.util.List<java.lang.String> |
requestEnrolledIn(java.lang.String userName)
Returns a list of courses that the current user is enrolled in |
java.util.List<java.lang.String> |
requestFieldList(java.lang.String userName,
java.lang.String theTable)
Query the server for a list of valid Criteria fields. |
int |
requestFontSize(java.lang.String userName)
|
java.util.Vector |
requestGroupList()
|
java.util.Vector |
requestGroupMembers(java.lang.String groupName)
|
java.util.Vector |
requestGroupMembership(java.lang.String userName)
Send a request to the server to retrieve the name and ID of all the groups to which a particular user belongs. |
java.util.Vector |
requestGroupNames(java.lang.String userName)
|
java.util.Vector |
requestGroupNotationPreferences(java.lang.String userName)
Get the group view preferences for the specified user's notations |
java.lang.String |
requestHighlighterColor(java.lang.String userName,
java.lang.String highlighterName)
|
int |
requestIsReference(java.lang.String type,
java.lang.String viewMode,
boolean deft)
|
java.util.Vector |
requestLeaveNames(java.lang.String userName)
|
java.util.Vector |
requestMyManagedGroups(java.lang.String userName)
|
int |
requestNotationCount(java.lang.String userName,
java.lang.String theTable,
Criteria selectCriteria)
Query the server for a count of the number of notations on a document. |
java.util.Vector<Notation> |
requestNotationDownload(java.lang.String userName,
java.lang.String theTable,
Criteria selectCriteria,
Criteria retrieveCriteria)
Send a request to the server to download all notations that match the given criteria, retrieving only the fields indicated by retrieveCriteria. |
Notation |
requestNotationFromId(int notationId)
|
int |
requestNotationsEnabled(java.lang.String userName)
Send a request to the server to retrieve the value of the enable notations column for the specified user |
java.util.Set<java.lang.Integer> |
requestNotationsVisited(java.lang.String userName)
|
java.util.Vector |
requestNotationTypes(boolean displayed)
|
java.util.Vector |
requestPagesInRange(java.lang.String userName,
java.lang.String startDate,
java.lang.String endDate)
|
java.util.Vector |
requestShare(int id,
int isUser)
|
java.util.ArrayList<TabInfo> |
requestTabPositions(java.lang.String userName)
Retrieves and removes the stored tab positions from the user's last use of the book. |
java.util.Vector |
requestTarget(int id,
int isUser)
|
java.util.Vector |
requestTargetNotations(java.lang.String userName,
int all)
Send a request to the server to download all notations targeted to the specified user using the GetTargetNotations stored procedure to adjust the list according to share and view preferences |
java.util.Vector |
requestUserList(java.lang.String courseID)
Send a request to the server to retrieve a particular user's users and their associated userIDs |
java.util.Vector |
requestUserNotationPreferences(java.lang.String userName,
java.lang.String course)
Get the user view preferences for the specified user's notations |
java.util.Vector<Notation> |
requestViewableNotations(java.lang.String url,
java.lang.String userName)
returns viewable notations for the specified URL regardless of date range |
java.util.Vector |
requestViewableNotations(java.lang.String url,
java.lang.String userName,
java.lang.String startDate,
java.lang.String endDate)
|
Notation |
requestViewingPreferences(java.lang.String userName)
Send a request to the server to retrieve the name of all the viewing prefernces based on the current available types |
java.util.Vector |
requestViewModes(java.lang.String type)
|
java.util.Hashtable<ApplicationPreferences,java.lang.Object> |
retrieveApplicationPrefs(java.lang.String user)
retrieves user's ApplicationPrefs preferences from the database |
boolean |
retrieveDiagram(int notationId)
Downloads the Diagram corresponding to notationID as a file named notationID.png
into the temporary directory |
void |
rollbackTransaction()
Executes a rollback transaction statement. |
void |
runDBSyncAgent()
Synchronize the online and offline databases. |
private void |
selectConnection()
Selects the best connection to use |
void |
setAutoCommitMode(boolean isAutoCommit)
Sets the auto-commit mode of the JDBC connection associated with this client. |
static void |
setDefaultTransactionIsolationLevel(int level)
|
static void |
setFETCH_SIZE(int fetch_size)
|
void |
setNextConnection(java.sql.Connection c)
Method to setup a Connection to be used next. |
static java.util.List |
setOnline(boolean on)
requests that all active DBClient objects set their online status to on |
void |
setQuickLaunchPrefs(java.lang.String user,
java.util.Map prefs)
stores user's QuickLaunch preferences into the database |
private java.sql.Connection |
setupDBConnection(java.lang.String host)
Connect to a provided host |
void |
setupInkAnnotation(int isfID,
int pngID)
|
void |
setVerbose(boolean v)
Turn on or off extra command-line information. |
void |
synchronize()
|
void |
updateAnnotation(Notation note)
updates the annotation contained in note. |
void |
updateApplicationPrefs(java.lang.String user,
Notation note)
stores user's ApplicationPrefs preferences into the database |
void |
updateDiagram(Notation n)
|
int |
updateNotation(java.lang.String userName,
java.lang.String theTable,
Criteria selectCriteria,
Notation theNotation)
Update an existing notation. |
int |
updatePassword(java.lang.String userName,
java.lang.String pwd)
Update a user's password |
void |
updateQuery(java.lang.String statement)
Takes a String and executes it as an SQL update query Identical to query( String ) but does not return a ResultSet All queries should use query( String ) or updateQuery( String ) to enable offline (local) database access. |
boolean |
userNameExists(java.lang.String userName)
Determines whether a given user name exists in the database |
static java.util.List |
workOffline()
|
static java.util.List |
workOnline()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int FETCH_SIZE
private java.lang.String name
private java.sql.Connection con
private java.sql.Connection nextCon
private java.sql.Connection offlineCon
private boolean verbose
private boolean online
private boolean tryNextCon
private DBClientOnlineTest onlineTester
private java.util.Vector listeners
private int reconnectTime
private static java.lang.String host
private static int dbVersion
private static java.lang.String driverName
private static java.lang.String jdbcString
private static int defaultTransactionIsolationLevel
private static java.util.Vector allClients
Constructor Detail |
---|
public DBClient()
public DBClient(boolean verbose)
public DBClient(boolean verbose, java.lang.String name)
verbose
- indicates whether the client should output status
information and errors to the command line.Method Detail |
---|
public static void setDefaultTransactionIsolationLevel(int level)
public static int getDefaultTransactionIsolationLevel()
public boolean isOnline()
public boolean goOnline(boolean on)
on
- whether we should work online or not
public boolean goOnline()
public boolean goOffline()
public static java.util.List setOnline(boolean on)
on>
- true if requesting the client to work online; false
if requesting offline operation
public static java.util.List workOnline()
public static java.util.List workOffline()
public void setVerbose(boolean v)
v
- indicates whether the client should output extra informationpublic int computeIdentity(java.lang.String type)
type
- The type of identity value being generated.
This is not really used, but could be used to track what
has happened
public java.util.ArrayList<TabInfo> requestTabPositions(java.lang.String userName)
userName
- the name of the user to load tab positions forpublic java.util.List<java.lang.String> requestFieldList(java.lang.String userName, java.lang.String theTable)
NotationClient
requestFieldList
in interface NotationClient
theTable
- the URL location of the server.public int requestNotationCount(java.lang.String userName, java.lang.String theTable, Criteria selectCriteria)
NotationClient
requestNotationCount
in interface NotationClient
theTable
- the table to retrieve Notations fromselectCriteria
- the criteria used to select notations to count.
public java.util.Vector<Notation> requestViewableNotations(java.lang.String url, java.lang.String userName)
requestViewableNotations
in interface NotationClient
url
- the url of the page for which the notations are desireduserName
- the name of the user for which notations are retrievedpublic java.util.Vector requestViewableNotations(java.lang.String url, java.lang.String userName, java.lang.String startDate, java.lang.String endDate)
public java.util.Vector requestTargetNotations(java.lang.String userName, int all)
NotationClient
requestTargetNotations
in interface NotationClient
userName
- the name of the user for which notations are retrievedall
- determines whether to retrieve all targeted notations (1)
or just those that have not yet been viewed (0)public Notation requestNotationFromId(int notationId)
public void lookupReference(Notation not)
public java.util.Vector<Notation> requestNotationDownload(java.lang.String userName, java.lang.String theTable, Criteria selectCriteria, Criteria retrieveCriteria)
NotationClient
requestNotationDownload
in interface NotationClient
theTable
- the table to retrieve Notations from.selectCriteria
- the criteria used to select notations to count.retrieveCriteria
- the criteria used to specify which parts of the
selected notations are downloaded.
public int requestNotationsEnabled(java.lang.String userName)
NotationClient
requestNotationsEnabled
in interface NotationClient
userName
- the name of the user
public java.util.Vector requestGroupList()
public java.util.Vector requestUserList(java.lang.String courseID)
NotationClient
requestUserList
in interface NotationClient
public java.util.Set<java.lang.Integer> requestNotationsVisited(java.lang.String userName)
public Notation requestViewingPreferences(java.lang.String userName)
NotationClient
requestViewingPreferences
in interface NotationClient
userName
- the username for which the preferences are downloaded
public int requestFontSize(java.lang.String userName)
public java.util.Vector requestNotationTypes(boolean displayed)
public java.util.Vector requestViewModes(java.lang.String type)
public int requestIsReference(java.lang.String type, java.lang.String viewMode, boolean deft)
public java.util.Vector requestShare(int id, int isUser)
public java.util.Vector requestTarget(int id, int isUser)
public java.util.Vector requestGroupNames(java.lang.String userName)
public java.util.Vector requestLeaveNames(java.lang.String userName)
public java.util.Vector requestGroupMembership(java.lang.String userName)
NotationClient
requestGroupMembership
in interface NotationClient
userName
- the user name of the person using the client
public java.util.Vector requestMyManagedGroups(java.lang.String userName)
public java.util.Vector requestGroupMembers(java.lang.String groupName)
public void addMember(java.lang.String memberName, java.lang.String groupName)
public void removeMember(java.lang.String memberName, java.lang.String groupName)
public void modifyGroupAdmin(java.lang.String groupName)
public int createNewGroup(java.lang.String newGroupName, java.lang.String userName)
public void leaveGroup(java.lang.String leaveName, java.lang.String userName)
public java.util.Vector requestGroupNotationPreferences(java.lang.String userName)
NotationClient
requestGroupNotationPreferences
in interface NotationClient
userName
- the user name for which the preferences will be retrieved
public java.util.Vector requestUserNotationPreferences(java.lang.String userName, java.lang.String course)
NotationClient
requestUserNotationPreferences
in interface NotationClient
userName
- the user name for which the preferences will be retrievedcourse
- the course ID for the current class
public java.lang.String requestHighlighterColor(java.lang.String userName, java.lang.String highlighterName)
public java.util.Vector requestPagesInRange(java.lang.String userName, java.lang.String startDate, java.lang.String endDate)
public int postNotation(java.lang.String userName, java.lang.String theTable, Notation theNotation)
NotationClient
postNotation
in interface NotationClient
theTable
- the table to retrieve Notations from.theNotation
- the Notation to post, which will be assigned an ID
by the server.
public void updateAnnotation(Notation note)
note
- a Notation object describing the fields of the
notation to be updatedpublic void markAlerted(java.lang.String userName, Notation viewed)
NotationClient
markAlerted
in interface NotationClient
userName
- the name of the userviewed
- the notation object that we wish to mark as viewedpublic int updatePassword(java.lang.String userName, java.lang.String pwd)
NotationClient
updatePassword
in interface NotationClient
userName
- the name of the userpwd
- the value to which the password is changed
public int updateNotation(java.lang.String userName, java.lang.String theTable, Criteria selectCriteria, Notation theNotation)
NotationClient
updateNotation
in interface NotationClient
theTable
- the table to retrieve Notations from.selectCriteria
- determines which notation is updatedtheNotation
- the new Notation object.
public void deleteNotation(java.lang.String userName, java.lang.String theTable, Criteria selectCriteria)
NotationClient
deleteNotation
in interface NotationClient
theTable
- the table to retrieve Notations from.selectCriteria
- determines which notation is updatedpublic boolean closeConnection()
NotationClient
closeConnection
in interface NotationClient
public int getLastId()
private java.sql.Connection setupDBConnection(java.lang.String host)
host
- The host to connect to
public static java.lang.String replaceSingleQuotes(java.lang.String s)
s
- The string to escape
public static Criteria buildCriteria(java.lang.Object[] args)
an
- array containing key,value pairs for the Criteria
public static Notation buildNotation(java.lang.Object[] args)
an
- array containing key,value pairs for the Notation
public java.sql.ResultSet preparedPostNotation(java.lang.String userName, java.lang.String theTable, Notation theNotation)
preparedQuery
to post the Notation. This function is used for instances of
Diagram
to allow posting of their binaray data.
userName
- the name of the author of theNotation.theTable
- the name of the database table that theNotation is to be posted into.theNotation
- the Notation
to be posted into the database.
ResultSet
corresponding to the new column in theTable.public void updateDiagram(Notation n)
public boolean retrieveDiagram(int notationId)
Diagram
corresponding to notationID as a file named notationID.png
into the temporary directory
notationId
- The ID of the Diagram
to be downloaded.
Diagram
was sucessfully downloaded.public java.sql.ResultSet executeString(java.lang.String sqlstmt)
a
- String that is executedpublic boolean preparedQuery(java.lang.String sqlString, Notation theNotation)
Notation
, creates a prepared statement out of them,
and executes, returning a boolean.
This method enables offline (local) database access.
sqlString
- The String used as a basis for the PreparedStatement
.theNotation
- The Notation
to be stored into the database.
public java.sql.ResultSet query(java.lang.String statement)
a
- String that is executed
public void updateQuery(java.lang.String statement)
a
- String that is executedpublic java.sql.ResultSet preparedQuery(java.lang.String statement, java.util.ArrayList info)
statement
- the callable statement which may contain one or more '?' charactersinfo
- the arraylist containing StatementInfo objects to replace the '?'s in the string
private void printSQLError(java.sql.SQLException e)
The
- SQLException to print.public void setNextConnection(java.sql.Connection c)
A
- set up Connection object.private void selectConnection()
public void runDBSyncAgent()
public void fireDatabaseEvent(DatabaseEvent de)
de
- the DatabaseEvent to send.public void addDatabaseEventListener(java.lang.Object listener)
listener
- the listener object.public java.lang.String getName()
public java.util.List getAnnotationURLS()
public java.util.Map getAllowableNotations()
public java.util.Map getQuickLaunchPrefs(java.lang.String user)
user:
- The user whose preferences are to be retrieved
public void setQuickLaunchPrefs(java.lang.String user, java.util.Map prefs)
user
- the user whose preferences are being storedprefs
- a Map containing the user preferences; the
key of the entries are NotationTypes, and values are ViewModespublic void updateApplicationPrefs(java.lang.String user, Notation note)
user
- the user whose preferences are being storednote
- the Notation object containing the preferences Hashtable
in a storeable byte formatpublic java.util.Hashtable<ApplicationPreferences,java.lang.Object> retrieveApplicationPrefs(java.lang.String user)
user
- the user whose preferences are being stored
eTextReader.AplicationPreferences
public java.lang.String computeUniqueNotationSubject(java.lang.String candidate, java.lang.String userName)
candidate
- the string to look for in the databaesuserName
- the user name of the notation to be created
public void setupInkAnnotation(int isfID, int pngID)
public int lookupISFID(int pngID)
public boolean bookmarkExists(Notation n)
n
- the notation to look for a bookmark for
public int postNewBookmark(Notation.AnnotationType bookmarkType, java.lang.String name, java.lang.String author, java.lang.String url, java.lang.String addressStart, java.lang.String addressEnd)
bookmarkType
- name
- author
- addressStart
- addressEnd
-
postNotation(String, String, Notation)
public Notation getAnnotationBookmark(Notation n)
n
- the annotation to look for a bookmark
public int getNumberOfPosts(Notation disc)
public java.util.List<java.lang.String> requestBookList(java.lang.String courseID)
courseID
- the courseID to retrieve books for
public java.util.List<java.lang.String> requestEnrolledIn(java.lang.String userName)
userName
- the user to look up enrollment for
public void setAutoCommitMode(boolean isAutoCommit) throws java.sql.SQLException
isAutoCommit
- if true, then each statement executed by the
connection is immediately committed; if false, then the user is
responsible for managing connections
java.sql.SQLException
public void beginTransaction()
setAutoCommitMode(boolean)
public void commitTransaction()
setAutoCommitMode(boolean)
public void rollbackTransaction()
setAutoCommitMode(boolean)
public void synchronize()
public static void main(java.lang.String[] args)
public static int getFETCH_SIZE()
public static void setFETCH_SIZE(int fetch_size)
public void clearLogRecords(java.lang.String userName)
userName
- the user whose log records should be clearedpublic void clearApplicationPreferences(java.lang.String userName)
userName
- the user whose application preferences should be clearedpublic void clearUserCourses(java.lang.String userName)
userName
- the user whose course records should be clearedpublic void clearCourseBooks(java.lang.String courseID)
courseID
- the course to remove books forpublic void clearUserAnnotations(java.lang.String author, Notation.AnnotationType type)
author
- the name of the author of the annotationtype
- thepublic boolean addUserToCourse(java.lang.String userName, java.lang.String courseName)
userName
- the user to addcourseName
- the course to add the user to
public boolean addBookToCourse(java.lang.String courseID, java.lang.String bookURL)
courseID
- the course to which the book should be addedbookURL
- the URL where the OEBPackageFile describing the book can be found
public boolean userNameExists(java.lang.String userName)
userName
- the user name to check
public DBClient.NEW_USER_STATUS createNewUser(java.lang.String userName, java.lang.String password, PasswordPolicy policy)
userName
- the user name for the new userpassword
- a plaintext password for the userPasswordPolicy
-
public boolean deleteUser(java.lang.String userName)
userName
- the user to delete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |