|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotationClient
An Interface between our browser and our notation server.
Criteria
,
Notation
Method Summary | |
---|---|
boolean |
closeConnection()
Permanently close the connection to the database for this client. |
void |
deleteNotation(java.lang.String userName,
java.lang.String theTable,
Criteria selectCriteria)
Delete an existing notation. |
void |
markAlerted(java.lang.String userName,
Notation viewed)
Mark the specified notation as read in the bigbrother logging table |
int |
postNotation(java.lang.String userName,
java.lang.String theTable,
Notation theNotation)
Post a notation to a document. |
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. |
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 |
requestGroupNotationPreferences(java.lang.String userName)
Get the group view preferences for the specified user's notations |
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 |
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. |
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.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 |
requestViewableNotations(java.lang.String url,
java.lang.String userName)
Send a request to the server to download all available notations for the specified user using the GetViewableNotations stored procedure to adjust the list according to share and view preferences |
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 |
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 |
Method Detail |
---|
java.util.List<java.lang.String> requestFieldList(java.lang.String userName, java.lang.String theTable)
userID
- the ID of the person using the client.theTable
- the URL location of the server.int requestNotationCount(java.lang.String userName, java.lang.String theTable, Criteria selectCriteria)
userID
- the ID of the person using the client.theTable
- the table to retrieve Notations fromselectCriteria
- the criteria used to select notations to count.
java.util.Vector requestViewableNotations(java.lang.String url, java.lang.String userName)
url
- the url of the page for which the notations are desireduserName
- the name of the user for which notations are retrievedjava.util.Vector requestTargetNotations(java.lang.String userName, int all)
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)java.util.Vector requestNotationDownload(java.lang.String userName, java.lang.String theTable, Criteria selectCriteria, Criteria retrieveCriteria)
userID
- the ID of the person using the client.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.
int requestNotationsEnabled(java.lang.String userName)
userName
- the name of the user
Notation requestViewingPreferences(java.lang.String userName)
userName
- the username for which the preferences are downloaded
java.util.Vector requestUserList(java.lang.String courseID)
courseID
- the course to restrict user's to; if null,
no restriction is made
java.util.Vector requestGroupMembership(java.lang.String userName)
userName
- the user name of the person using the client
java.util.Vector requestGroupNotationPreferences(java.lang.String userName)
userName
- the user name for which the preferences will be retrieved
java.util.Vector requestUserNotationPreferences(java.lang.String userName, java.lang.String course)
userName
- the user name for which the preferences will be retrievedcourse
- the course ID for the current class
int postNotation(java.lang.String userName, java.lang.String theTable, Notation theNotation)
userID
- the ID of the person using the client.theTable
- the table to retrieve Notations from.theNotation
- the Notation to post, which will be assigned an ID
by the server.
void markAlerted(java.lang.String userName, Notation viewed)
userName
- the name of the userviewed
- the notation object that we wish to mark as viewedint updatePassword(java.lang.String userName, java.lang.String pwd)
userName
- the name of the userpwd
- the value to which the password is changed
int updateNotation(java.lang.String userName, java.lang.String theTable, Criteria selectCriteria, Notation theNotation)
userID
- the ID of the person using the client.theTable
- the table to retrieve Notations from.selectCriteria
- determines which notation is updatedtheNotation
- the new Notation object.
void deleteNotation(java.lang.String userName, java.lang.String theTable, Criteria selectCriteria)
userID
- the ID of the person using the client.theTable
- the table to retrieve Notations from.selectCriteria
- determines which notation is updatedboolean closeConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |