public class MailWorker extends Object
Constructor and Description |
---|
MailWorker() |
Modifier and Type | Method and Description |
---|---|
void |
sendAcquisitionNotification(Reader requestor,
Book bk,
String location)
Sends notification to the admin email that a request has been made for a book
that is not available (checked into or checked out from) the location where the
request has been made.
|
void |
sendAcquisitionRequestConfirmation(Reader requestor,
Book bk,
String locationDescription)
Sends request confirmation to requestor for a book that is not available
in the location of the order.
|
void |
sendCheckoutNotification(Reader requestor,
Reader newPossessor,
Book bk,
String locationDescription)
Sends checkout notification
|
void |
sendDeleteConfirmation(Reader rd,
Book bk)
Sends deleted request notification
|
void |
sendNewPasswordConfirmation(Reader rd,
String newPassword)
Sends new password generated as a result of Forgot Your Password action
|
void |
sendRequestConfirmation(Reader possessor,
Reader requestor,
Book bk,
String locationDescription)
Sends request confirmation to requestor
|
void |
sendRequestNotification(Reader possessor,
Reader requestor,
Book bk,
String location)
Sends request notification to current possessor
|
void |
sendReturnNotification(Reader rd,
Book bk,
String locationDescription)
Sends return notification
|
void |
setMailSender(MailSender mailSender) |
void |
setResourceBundleMessageSource(org.springframework.context.support.ResourceBundleMessageSource resourceBundleMessageSource)
Used for Spring Dependency Injection
|
public void setMailSender(MailSender mailSender)
public void setResourceBundleMessageSource(org.springframework.context.support.ResourceBundleMessageSource resourceBundleMessageSource)
public void sendRequestConfirmation(Reader possessor, Reader requestor, Book bk, String locationDescription) throws Exception
possessor
- = the current possessor of the bookrequestor
- = the requestor of the bookbk
- = the book being requestedException
public void sendAcquisitionRequestConfirmation(Reader requestor, Book bk, String locationDescription) throws Exception
requestor
- = the requestor of the bookbk
- the book being requestedlocationDescription
- description of the locationException
public void sendRequestNotification(Reader possessor, Reader requestor, Book bk, String location) throws Exception
possessor
- the current possessor of the bookrequestor
- the requester of the bookbk
- the book being requestedlocation
- location of the requestException
public void sendAcquisitionNotification(Reader requestor, Book bk, String location) throws Exception
requestor
- the requester of the bookbk
- the book being requestedlocation
- location of the requestException
public void sendReturnNotification(Reader rd, Book bk, String locationDescription) throws Exception
bk
- id of the book that has been returnedrd
- id of the reader to receive notificationlocationDescription
- human-readable description of the dropoff location where the book was returnedException
public void sendDeleteConfirmation(Reader rd, Book bk) throws Exception
bk
- = the id of the bookrd
- = the id of the reader who has deleted the requestException
public void sendCheckoutNotification(Reader requestor, Reader newPossessor, Book bk, String locationDescription) throws Exception
newPossessor
- the new possessor of the bookrequestor
- the requester of the bookbk
- the book being requestedlocationDescription
- the location the book was checked out fromException
public void sendNewPasswordConfirmation(Reader rd, String newPassword) throws Exception
rd
- = the id of the reader to receive notificationnewPassword
- = the new password that was generatedException
Copyright © 2003-2017 The Virtual Library Team. All Rights Reserved.