public class DBEmailRecipient extends DBObject
DBObject.DenormalizeAction| Modifier and Type | Field and Description |
|---|---|
static GlobalId |
DBCLASS_GID
Identifies a recipient of the Email message.
|
static java.lang.String |
DBCLASS_NAME
Identifies a recipient of the Email message.
|
static java.lang.String |
RECIPIENT_TYPE |
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
DBEmailRecipient(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
static DBEmailRecipient |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
OVERRIDE This method to be notified when a field changes.
|
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 |
extPreValidate()
Update the in-memory universe BEFORE validating
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
DBEmail |
findEmailId(java.lang.String... args)
Email Id.
|
Person |
findEnteredBy(java.lang.String... args)
Entered By.
|
static DBEmailRecipient |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
Contact |
findRecipient(java.lang.String... args)
Recipient.
|
DBLanguage |
findRecipientLanguage(java.lang.String... args)
The language setting on the machine that the email was read from.
|
DBEmailSendStatus |
findSendStatus(java.lang.String... args)
The status of the sending of the email to this recipient.
|
DBEmailRecipientType |
findType(java.lang.String... args)
Type.
|
java.lang.String |
getDisplayRecipient(java.lang.String... args) |
java.lang.String |
getEmail(java.lang.String... args) |
DBEmail |
getEmailId(java.lang.String... args) |
Person |
getEnteredBy(java.lang.String... args) |
java.lang.String |
getFailTx(java.lang.String... args) |
int |
getID(java.lang.String... args) |
java.util.Date |
getReadDate(java.lang.String... args) |
Contact |
getRecipient(java.lang.String... args) |
java.lang.String |
getRecipientAddr(java.lang.String... args) |
DBLanguage |
getRecipientLanguage(java.lang.String... args) |
java.lang.String |
getRecipientOSName(java.lang.String... args) |
DBEmailSendStatus |
getSendStatus(java.lang.String... args) |
java.util.Date |
getSentDate(java.lang.String... args) |
DBEmailRecipientType |
getType(java.lang.String... args) |
boolean |
isGroupEmail(java.lang.String... args) |
boolean |
isMatchesSender(java.lang.String... args) |
boolean |
isReceivedEmail(java.lang.String... args) |
boolean |
isSentEmail(java.lang.String... args) |
static DBQuery<DBEmailRecipient> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
DBEmailRecipient |
setEmail(java.lang.String value,
java.lang.String... args) |
DBEmailRecipient |
setEmailId(com.aspc.dal.dbobj.email.DBEmail value,
java.lang.String... args) |
DBEmailRecipient |
setEnteredBy(com.aspc.dal.dbobj.contact.Person value,
java.lang.String... args) |
DBEmailRecipient |
setFailTx(java.lang.String value,
java.lang.String... args) |
DBEmailRecipient |
setGroupEmail(boolean value,
java.lang.String... args) |
DBEmailRecipient |
setID(int value,
java.lang.String... args) |
DBEmailRecipient |
setReadDate(java.util.Date value,
java.lang.String... args) |
DBEmailRecipient |
setRecipient(com.aspc.dal.dbobj.contact.Contact value,
java.lang.String... args) |
DBEmailRecipient |
setRecipientAddr(java.lang.String value,
java.lang.String... args) |
DBEmailRecipient |
setRecipientLanguage(com.aspc.dal.dbobj.language.DBLanguage value,
java.lang.String... args) |
DBEmailRecipient |
setRecipientOSName(java.lang.String value,
java.lang.String... args) |
DBEmailRecipient |
setSendStatus(com.aspc.dal.dbobj.email.DBEmailSendStatus value,
java.lang.String... args) |
DBEmailRecipient |
setSentDate(java.util.Date value,
java.lang.String... args) |
DBEmailRecipient |
setType(com.aspc.dal.dbobj.email.DBEmailRecipientType value,
java.lang.String... args) |
static boolean |
useEmailBillToAddress(DataSource ds,
DBEmailSend dBEmailSend)
Check if the DBEmailRecipient.email should be set to Contact.emailBillTo
|
protected void |
validateSubType(DBField field,
java.lang.Object value)
http://www.regular-expressions.info/email.html
http://tools.ietf.org/html/rfc2822#section-3.4.1
|
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, 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, validateRecordpublic static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.String RECIPIENT_TYPE
public DBEmailRecipient(DBClass def, 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 DBEmailRecipient setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getDisplayRecipient(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getEmail(java.lang.String... args)
@Nonnull public DBEmailRecipient setEmail(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBEmail getEmailId(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBEmail findEmailId(java.lang.String... args) throws NotFoundException
DBEmail (Integer,
Searchable)args - the optional argumentsNotFoundException - DBEmail was not found@Nonnull public DBEmailRecipient setEmailId(com.aspc.dal.dbobj.email.DBEmail value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@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 DBEmailRecipient 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 getFailTx(java.lang.String... args)
@Nonnull public DBEmailRecipient setFailTx(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue public boolean isGroupEmail(java.lang.String... args)
@Nonnull public DBEmailRecipient setGroupEmail(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue public boolean isReceivedEmail(java.lang.String... args)
@CheckReturnValue public boolean isSentEmail(java.lang.String... args)
@CheckReturnValue public boolean isMatchesSender(java.lang.String... args)
@CheckReturnValue @Nullable public java.util.Date getReadDate(java.lang.String... args)
@Nonnull public DBEmailRecipient setReadDate(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public Contact getRecipient(java.lang.String... args)
@CheckReturnValue @Nonnull public final Contact findRecipient(java.lang.String... args) throws NotFoundException
Contact (Integer,
Searchable)args - the optional argumentsNotFoundException - Contact was not found@Nonnull public DBEmailRecipient setRecipient(com.aspc.dal.dbobj.contact.Contact value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getRecipientAddr(java.lang.String... args)
@Nonnull public DBEmailRecipient setRecipientAddr(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBLanguage getRecipientLanguage(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBLanguage findRecipientLanguage(java.lang.String... args) throws NotFoundException
DBLanguage (String,
Searchable)args - the optional argumentsNotFoundException - DBLanguage was not found@Nonnull public DBEmailRecipient setRecipientLanguage(com.aspc.dal.dbobj.language.DBLanguage value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getRecipientOSName(java.lang.String... args)
@Nonnull public DBEmailRecipient setRecipientOSName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBEmailSendStatus getSendStatus(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBEmailSendStatus findSendStatus(java.lang.String... args) throws NotFoundException
DBEmailSendStatus (String, Searchable)args - the optional argumentsNotFoundException - DBEmailSendStatus was not found@Nonnull public DBEmailRecipient setSendStatus(com.aspc.dal.dbobj.email.DBEmailSendStatus 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 DBEmailRecipient setSentDate(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public DBEmailRecipientType getType(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBEmailRecipientType findType(java.lang.String... args) throws NotFoundException
DBEmailRecipientType (String, Searchable)args - the optional argumentsNotFoundException - DBEmailRecipientType was not found@Nonnull public DBEmailRecipient setType(com.aspc.dal.dbobj.email.DBEmailRecipientType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@Nonnull @CheckReturnValue public static DBEmailRecipient create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds - the datasourcejava.lang.Exception - an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<DBEmailRecipient> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds - the datasourceNotFoundException - if class could not be found@Nonnull @CheckReturnValue public static DBEmailRecipient 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@OverridingMethodsMustInvokeSuper
protected void extAutoEnterCreate()
throws java.lang.Exception
extAutoEnterCreate in class DBObjectjava.lang.Exception - A serious problemcom.aspc.DBObj.DBObject#autoEnterCreate()@OverridingMethodsMustInvokeSuper
protected void eventFieldUpdated(@Nonnull
DBField field,
@Nullable
java.lang.Object previous,
@Nullable
GlobalKey previousKey,
@Nullable
FldParams params)
throws java.lang.Exception
DBObjecteventFieldUpdated in class DBObjectfield - The field updated.previous - The previous value for this field.previousKey - The previous keyparams - The parameters usedjava.lang.Exception - a serious problemprotected void validateSubType(@Nonnull
DBField field,
@Nullable
java.lang.Object value)
throws InvalidDataException,
InvalidDataWarning
DBObjectvalidateSubType in class DBObjectfield - The fieldvalue - the valueInvalidDataException - invalidate dataInvalidDataWarning@Nullable @CheckReturnValue @OverridingMethodsMustInvokeSuper 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@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@OverridingMethodsMustInvokeSuper
protected void extPreValidate()
throws java.lang.Exception
extPreValidate in class DBObjectjava.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extFixUp()
throws java.lang.Exception
public static boolean useEmailBillToAddress(@Nonnull
DataSource ds,
@Nonnull
DBEmailSend dBEmailSend)
ds - dBEmailSend - stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.