Class GetFunctions

java.lang.Object
   |
   +----GetFunctions

public class GetFunctions
extends Object
IMPORTANT : I have just written a very cheapo program which selects the CSR emailid depending on only the first Keyword that matches , but I intend to write a robust program which will get refined keyword matching using NLP to zero onto a specific CSR emailid .


Constructor Index

 o GetFunctions()

Method Index

 o getCSRemailid(String)
takes the service tag and returns the csr emailID
 o getCSRname(String)
takes the CSRemailid and returns the CSR name
 o getServiceTag(String)
Takes the subject header of the email and returns the servicetag .
 o keywordMatch(String, String)
keywordMatch does matching and returns the service tag which is the first token in the param String tuple if a match occurs or returns null.

Constructors

 o GetFunctions
 public GetFunctions()

Methods

 o keywordMatch
 public String keywordMatch(String subjecthead,
                            String tuple)
keywordMatch does matching and returns the service tag which is the first token in the param String tuple if a match occurs or returns null.

Parameters:
subjectheader - String - email Subject Header
tuple - String - the servicetag concatanated with the keywords
 o getServiceTag
 public String getServiceTag(String subjectheader)
Takes the subject header of the email and returns the servicetag .

Parameters:
String - subjectheader
Returns:
String servicetag
 o getCSRemailid
 public String getCSRemailid(String ser_tag)
takes the service tag and returns the csr emailID

Parameters:
String - ser_tag - service tag for some specified service
Returns:
String csrid - emailID of the CSR
 o getCSRname
 public String getCSRname(String CSRemailid)
takes the CSRemailid and returns the CSR name

Parameters:
String - csremailID - emailID of the CSR
Returns:
String csrname - CSR's name havind above emailID