public class DBEmail extends DBObject
DBObject.DenormalizeAction| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BOOTSTRAP_COLOR_DANGER |
static java.lang.String |
BOOTSTRAP_COLOR_PRIMARY |
static java.lang.String |
BOOTSTRAP_COLOR_SUCCESS |
static java.lang.String |
BOOTSTRAP_COLOR_WARNING |
static GlobalId |
DBCLASS_GID
The DBEmail stored details of emails either sent or retrieved by users
of the system.
|
static java.lang.String |
DBCLASS_NAME
The DBEmail stored details of emails either sent or retrieved by users
of the system.
|
static java.lang.String |
HTML_ATTCH_NAME
the attachment name
|
static java.lang.String |
MESSAGE_ID
the message id
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
DBEmail(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMessage(Message message) |
protected DBEmailAttachment |
createAttachment(java.lang.String attachmentName,
java.io.InputStream is,
java.util.HashMap orginalAttachments,
java.util.HashMap currentAttachments,
DBEmailAccount account,
java.lang.String mimeType) |
java.lang.String |
displayName()
The human display name of this object.
|
boolean |
doesEmailExistInFolder(java.lang.String inFolder)
Does email exist in folder
|
protected void |
extAutoEnterCreate()
Additional functionality when an object is created.
|
protected void |
extFixUp()
The extended fix up routine for known problems.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for this field.
|
protected void |
extSetValue(DBField field,
java.lang.Object currentValue,
FldParams params)
We prevent some values from being set by a user.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
DBEmailAccount |
findAccount(java.lang.String... args)
Email account used to send this email from.
|
Person |
findEnteredBy(java.lang.String... args)
Entered by user.
|
static DBEmail |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
Person |
findSender(java.lang.String... args)
The person who will receive all replies to this email.
|
DBEmailAccount |
getAccount(java.lang.String... args) |
java.lang.String |
getAttachmentHTML(java.lang.String... args) |
DBObject[] |
getAttachments() |
java.lang.String |
getBody(java.lang.String... args) |
java.lang.String |
getDisplayHTML(java.lang.String... args) |
java.lang.String |
getDisplaySender(java.lang.String... args) |
java.lang.String |
getDisplayStatusHTML(java.lang.String... args) |
Person |
getEnteredBy(java.lang.String... args) |
java.lang.String |
getHtmlBody(java.lang.String... args) |
int |
getID(java.lang.String... args) |
java.lang.String |
getMessageId(java.lang.String... args) |
DBEmailRecipient[] |
getRecipients() |
java.lang.String |
getRecipientsHTML(java.lang.String... args) |
Person |
getSender(java.lang.String... args) |
java.lang.String |
getSenderEmail(java.lang.String... args) |
java.util.Date |
getSentDate(java.lang.String... args) |
java.lang.String |
getSubject(java.lang.String... args) |
protected void |
handleBodyMultiPart(Multipart mp,
java.util.HashMap info,
java.util.HashMap orginalAttachments,
java.util.HashMap currentAttachments,
DBEmailAccount account) |
protected void |
handleBodyPart(Part part,
java.util.HashMap info,
java.util.HashMap orginalAttachments,
java.util.HashMap currentAttachments,
DBEmailAccount account) |
boolean |
isRealWorld()
Is this a "real" email ?
|
static DBQuery<DBEmail> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
void |
moveMessage(java.lang.String fromFolder,
java.lang.String moveToFolder)
Move message to different folder
|
protected void |
readBody(Message message,
DBEmailAccount account) |
void |
readFromMessage(Message message,
DBEmailAccount account) |
protected void |
readRecipients(Message message) |
protected void |
readSender(Message message,
DBEmailAccount account) |
void |
reAssociate() |
void |
sendAsErrorMesssage(java.lang.String subject,
java.lang.String sendTo) |
DBEmail |
setAccount(com.aspc.dal.dbobj.email.DBEmailAccount value,
java.lang.String... args) |
DBEmail |
setBody(java.lang.String value,
java.lang.String... args) |
DBEmail |
setEnteredBy(com.aspc.dal.dbobj.contact.Person value,
java.lang.String... args) |
DBEmail |
setHtmlBody(java.lang.String value,
java.lang.String... args) |
DBEmail |
setID(int value,
java.lang.String... args) |
DBEmail |
setMessageId(java.lang.String value,
java.lang.String... args) |
DBEmail |
setSender(com.aspc.dal.dbobj.contact.Person value,
java.lang.String... args) |
DBEmail |
setSenderEmail(java.lang.String value,
java.lang.String... args) |
DBEmail |
setSentDate(java.util.Date value,
java.lang.String... args) |
DBEmail |
setSubject(java.lang.String value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayValue, doSearch, dump, equals, eventDataLoaded, eventFieldUpdated, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extUndelete, extValidateDelete, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubTypepublic static final java.lang.String MESSAGE_ID
public static final java.lang.String HTML_ATTCH_NAME
public static final java.lang.String BOOTSTRAP_COLOR_PRIMARY
public static final java.lang.String BOOTSTRAP_COLOR_SUCCESS
public static final java.lang.String BOOTSTRAP_COLOR_WARNING
public static final java.lang.String BOOTSTRAP_COLOR_DANGER
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public DBEmail(@Nonnull
DBClass def,
@Nonnull
DataSource dataSource)
throws java.lang.Exception
def - The class of this objectdataSource - The datasource for this objectjava.lang.Exception - A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public DBEmail setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBEmailAccount getAccount(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBEmailAccount findAccount(java.lang.String... args) throws NotFoundException
DBEmailAccount
(Integer, Searchable)args - the optional argumentsNotFoundException - DBEmailAccount was not found@Nonnull public DBEmail setAccount(com.aspc.dal.dbobj.email.DBEmailAccount value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getAttachmentHTML(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getBody(java.lang.String... args)
@Nonnull public DBEmail setBody(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getDisplayHTML(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getDisplaySender(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getDisplayStatusHTML(java.lang.String... args)
@CheckReturnValue @Nullable public Person getEnteredBy(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findEnteredBy(java.lang.String... args) throws NotFoundException
Person (Integer,
Searchable)args - the optional argumentsNotFoundException - Person was not found@Nonnull public DBEmail setEnteredBy(com.aspc.dal.dbobj.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getHtmlBody(java.lang.String... args)
@Nonnull public DBEmail setHtmlBody(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getMessageId(java.lang.String... args)
@Nonnull public DBEmail setMessageId(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getRecipientsHTML(java.lang.String... args)
@CheckReturnValue @Nullable public Person getSender(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findSender(java.lang.String... args) throws NotFoundException
Person (Integer,
Searchable)args - the optional argumentsNotFoundException - Person was not found@Nonnull public DBEmail setSender(com.aspc.dal.dbobj.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getSenderEmail(java.lang.String... args)
@Nonnull public DBEmail setSenderEmail(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public java.util.Date getSentDate(java.lang.String... args)
@Nonnull public DBEmail setSentDate(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getSubject(java.lang.String... args)
@Nonnull public DBEmail setSubject(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@Nonnull @CheckReturnValue public static DBQuery<DBEmail> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds - the datasourceNotFoundException - if class could not be found@Nonnull @CheckReturnValue public static DBEmail findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds - the datasourcekey - the valueNotFoundException - if target could not be foundjava.lang.Exception - a serious problem@CheckReturnValue @Nonnull public java.lang.String displayName()
displayName in class DBObject@CheckReturnValue
public boolean checkMessage(@Nonnull
Message message)
message - the messagepublic void readFromMessage(@Nonnull
Message message,
@Nonnull
DBEmailAccount account)
throws java.lang.Exception
message - the messageaccount - the accountjava.lang.Exception - a serious problempublic void reAssociate()
throws java.lang.Exception
java.lang.Exception - a serious problemprotected void readSender(@Nonnull
Message message,
@Nonnull
DBEmailAccount account)
throws java.lang.Exception
message - the messageaccount - the accountjava.lang.Exception - a serious problemprotected void readRecipients(@Nonnull
Message message)
throws java.lang.Exception
message - the messagejava.lang.Exception - a serious problemprotected void readBody(@Nonnull
Message message,
@Nonnull
DBEmailAccount account)
throws java.lang.Exception
message - the messageaccount - the accountjava.lang.Exception - a serious problemprotected void handleBodyMultiPart(@Nonnull
Multipart mp,
@Nonnull
java.util.HashMap info,
@Nonnull
java.util.HashMap orginalAttachments,
@Nonnull
java.util.HashMap currentAttachments,
@Nonnull
DBEmailAccount account)
throws java.lang.Exception
mp - the partinfo - the infoorginalAttachments - the attachmentscurrentAttachments - the attachmentsaccount - the accountjava.lang.Exception - a serious problemprotected void handleBodyPart(@Nonnull
Part part,
@Nonnull
java.util.HashMap info,
@Nonnull
java.util.HashMap orginalAttachments,
@Nonnull
java.util.HashMap currentAttachments,
@Nonnull
DBEmailAccount account)
throws java.lang.Exception
part - the partinfo - the infoorginalAttachments - the attachmentscurrentAttachments - the attachmentsaccount - the accountjava.lang.Exception - a serious problem@Nonnull protected DBEmailAttachment createAttachment(@Nonnull java.lang.String attachmentName, @Nonnull java.io.InputStream is, @Nonnull java.util.HashMap orginalAttachments, @Nonnull java.util.HashMap currentAttachments, @Nonnull DBEmailAccount account, @Nonnull java.lang.String mimeType) throws java.lang.Exception
attachmentName - is - orginalAttachments - currentAttachments - account - mimeType - java.lang.Exception - a serious problemprotected void extSetValue(@Nonnull
DBField field,
@Nullable
java.lang.Object currentValue,
@Nullable
FldParams params)
throws java.lang.Exception
extSetValue in class DBObjectfield - The field that is being changedcurrentValue - The new valueparams - The extra parametersjava.lang.Exception - A serious problem@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField in class DBObjectlist - The validation listfield - The field to be validatedjava.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extFixUp()
throws java.lang.Exception
@CheckReturnValue @Nonnull public DBEmailRecipient[] getRecipients()
@CheckReturnValue @Nonnull public DBObject[] getAttachments()
@OverridingMethodsMustInvokeSuper
protected void extAutoEnterCreate()
throws java.lang.Exception
extAutoEnterCreate in class DBObjectjava.lang.Exception - A serious problemcom.aspc.DBObj.DBObject#autoEnterCreate()@CheckReturnValue
protected java.lang.Object extGetDerivedValue(@Nonnull
DBField field,
@Nullable
FldParams params)
throws java.lang.Exception
extGetDerivedValue in class DBObjectfield - The field to getparams - The parameters for this field eg. language= or default=java.lang.Exception - A serious problem@CheckReturnValue public boolean isRealWorld()
public void moveMessage(@Nonnull
java.lang.String fromFolder,
@Nonnull
java.lang.String moveToFolder)
throws java.lang.Exception
fromFolder - from foldermoveToFolder - to folderjava.lang.Exception - a serious problem.@CheckReturnValue
public boolean doesEmailExistInFolder(@Nonnull
java.lang.String inFolder)
throws java.lang.Exception
inFolder - folderjava.lang.Exception - exceptionpublic void sendAsErrorMesssage(@Nonnull
java.lang.String subject,
@Nonnull
java.lang.String sendTo)
throws java.lang.Exception
java.lang.ExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.