com.flickrrecsys.util
Class EmailTemplate

java.lang.Object
  extended by com.flickrrecsys.util.EmailTemplate

public class EmailTemplate
extends java.lang.Object

This method create content of an email

Author:
Hossein Ghodsi

Constructor Summary
EmailTemplate()
          Empty constructor
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String contactForm(java.lang.String name, java.lang.String comments, java.lang.String email)
          This method creats content of the email that is going to be sent to the admin person
 java.lang.String evaluationFormForKnownUsers(java.lang.String realname, java.lang.String username, java.lang.String nsid, java.lang.String content)
          Creates body of the evaluation form that is going to be emailed to the administrator.
 java.lang.String evaluationFormForUnkownUsers(java.lang.String name, java.lang.String email, java.lang.String content)
          Creates body of the evaluation form that is going to be emailed to the administrator.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailTemplate

public EmailTemplate()
Empty constructor

Method Detail

evaluationFormForUnkownUsers

public java.lang.String evaluationFormForUnkownUsers(java.lang.String name,
                                                     java.lang.String email,
                                                     java.lang.String content)
Creates body of the evaluation form that is going to be emailed to the administrator.

Parameters:
name - name of the person form the form
email - email address of the person from the form
content - content which is the questionnaire
Returns:
entire content

evaluationFormForKnownUsers

public java.lang.String evaluationFormForKnownUsers(java.lang.String realname,
                                                    java.lang.String username,
                                                    java.lang.String nsid,
                                                    java.lang.String content)
Creates body of the evaluation form that is going to be emailed to the administrator.

Parameters:
realname - realname from the Flickr website
username - Username from the Flickr website
nsid - user id from the Flickr website
content - content which is the questionnaire
Returns:
entire content

contactForm

public java.lang.String contactForm(java.lang.String name,
                                    java.lang.String comments,
                                    java.lang.String email)
This method creats content of the email that is going to be sent to the admin person

Parameters:
name - Name of the person from the form
comments - Comments from the form
email - Email from the form
Returns:
entire content

clone

public final java.lang.Object clone()
                             throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException