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 .
-
GetFunctions()
-
-
getCSRemailid(String)
- takes the service tag and returns the csr emailID
-
getCSRname(String)
- takes the CSRemailid and returns the CSR name
-
getServiceTag(String)
-
Takes the subject header of the email and returns the servicetag .
-
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.
GetFunctions
public GetFunctions()
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
getServiceTag
public String getServiceTag(String subjectheader)
- Takes the subject header of the email and returns the servicetag .
- Parameters:
- String - subjectheader
- Returns:
- String servicetag
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
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