com.pkrete.jsip2.variables
Class PatronStatus

java.lang.Object
  extended by com.pkrete.jsip2.variables.PatronStatus

public class PatronStatus
extends Object

This class represents the patron status information that is received as a part of the SIP2PatronStatusResponse response message.

Author:
Petteri Kivimäki

Constructor Summary
PatronStatus()
          Constructs and initializes a new PatronStatus object with all the variables set to false.
 
Method Summary
 boolean isCardReportedLost()
          Returns true if and only if the patron's card is reported lost.
 boolean isChargePrivilegesDenied()
          Returns true if and only if the patron's charge privileges are denied.
 boolean isExcessiveOutstandingFees()
          Returns true if and only if the patron has excessive outstanding fees.
 boolean isExcessiveOutstandingFines()
          Returns true if and only if the patron has excessive outstanding fines.
 boolean isHoldPrivilegesDenied()
          Returns true if and only if the patron's hold privileges are denied.
 boolean isRecallOverdue()
          Returns true if and only if the patron has overdue recall.
 boolean isRecallPrivilegesDenied()
          Returns true if and only if the patron's recall privileges are denied.
 boolean isRenewalPrivilegesDenied()
          Returns true if and only if the patron's renewal privileges are denied.
 boolean isTooManyClaimsOfItemsReturned()
          Returns true if and only if the patron has too many claims of items returned.
 boolean isTooManyItemsBilled()
          Returns true if and only if the patron has too many billed items.
 boolean isTooManyItemsCharged()
          Returns true if and only if the patron has too many items charged.
 boolean isTooManyItemsLost()
          Returns true if and only if the patron has too many lost items.
 boolean isTooManyItemsOverdue()
          Returns true if and only if the patron has too many overdue items.
 boolean isTooManyRenewals()
          Returns true if and only if the patron has too many renewals.
 void setCardReportedLost(boolean cardReportedLost)
          Sets the value that tells if the patron's card is reported lost.
 void setChargePrivilegesDenied(boolean chargePrivilegesDenied)
          Sets the value that tells if the patron's charge privileges are denied.
 void setExcessiveOutstandingFees(boolean excessiveOutstandingFees)
          Sets the value that tells if the patron has excessive outstanding fees.
 void setExcessiveOutstandingFines(boolean excessiveOutstandingFines)
          Sets the value that tells if the patron has excessive outstanding fines.
 void setHoldPrivilegesDenied(boolean holdPrivilegesDenied)
          Sets the value that tells if the patron's hold privileges are denied.
 void setRecallOverdue(boolean recallOverdue)
          Sets the value that tells if the patron has overdue recall.
 void setRecallPrivilegesDenied(boolean recallPrivilegesDenied)
          Sets the value that tells if the patron's recall privileges are denied.
 void setRenewalPrivilegesDenied(boolean renewalPrivilegesDenied)
          Sets the value that tells if the patron's renewal privileges are denied.
 void setTooManyClaimsOfItemsReturned(boolean tooManyClaimsOfItemsReturned)
          Sets the value that tells if the patron has too many claims of items returned.
 void setTooManyItemsBilled(boolean tooManyItemsBilled)
          Sets the value that tells if the patron has too many billed items.
 void setTooManyItemsCharged(boolean tooManyItemsCharged)
          Sets the value that tells if the patron has too many items charged.
 void setTooManyItemsLost(boolean tooManyItemsLost)
          Sets the value that tells if the patron has too many lost items.
 void setTooManyItemsOverdue(boolean tooManyItemsOverdue)
          Sets the value that tells if the patron has too many overdue items.
 void setTooManyRenewals(boolean tooManyRenewals)
          Sets the value that tells if the patron has too many renewals.
 String toString()
          Returns a String presentation of this PatronStatus object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatronStatus

public PatronStatus()
Constructs and initializes a new PatronStatus object with all the variables set to false.

Method Detail

isChargePrivilegesDenied

public boolean isChargePrivilegesDenied()
Returns true if and only if the patron's charge privileges are denied.

Returns:
true if charge privileges are denied, otherwise false

setChargePrivilegesDenied

public void setChargePrivilegesDenied(boolean chargePrivilegesDenied)
Sets the value that tells if the patron's charge privileges are denied.

Parameters:
chargePrivilegesDenied - true or false

isRenewalPrivilegesDenied

public boolean isRenewalPrivilegesDenied()
Returns true if and only if the patron's renewal privileges are denied.

Returns:
true if renewal privileges are denied, otherwise false

setRenewalPrivilegesDenied

public void setRenewalPrivilegesDenied(boolean renewalPrivilegesDenied)
Sets the value that tells if the patron's renewal privileges are denied.

Parameters:
renewalPrivilegesDenied - true or false

isRecallPrivilegesDenied

public boolean isRecallPrivilegesDenied()
Returns true if and only if the patron's recall privileges are denied.

