| Package | Description | 
|---|---|
| org.sourceforge.vlibrary.user.actions | |
| org.sourceforge.vlibrary.user.dao | |
| org.sourceforge.vlibrary.user.exceptions | |
| org.sourceforge.vlibrary.user.logic | 
| Modifier and Type | Method and Description | 
|---|---|
protected org.apache.struts.action.ActionForward | 
LibraryAction.standardForward(org.apache.struts.action.ActionMapping mapping,
               javax.servlet.http.HttpServletRequest request,
               ArrayList<LibraryException> errors)
Standard forward determination utility method
 Forwards to SUCCESS if errors ArrayList is empty, else to ERROR 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
BookDAO.addAuthor(Book book,
         Author author)
Adds  
author to the authors of book. | 
void | 
BookDAO.addSubject(Book book,
          Subject subject)
Adds  
subject to the subjects associated with
  book. | 
ArrayList<Book> | 
BookDAO.authorSearch(String authorLastName)
Returns a list of  
Book instances whose author lists contain
 an author with the given last name. | 
boolean | 
BookDAO.bookExists(long book)
Determines whether or not the ID provided corresponds to a book in the
 library. 
 | 
void | 
LibraryTransactionDAO.cancelRequest(long reader,
             String isbn)
Cancels a pending request by a reader for a book 
 | 
int | 
BookDAO.countCopies(String isbn)
Counts the number of copies of the book, checked in or out, any location. 
 | 
boolean | 
ReaderDAOSpringJDBCImpl.deskPhoneExists(String deskphone)
Checks to see if a Reader with a specified deskphone exists in the database 
 | 
boolean | 
ReaderDAO.deskPhoneExists(String deskPhone)  | 
ArrayList | 
BookDAO.dump()
Returns a list of all books in the library. 
 | 
Long | 
AuthorDAOSpringJDBCImpl.findAuthorByFirstLastName(Author author)  | 
Long | 
AuthorDAO.findAuthorByFirstLastName(Author author)
Finds the id of the given  
Author object in the database,
 using the firstName and lastName properties
 to lookup the record. | 
ArrayList<Author> | 
BookDAO.getAuthors(Book book)
Returns an ArrayList consisting of the authors of the given book. 
 | 
long[] | 
LibraryTransactionDAO.getCopies(String isbn,
         long location)
Returns a list of ids of copies of the book with the given isbn
 whose last known location is the given location. 
 | 
String | 
BookDAO.getIsbn(long bookID)
Gets the ISBN of the book with the given ID if there is such a book,
 null otherwise. 
 | 
long | 
LibraryTransactionDAO.getLastLocation(long book)
Queries the transaction table to determine the last location where a book
 was checked in or out. 
 | 
String | 
LocationDAO.getLocationDescription(long id)
Gets the description of the dropoff location with the given ID 
 | 
Long | 
LocationDAO.getLocationIdByDescription(Location location)
Looks up a location in the database by its description. 
 | 
ArrayList<Location> | 
LocationDAO.getLocations()
Retrieves all locations from the database 
 | 
long | 
LibraryTransactionDAO.getPossessor(long book)
Queries the transaction table to determine the whereabouts of a book. 
 | 
long | 
ReaderDAOSpringJDBCImpl.getReaderID(String firstName,
           String lastName)
Looks up the ID of a reader from first and last name. 
 | 
long | 
ReaderDAO.getReaderID(String firstName,
           String lastName)  | 
ArrayList | 
ReaderDAOSpringJDBCImpl.getReaders()
Retrive all Readers from the database 
 | 
ArrayList | 
ReaderDAO.getReaders()  | 
List<Long> | 
LibraryTransactionDAO.getRequestors(String isbn,
             long location)
Retrieves a List of requesters for a book (identified by isbn) in a given location. 
 | 
Long | 
SubjectDAOSpringJDBCImpl.getSubjectIdByDescription(Subject subject)
Looks up a subject in the database by its description. 
 | 
Long | 
SubjectDAO.getSubjectIdByDescription(Subject subject)  | 
ArrayList | 
SubjectDAOSpringJDBCImpl.getSubjects()
Retrieves all subjects from the database 
 | 
ArrayList | 
SubjectDAO.getSubjects()
Retrieves all subjects from the database 
 | 
ArrayList<Subject> | 
BookDAO.getSubjects(Book book)
Returns an ArrayList consisting of the subject classifications
 associated with the the given book. 
 | 
List | 
LibraryTransactionDAO.getTransactions(long book)
Gets the entire transaction history for a book and returns
 a List of LibraryTransaction objects or empty if none found 
 | 
