Open SiteSearch 4.1.1
Final

ORG.oclc.webz
Class ILLEmail

java.lang.Object
  |
  +--ORG.oclc.webz.Verb
        |
        +--ORG.oclc.webz.ZVerb
              |
              +--ORG.oclc.webz.ISOILL
                    |
                    +--ORG.oclc.webz.ILLEmail

public class ILLEmail
extends ISOILL

The ILLEmail class provides the capability to issue an email request for an Interlibrary Loan. ILLEmail extends the ISOILL verb, and inherits most of the processing, such as parsing and validation, from that class by using the parseParms() and validateParms() methods from that class. The ILLEmail class overrides the doILL() method of ISOILL in order to send and email with labeled items instead of a BER- encoded message. It uses the buildMsg() and email() methods to do this.

See Also:
FailurePage, SuccessPage, JavaPage, UserStateObject, ILLUserData, IllSession, Log

Fields inherited from class ORG.oclc.webz.ISOILL
iUserData, patron, txn
 
Fields inherited from class ORG.oclc.webz.ZVerb
bytesIn, bytesOut, dbGroupSearch, dbname, fmtClass, format, inputQueryInfo, numrecs, postings, ranked, recno, resultSetName, sorting, tempDb, traceMsgs, z39session, zDb, zQueryTerm, zServer, zUserData
 
Fields inherited from class ORG.oclc.webz.Verb
user, widgets
 
Constructor Summary
ILLEmail()
           
 
Method Summary
protected  String buildMsg()
          Builds the message to email, using the data already collected in the patron and txn objects.
protected  void doILL()
          Builds a message to send and then emails it, using the data already collected in the IllPatronInfo and IllTxnInfo objects.
protected  void email(String inmsg)
          E-mails a message, using the email address in patron.ILLemail, using iUserData.illSession().emailSubject, iUserData.illSession().emailFrom, and iUserData.illSession().emailMessage.
 
Methods inherited from class ORG.oclc.webz.ISOILL
parseParms, runit, runit, validateParms
 
Methods inherited from class ORG.oclc.webz.ZVerb
doAccessControl, doSort, initZUser, restoreDbState, saveDbState, saveRecs, toString
 
Methods inherited from class ORG.oclc.webz.Verb
setUpPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ILLEmail

public ILLEmail()
Method Detail

doILL

protected void doILL()
              throws FailurePage
Builds a message to send and then emails it, using the data already collected in the IllPatronInfo and IllTxnInfo objects. Bumps the ILL counter in the ILLUserData object.
Throws:
FailurePage - the ILLEmail string is invalid or connection fails
Overrides:
doILL in class ISOILL
See Also:
IllPatronInfo, IllTxnInfo, ILLUserData

email

protected void email(String inmsg)
E-mails a message, using the email address in patron.ILLemail, using iUserData.illSession().emailSubject, iUserData.illSession().emailFrom, and iUserData.illSession().emailMessage.
Parameters:
inmsg - the String object.
See Also:
IllPatronInfo, ILLUserData, IllSession

buildMsg

protected String buildMsg()
Builds the message to email, using the data already collected in the patron and txn objects.
Returns:
String the message as it will appear in the email message.
See Also:
IllPatronInfo, IllTxnInfo

Open SiteSearch 4.1.1
Final