public class RecentlySentList
extends atg.nucleus.GenericService
Modifier and Type | Class and Description |
---|---|
class |
RecentlySentList.SentItem
SentItem object, which contains email type, map of email parameters and time of email creation
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
LOCALE |
static java.lang.String |
SENT_DATE_FORMAT |
Constructor and Description |
---|
RecentlySentList() |
Modifier and Type | Method and Description |
---|---|
boolean |
addItem(RecentlySentList.SentItem pItem)
Adds new item to the list.
|
void |
addItem(java.lang.String pType,
java.util.Map pEmailParams,
java.lang.String pTimestamp)
Create and add new item based on given input parameters
|
RecentlySentList.SentItem |
getItem(int pIndex)
Return SentItem at the given index
|
int |
getListSize()
Returns list size
|
java.util.List<RecentlySentList.SentItem> |
getSentList()
Returns list of sent items
|
java.lang.String |
getTemplateName(java.lang.String pTemplateUrl)
Resolve template name for the given URL
|
java.util.Map<java.lang.String,java.lang.String> |
getTemplateToTypeMap() |
java.util.Map<java.lang.String,java.lang.String> |
getTypeToMenuItemMap() |
boolean |
removeItem(RecentlySentList.SentItem pItem)
Removes item from the list
|
void |
setListSize(int pListSize)
Sets new list size
|
void |
setSentList(java.util.LinkedList<RecentlySentList.SentItem> pSentList)
Sets new list for recently sent items
|
void |
setTemplateToTypeMap(java.util.Map<java.lang.String,java.lang.String> pTemplateToTypeMap) |
void |
setTypeToMenuItemMap(java.util.Map<java.lang.String,java.lang.String> pTypeToMenuItemMap) |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static final java.lang.String SENT_DATE_FORMAT
public static final java.lang.String LOCALE
public int getListSize()
public void setListSize(int pListSize)
pListSize
- new list sizepublic java.util.Map<java.lang.String,java.lang.String> getTemplateToTypeMap()
public void setTemplateToTypeMap(java.util.Map<java.lang.String,java.lang.String> pTemplateToTypeMap)
pTemplateToTypeMap
- the templateToTypeMap to setpublic java.util.Map<java.lang.String,java.lang.String> getTypeToMenuItemMap()
public void setTypeToMenuItemMap(java.util.Map<java.lang.String,java.lang.String> pTypeToMenuItemMap)
pTypeToMenuItemMap
- the typeToMenuItemMap to setpublic java.util.List<RecentlySentList.SentItem> getSentList()
public void setSentList(java.util.LinkedList<RecentlySentList.SentItem> pSentList)
pSentList
- new listpublic boolean addItem(RecentlySentList.SentItem pItem)
pItem
- new SentItem elementpublic RecentlySentList.SentItem getItem(int pIndex)
pIndex
- the indexpublic void addItem(java.lang.String pType, java.util.Map pEmailParams, java.lang.String pTimestamp)
pType
- email typepEmailParams
- email parameterspTimestamp
- timestamppublic boolean removeItem(RecentlySentList.SentItem pItem)
pItem
- item to removepublic java.lang.String getTemplateName(java.lang.String pTemplateUrl)
pTemplateUrl
- template url