void | 
AuthorDAOSpringJDBCImpl.insert(Author author)  | 
void | 
AuthorDAO.insert(Author author)
Inserts the given author into the database. 
 | 
Book | 
BookDAO.insert(Book book)
Inserts a book into the database and returns the result of retrieving
 the inserted book. 
 | 
Location | 
LocationDAO.insert(Location location)
Inserts a location into the database and updates the ID of the
 input location parameter. 
 | 
void | 
ReaderDAOSpringJDBCImpl.insert(Reader reader)
Inserts Reader into the database. 
 | 
void | 
ReaderDAO.insert(Reader reader)
Inserts *this* into the database. 
 | 
Subject | 
SubjectDAOSpringJDBCImpl.insert(Subject subject)
Inserts a subject into the database and updates the ID of the
 input subject parameter. 
 | 
Subject | 
SubjectDAO.insert(Subject subject)
Inserts *this* into the database. 
 | 
void | 
AuthorDAOSpringJDBCImpl.insertNewAuthor(Author author)
Insert a new Author into the DB. 
 | 
void | 
LocationDAO.insertNewLocationRecord(Location location)
Inserts a new location record into the database, using description field
 in location input parameter. 
 | 
void | 
SubjectDAOSpringJDBCImpl.insertNewSubjectRecord(Subject subject)
Inserts a new subject record into the database, using description field
 in subject input parameter. 
 | 
ArrayList | 
BookDAO.ownerSearch(long owner)
Returns a list of books owned by the reader with the given ID. 
 | 
void | 
LibraryTransactionDAO.processCheckin(long reader,
              long book,
              long location)
Records a book checkin in the transaction table. 
 | 
void | 
LibraryTransactionDAO.processCheckout(long reader,
               long book,
               String isbn,
               long location)
Records a book checkout in the transaction table. 
 | 
void | 
LibraryTransactionDAO.processRequest(long reader,
              long book,
              long location)
Records book request transaction. 
 | 
boolean | 
ReaderDAOSpringJDBCImpl.readerExists(long id)
Checks to see if a Reader id exists in the database 
 | 
boolean | 
ReaderDAO.readerExists(long reader)  | 
boolean | 
ReaderDAOSpringJDBCImpl.readerExists(String deskphone)
Checks to see if a Reader with a specified deskphone exists in the database 
 | 
boolean | 
ReaderDAOSpringJDBCImpl.readerExists(String firstName,
            String lastName)
Checks to see if a reader with the given first and last name is
 registered in the database. 
 | 
boolean | 
ReaderDAO.readerExists(String firstName,
            String lastName)  | 
boolean | 
LibraryTransactionDAO.requestPending(long reader,
              long book)
Returns whether a reader has a pending request for a particular book (id) 
 | 
void | 
ReaderDAOSpringJDBCImpl.resetPassword(String user,
             String newPwd)
Resets user's password 
 | 
void | 
ReaderDAO.resetPassword(String user,
             String newPwd)  | 
LibraryTransaction | 
LibraryTransactionDAO.retrieve(long id)
Retrieves a LibraryTransaction using its transaction id. 
 | 
Book | 
BookDAO.retrieve(long bookID)
Retrieves the book with the given ID, if there is such a book;
 otherwise Null. 
 | 
Reader | 
ReaderDAOSpringJDBCImpl.retrieve(Reader rd)
Retrieve Reader from the database 
 | 
Reader | 
ReaderDAO.retrieve(Reader rd)  | 
Book | 
BookDAO.retrieve(String bookID)
Retrieves the book having the ID represented by the input string, if
 there is such a book; otherwise Null. 
 | 
Reader | 
ReaderDAOSpringJDBCImpl.retrieveByFirstLastName(String firstName,
                       String lastName)
Retrieve Reader by first and last name from the database 
 | 
Reader | 
ReaderDAOSpringJDBCImpl.retrieveByGenericCriteria(String sqlString,
                         Object[] criteria)
Retrieve Reader using a parameterized query. 
 | 
Book | 
BookDAO.retrieveByGenericCriteria(String sqlString,
                         Object[] criteria)
Retrieve Book by unique criteria from the database. 
 | 
Reader | 
ReaderDAOSpringJDBCImpl.retrieveById(long id)
Retrieve Reader by id from the database 
 | 
Reader | 
ReaderDAO.retrieveById(long id)  | 
Book | 
BookDAO.retrieveByIsbn(String isbn)
Retrieves the book having the given ISBN,
 there is such a book; otherwise Null. 
 | 
