|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pkrete.jsip2.messages.SIP2Message
com.pkrete.jsip2.messages.SIP2MessageResponse
com.pkrete.jsip2.messages.responses.SIP2PatronResponse
public abstract class SIP2PatronResponse
This abstract class is a base class of the
SIP2PatronStatusResponse and the
SIP2PatronInformationResponse
classes.
| Field Summary | |
|---|---|
protected Language |
language
Language. |
protected String |
personalName
Patron's name. |
protected PatronStatus |
status
Patron's status. |
protected boolean |
validPatron
Indicates if the patron barcode is valid. |
protected boolean |
validPatronPassword
Indicates if the patron password is valid. |
protected boolean |
validPatronPasswordUsed
Indicates if the validPatronPassword value was used in the response received from the ILS SIP server. |
protected boolean |
validPatronUsed
Indicates if the validPatron value was used in the response received from the ILS SIP server. |
| Fields inherited from class com.pkrete.jsip2.messages.SIP2MessageResponse |
|---|
data, dueDate, mediaType, ok, permanentLocation, printLine, screenMessage |
| Fields inherited from class com.pkrete.jsip2.messages.SIP2Message |
|---|
bibId, checkSum, code, currencyType, currentLocation, expirationDate, feeAmount, feeType, institutionId, itemIdentifier, itemProperties, patronIdentifier, pickupLocation, sequence, titleIdentifier, transactionDate, transactionId |
| Constructor Summary | |
|---|---|
protected |
SIP2PatronResponse(String code,
String data)
Constructs and initializes a new SIP2PatronStatusResponse object containing the given data. |
| Method Summary | |
|---|---|
Language |
getLanguage()
Returns the language |
String |
getPersonalName()
Returns the patron name. |
PatronStatus |
getStatus()
Returns a PatronStatus object that contains all the information about the patron's status. |
boolean |
isValidPatron()
Return true if and only if the patron barcode is valid, otherwise returns false. |
boolean |
isValidPatronPassword()
Return true if and only if the patron password is valid, otherwise returns false. |
boolean |
isValidPatronPasswordUsed()
Returns true if and only if the valid patron password field was used in the response message received from the ILS SIP server. |
boolean |
isValidPatronUsed()
Returns true if and only if the valid patron field was used in the response message received from the ILS SIP server. |
void |
setLanguage(Language language)
Sets the language. |
void |
setPersonalName(String personalName)
Sets the patron name. |
void |
setStatus(PatronStatus status)
Sets the patron status value that contains all the information about the patron's status. |
void |
setValidPatron(boolean validPatron)
Sets the boolean value that tells if the patron barcode is valid. |
void |
setValidPatronPassword(boolean validPatronPassword)
Sets the boolean value that tells if the patron password is valid. |
void |
setValidPatronPasswordUsed(boolean validPatronPasswordUsed)
Sets the boolean value that tells if the valid patron password field was used in the response message received from the ILS SIP server. |
void |
setValidPatronUsed(boolean validPatronUsed)
Sets the boolean value that tells if the valid patron field was used in the response message received from the ILS SIP server. |
| Methods inherited from class com.pkrete.jsip2.messages.SIP2MessageResponse |
|---|
countChecksum, getData, getDueDate, getMediaType, getPermanentLocation, getPrintLine, getScreenMessage, isOk, isValid, setData, setDueDate, setMediaType, setOk, setPermanentLocation, setPrintLine, setScreenMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PatronStatus status
protected Language language
protected String personalName
protected boolean validPatron
protected boolean validPatronUsed
protected boolean validPatronPassword
protected boolean validPatronPasswordUsed
| Constructor Detail |
|---|
protected SIP2PatronResponse(String code,
String data)
code - command identifierdata - the data that the message contains| Method Detail |
|---|
public PatronStatus getStatus()
public void setStatus(PatronStatus status)
status - new valuepublic Language getLanguage()
public void setLanguage(Language language)
language - new valuepublic String getPersonalName()
public void setPersonalName(String personalName)
personalName - new valuepublic boolean isValidPatron()
public void setValidPatron(boolean validPatron)
validPatron - true or falsepublic boolean isValidPatronPassword()
public void setValidPatronPassword(boolean validPatronPassword)
validPatronPassword - true or falsepublic boolean isValidPatronUsed()
public void setValidPatronUsed(boolean validPatronUsed)
validPatronUsed - true or falsepublic boolean isValidPatronPasswordUsed()
public void setValidPatronPasswordUsed(boolean validPatronPasswordUsed)
validPatronPasswordUsed - true or false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||