Returns:
true if recall privileges are denied, otherwise false

setRecallPrivilegesDenied

public void setRecallPrivilegesDenied(boolean recallPrivilegesDenied)
Sets the value that tells if the patron's recall privileges are denied.

Parameters:
recallPrivilegesDenied - true or false

isHoldPrivilegesDenied

public boolean isHoldPrivilegesDenied()
Returns true if and only if the patron's hold privileges are denied.

Returns:
true if hold privileges are denied, otherwise false

setHoldPrivilegesDenied

public void setHoldPrivilegesDenied(boolean holdPrivilegesDenied)
Sets the value that tells if the patron's hold privileges are denied.

Parameters:
holdPrivilegesDenied - true or false

isCardReportedLost

public boolean isCardReportedLost()
Returns true if and only if the patron's card is reported lost.

Returns:
true if card is reported lost, otherwise false

setCardReportedLost

public void setCardReportedLost(boolean cardReportedLost)
Sets the value that tells if the patron's card is reported lost.

Parameters:
cardReportedLost - true or false

isTooManyItemsCharged

public boolean isTooManyItemsCharged()
Returns true if and only if the patron has too many items charged.

Returns:
true if patron has too many items charged, otherwise false

setTooManyItemsCharged

public void setTooManyItemsCharged(boolean tooManyItemsCharged)
Sets the value that tells if the patron has too many items charged.

Parameters:
tooManyItemsCharged - true or false

isTooManyItemsOverdue

public boolean isTooManyItemsOverdue()
Returns true if and only if the patron has too many overdue items.

Returns:
true if patron has too many overdue items, otherwise false

setTooManyItemsOverdue

public void setTooManyItemsOverdue(boolean tooManyItemsOverdue)
Sets the value that tells if the patron has too many overdue items.

Parameters:
tooManyItemsOverdue - true or false

isTooManyRenewals

public boolean isTooManyRenewals()
Returns true if and only if the patron has too many renewals.

Returns:
true if patron has too many renewals, otherwise false

setTooManyRenewals

public void setTooManyRenewals(boolean tooManyRenewals)
Sets the value that tells if the patron has too many renewals.

Parameters:
tooManyRenewals - true or false

isTooManyClaimsOfItemsReturned

public boolean isTooManyClaimsOfItemsReturned()
Returns true if and only if the patron has too many claims of items returned.

Returns:
true if patron has too many claims of items returned, otherwise false

setTooManyClaimsOfItemsReturned

public void setTooManyClaimsOfItemsReturned(boolean tooManyClaimsOfItemsReturned)
Sets the value that tells if the patron has too many claims of items returned.

Parameters:
tooManyClaimsOfItemsReturned - true or false

isTooManyItemsLost

public boolean isTooManyItemsLost()
Returns true if and only if the patron has too many lost items.

Returns:
true if patron has too many lost items, otherwise false

setTooManyItemsLost

public void setTooManyItemsLost(boolean tooManyItemsLost)
Sets the value that tells if the patron has too many lost items.

Parameters:
tooManyItemsLost - true or false

isExcessiveOutstandingFines

public boolean isExcessiveOutstandingFines()
Returns true if and only if the patron has excessive outstanding fines.

Returns:
true if patron has excessive outstanding fines, otherwise false

setExcessiveOutstandingFines

public void setExcessiveOutstandingFines(boolean excessiveOutstandingFines)
Sets the value that tells if the patron has excessive outstanding fines.

Parameters:
excessiveOutstandingFines - true or false

isExcessiveOutstandingFees

public boolean isExcessiveOutstandingFees()
Returns true if and only if the patron has excessive outstanding fees.

Returns:
true if patron has excessive outstanding fees, otherwise false

setExcessiveOutstandingFees

public void setExcessiveOutstandingFees(boolean excessiveOutstandingFees)
Sets the value that tells if the patron has excessive outstanding fees.

Parameters:
excessiveOutstandingFees - true or false

isRecallOverdue

public boolean isRecallOverdue()
Returns true if and only if the patron has overdue recall.

Returns:
true if patron has overdue recall, otherwise false

setRecallOverdue

public void setRecallOverdue(boolean recallOverdue)
Sets the value that tells if the patron has overdue recall.

Parameters:
recallOverdue - true or false

isTooManyItemsBilled

public boolean isTooManyItemsBilled()
Returns true if and only if the patron has too many billed items.

Returns:
true if patron has too many billed items, otherwise false

setTooManyItemsBilled

public void setTooManyItemsBilled(boolean tooManyItemsBilled)
Sets the value that tells if the patron has too many billed items.

Parameters:
tooManyItemsBilled - true or false

toString

public String toString()
Returns a String presentation of this PatronStatus object.

Overrides:
toString in class Object
Returns:
string presentation of this object


Copyright © 2012-2014. All Rights Reserved.