Reader | 
ReaderDAOSpringJDBCImpl.retrieveByPhone(String deskphone)
Retrieve Reader by deskphone from the database 
 | 
Reader | 
ReaderDAO.retrieveByPhone(String deskPhone)  | 
Reader | 
ReaderDAOSpringJDBCImpl.retrieveByUid(String uid)
Retrieve Reader by uid from the database 
 | 
Reader | 
ReaderDAO.retrieveByUid(String uid)  | 
void | 
AuthorDAOSpringJDBCImpl.setAuthorIds(ArrayList authors)  | 
void | 
AuthorDAO.setAuthorIds(ArrayList authors)
Walks input ArrayList, looking up and setting ID properties for
 each Author in the list. 
 | 
void | 
BookDAO.setAuthors(Book book,
          ArrayList<Author> authors)
Sets the list of authors associated with the given book. 
 | 
void | 
LocationDAO.setLocationIds(ArrayList<Location> locations)
Walks input ArrayList, looking up and setting ID properties for
 each Location in the list. 
 | 
void | 
SubjectDAOSpringJDBCImpl.setSubjectIds(ArrayList subjects)
Walks input ArrayList, looking up and setting ID properties for
 each Subject in the list. 
 | 
void | 
SubjectDAO.setSubjectIds(ArrayList subjects)
Walks input ArrayList pf  
Subject instances, looking up and
 setting ID properties for each Subject in the list. | 
void | 
BookDAO.setSubjects(Book book,
           ArrayList<Subject> subjects)
Sets the list of subjects associated with the given book. 
 | 
ArrayList<Book> | 
BookDAO.subjectAndSearch(ArrayList subjects)
Returns a list of  
Book instances association with all of
 the subjects in the input subjects array. | 
ArrayList<Book> | 
BookDAO.subjectOrSearch(ArrayList<Subject> subjects)
Returns a list of  
Book instances association with all of
 the subjects in the input subjects array. | 
ArrayList | 
BookDAO.titleSearch(String title)
Returns a list of books with the given title. 
 | 
boolean | 
ReaderDAOSpringJDBCImpl.uidExists(String uid)
Checks to see if a Reader uid exists in the database 
 | 
boolean | 
ReaderDAO.uidExists(String uid)  | 
void | 
BookDAO.update(Book book)
Updates  
book in the database. | 
void | 
ReaderDAOSpringJDBCImpl.update(Reader reader)
Update Reader in the database, using the UID of the Reader to
 locate the database record. 
 | 
void | 
ReaderDAO.update(Reader reader)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
BookAwaitingPickupException
Request already submitted for book awaiting pickup 
 | 
class  | 
BookNotFoundException
Book not found exception 
 | 
class  | 
DuplicateReaderException  | 
class  | 
DuplicateRequestException
Duplicate Book Request Exception 
 | 
class  | 
ReaderNotFoundException
Reader not found exception 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ArrayList<Book> | 
LibraryManager.authorSearch(String authorLastName)
Returns a list including all {org.sourceforge.vlibrary.user.domain.Author}s with the the given
 last name. 
 | 
boolean | 
LibraryManager.bookExists(long book)
Determines whether or not there is a book with the given id. 
 | 
void | 
LibraryManager.cancelRequest(long reader,
             long book)
Cancels a pending request for a book and sends confirmation email to
 the reader canceling the request. 
 | 
void | 
LibraryManager.createAuthorIds(ArrayList<Author> authors)
Walks input ArrayList, looking up and setting ID properties for
 each Author in the list. 
 | 
Book | 
LibraryManager.createBook(Book book,
          ArrayList<Subject> subjects,
          ArrayList<Author> authors)
Creates a book in the database and associates the given lists of
 subjects and authors with the book. 
 | 
void | 
LibraryManager.createBookAuthors(Book book,
                 ArrayList<Author> authors)
Sets the authors for the given book. 
 | 
void | 
LibraryManager.createBookSubjects(Book book,
                  ArrayList<Subject> subjects)
Sets the subjects for the given book. 
 | 
void | 
LibraryManager.createSubjectIds(ArrayList<Subject> subjects)
Walks the input ArrayList of  
Subject instances, looking up and
 setting ID properties for each Subject in the list. | 
boolean | 
LibraryManager.deskPhoneExists(String deskPhone)
Determines whether or not there is a reader with the given
 desk phone. 
 | 
ArrayList<Book> | 
LibraryManager.dump()
Returns an ArrayList of  
Book instances consisting of all books
 in the library. | 
void | 
LibraryManager.forgotPassword(String uid,
              String email)
