org.bejug.javacareers.jobs.view.jsf.model
Class MailBean

java.lang.Object
  extended byorg.bejug.javacareers.jobs.view.jsf.model.MailBean
All Implemented Interfaces:
org.springframework.web.context.ServletContextAware

public class MailBean
extends java.lang.Object
implements org.springframework.web.context.ServletContextAware

Version:
$Revision: 1.21 $ - $Date: 2005/11/14 21:58:22 $
Author:
kva (last modified by $Author: stephan_janssen $)

Constructor Summary
MailBean()
           
 
Method Summary
 java.util.List getJobsPostedInLast24Hours()
          Get the list of jobs posted in the last 24 hours.
 java.util.List getJobsPostedSince(java.util.Date date)
          Get the jobs posted since a particular date.
 org.bejug.javacareers.common.search.SearchCriteriaFactory getSearchCriteriaFactory()
           
 javax.servlet.ServletContext getServletContext()
           
 TemplateUtilities getTemplateUtilities()
           
 void sendJobDigestMailToUsers()
          Send an email to all users who subscribed to the regular job digest mailing.
 void sendJobMailToFriend(org.bejug.javacareers.jobs.model.User user, org.bejug.javacareers.jobs.model.JobOffer job, java.lang.String friendsName, java.lang.String friendsEmail, java.lang.String page)
          Send an email containing the details of the job offer to the original poster of the job offer.
 void sendPasswordToUser(org.bejug.javacareers.jobs.model.User user, java.lang.String password)
          Send an email containing a new password to the specified user.
 void sendPostJobMailNotification(org.bejug.javacareers.jobs.model.User user, org.bejug.javacareers.jobs.model.JobOffer job)
          Send an email containing the details of the job offer to the original poster of the job offer.
 void setAdminService(org.bejug.javacareers.jobs.service.AdminService adminService)
           
 void setConfig(org.bejug.javacareers.project.properties.JavaCareersConfig config)
           
 void setMailService(org.bejug.javacareers.jobs.service.MailService mailService)
           
 void setSearchCriteriaFactory(org.bejug.javacareers.common.search.SearchCriteriaFactory searchCriteriaFactory)
           
 void setSearchCriteriaService(org.bejug.javacareers.common.search.SearchCriteriaService searchCriteriaService)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
          sets the servletcontext.
 void setTemplateUtilities(TemplateUtilities templateUtilities)
           
 void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailBean

public MailBean()
Method Detail

getJobsPostedSince

public java.util.List getJobsPostedSince(java.util.Date date)
Get the jobs posted since a particular date.

Parameters:
date - get jobs posted later than this date.
Returns:
list of JobOffer instances posted after date.

getJobsPostedInLast24Hours

public java.util.List getJobsPostedInLast24Hours()
Get the list of jobs posted in the last 24 hours.

Returns:
List of JobOffer instances

sendPostJobMailNotification

public void sendPostJobMailNotification(org.bejug.javacareers.jobs.model.User user,
                                        org.bejug.javacareers.jobs.model.JobOffer job)
Send an email containing the details of the job offer to the original poster of the job offer.

Parameters:
user - the user to send mail to.
job - the job offer to mail.

sendJobMailToFriend

public void sendJobMailToFriend(org.bejug.javacareers.jobs.model.User user,
                                org.bejug.javacareers.jobs.model.JobOffer job,
                                java.lang.String friendsName,
                                java.lang.String friendsEmail,
                                java.lang.String page)
Send an email containing the details of the job offer to the original poster of the job offer.

Parameters:
user - the user to send mail to.
job - the job offer to mail.
friendsName - a String containing the name of the friend.
friendsEmail - a String containing the mailaddress of the friend.
page - a String containing the page to send.

sendJobDigestMailToUsers

public void sendJobDigestMailToUsers()
Send an email to all users who subscribed to the regular job digest mailing.


sendPasswordToUser

public void sendPasswordToUser(org.bejug.javacareers.jobs.model.User user,
                               java.lang.String password)
Send an email containing a new password to the specified user.

Parameters:
user - the user to send an email to.
password - the user's new password.

setSearchCriteriaService

public void setSearchCriteriaService(org.bejug.javacareers.common.search.SearchCriteriaService searchCriteriaService)
Parameters:
searchCriteriaService - The searchCriteriaService to set.

setVelocityEngine

public void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
Parameters:
velocityEngine - The velocityEngine to set.

setAdminService

public void setAdminService(org.bejug.javacareers.jobs.service.AdminService adminService)
Parameters:
adminService - The adminService to set.

setMailService

public void setMailService(org.bejug.javacareers.jobs.service.MailService mailService)
Parameters:
mailService - The mailService to set.

setConfig

public void setConfig(org.bejug.javacareers.project.properties.JavaCareersConfig config)
Parameters:
config - The config to set.

getSearchCriteriaFactory

public org.bejug.javacareers.common.search.SearchCriteriaFactory getSearchCriteriaFactory()
Returns:
the wanted searchCriteriaFactory.

getTemplateUtilities

public TemplateUtilities getTemplateUtilities()
Returns:
the wanted templateutilities.

setTemplateUtilities

public void setTemplateUtilities(TemplateUtilities templateUtilities)
Parameters:
templateUtilities - the utilities to set.

setSearchCriteriaFactory

public void setSearchCriteriaFactory(org.bejug.javacareers.common.search.SearchCriteriaFactory searchCriteriaFactory)
Parameters:
searchCriteriaFactory - the searchCriteriaFactory to set.

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
sets the servletcontext.

Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware
Parameters:
servletContext - the context to set.

getServletContext

public javax.servlet.ServletContext getServletContext()
Returns:
the servletcontext.


Copyright © 2005-2006 BeJUG. All Rights Reserved.