Validates that  
uid exists and has email as
 email address of record, then resets the associated password to a
 randomly generated string and sends the reader an email with the new
 password. | 
ArrayList<Author> | 
LibraryManager.getAuthors(Book book)
Returns an ArrayList of Author} instances including the authors
 of the given book. 
 | 
ArrayList<Location> | 
LibraryManager.getLocations()
Returns an ArrayList including all currently defined locations. 
 | 
long | 
LibraryManager.getPossessor(long book)
Queries the transaction table to determine the whereabouts of a book. 
 | 
long | 
LibraryManager.getReaderID(String firstName,
           String lastName)
Returns the ID of a reader with the given first and last name, if
 there is such a reader, throwing  
LibraryException if
 there is no reader with the given name. | 
ArrayList<Reader> | 
LibraryManager.getReaders()
Returns an  
ArrayList of Reader instances including
 all currently registered Virtual Library readers. | 
ArrayList<Subject> | 
LibraryManager.getSubjects()
Returns an ArrayList including all subjects currently defined in the
 Virtual Library. 
 | 
ArrayList<Subject> | 
LibraryManager.getSubjects(Book book)
Returns an ArrayList including all subjects currently defined in the
 Virtual Library. 
 | 
List<LibraryTransaction> | 
LibraryManager.getTransactions(long book)
Gets the entire transaction history for a book and returns
 an ArrayList of  
LibraryTransaction instances. | 
void | 
LibraryManager.insertReader(Reader reader)
Inserts a record corresponding to the given reader into the database. 
 | 
boolean | 
LibraryManager.isUserIDValid(long id)
Determines whether or not the given ID corresponds to a reader. 
 | 
boolean | 
LibraryManager.isUserIDValid(String UID)
Determines whether or not the given UID (user id) belongs to a reader. 
 | 
boolean | 
LibraryManager.isUserValidByPhone(String phoneNo)
Determines whether or not the supplied desk phone number belongs to a
 reader. 
 | 
Map | 
LibraryManager.lookupBook(String isbn)
Looks up the book indicated by the ISBN with SRU/SRW provider, returning
 a Map of key-value pairs expressing attributes of the book. 
 | 
ArrayList<Book> | 
LibraryManager.ownerSearch(long owner)
Returns an ArrayList of  
Book instances consisting of all books
 that are owned by the reader with the given ID. | 
void | 
LibraryManager.processCheckin(long reader,
              long book,
              long location)
Processes book checkin transaction. 
 | 
void | 
LibraryManager.processCheckout(long reader,
               long book,
               long location)
Processes book checkout transaction. 
 | 
BookMoveTransaction | 
LibraryManager.processExchange(long reader,
               long book,
               String transactionType,
               long location)
Processes a book checkin or checkout transaction. 
 | 
boolean | 
LibraryManager.readerExists(long id)
Determines whether or not there is a reader with the given ID. 
 | 
boolean | 
LibraryManager.readerExists(String firstName,
            String lastName)
Determines whether or not there is a reader with the given first and
 last name. 
 | 
boolean | 
LibraryManager.requestPending(long reader,
              long book)
Determines whether or not a reader has a request pending for a book. 
 | 
void | 
LibraryManager.resetPassword(String user,
             String newPwd)
Resets a user's password. 
 | 
Book | 
LibraryManager.retrieveBook(long bookID)
Returns the book with the given ID, or  
null if there is no
 such book. | 
Reader | 
LibraryManager.retrieveByUid(String uid)
Retrieves a  
Reader by user id (UID). | 
long | 
LibraryManager.retrieveIDByPhone(String phoneNo)
Returns the ID of the reader who has the given desk phone. 
 | 
Reader | 
LibraryManager.retrieveReader(long id)
Returns a fully populated  
Reader corresponding to the
 reader having the given ID. | 
LibraryTransaction | 
LibraryManager.retrieveTransaction(long id)
Returns the  
LibraryTransaction with the given transaction id. | 
ArrayList<Book> | 
LibraryManager.subjectAndSearch(ArrayList subjects)
 | 
ArrayList<Book> | 
LibraryManager.subjectOrSearch(ArrayList<Subject> subjects)
 | 
ArrayList<Book> | 
LibraryManager.titleSearch(String title)
Returns an ArrayList of  
Book instances consisting of all books
 having the given title. | 
void | 
LibraryManager.updateBook(Book book)
Updates the database record associated with  
book with the
 properties that the given instance has. | 
void | 
LibraryManager.updateReader(Reader reader)
Updates the database record associated with  
reader with the
 properties that the given instance has. | 
Copyright © 2003-2017 The Virtual Library Team. All Rights Reserved.