public class DBEmailFolder extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Identifies a folder on a mail server containing a users emails.
|
static java.lang.String |
DBCLASS_NAME
Identifies a folder on a mail server containing a users emails.
|
static java.lang.String |
UNSUBSCRIBE |
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBEmailFolder(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static DBEmailFolder |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected DBEmail |
createEmail(java.lang.String messageId,
MutableDataSource mds,
Message message) |
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
DBEmailAccount |
findAccount(java.lang.String... args)
The account.
|
static DBEmailFolder |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
Person |
findNotifyContactWhenIgnored(java.lang.String... args)
Notify Contact When Ignored.
|
DBEmailAccount |
getAccount(java.lang.String... args) |
java.lang.String |
getFolder(java.lang.String... args) |
int |
getID(java.lang.String... args) |
java.lang.String |
getIgnoredFolder(java.lang.String... args) |
java.util.Date |
getLastScanned(java.lang.String... args) |
protected MutableDataSource |
getNewMDS() |
Person |
getNotifyContactWhenIgnored(java.lang.String... args) |
java.lang.String |
getProcessedFolder(java.lang.String... args) |
java.lang.String |
getRuleSenderPattern(java.lang.String... args) |
java.util.Date |
getRuleSentAfterTS(java.lang.String... args) |
java.lang.String |
getWorkingFolder(java.lang.String... args) |
boolean |
isFiltered(java.lang.String... args) |
boolean |
isIncludeAlerts(java.lang.String... args) |
boolean |
isLeaveMsgOnServer(java.lang.String... args) |
protected boolean |
isMessageErrorNotification(Message message) |
protected boolean |
isReceivedMessageInteresting(Message message) |
boolean |
isReScan(java.lang.String... args) |
boolean |
isRuleRecipientExists(java.lang.String... args) |
boolean |
isRuleSenderExists(java.lang.String... args) |
boolean |
isScanStEmails(java.lang.String... args) |
protected boolean |
isUnsubsribe(Message message)
Determines if the message is an instruction to unsubscribe
|
static DBQuery<DBEmailFolder> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
void |
process() |
void |
processMessage(Folder folder,
Message message,
MutableDataSource mds,
boolean rescan) |
protected void |
reAssociateEmail(MutableDataSource mds,
DBEmail emailRO) |
protected int |
scan(Folder folder) |
DBEmailFolder |
setAccount(com.aspc.dal.dbobj.email.DBEmailAccount value,
java.lang.String... args) |
DBEmailFolder |
setFiltered(boolean value,
java.lang.String... args) |
DBEmailFolder |
setFolder(java.lang.String value,
java.lang.String... args) |
DBEmailFolder |
setID(int value,
java.lang.String... args) |
DBEmailFolder |
setIgnoredFolder(java.lang.String value,
java.lang.String... args) |
DBEmailFolder |
setIncludeAlerts(boolean value,
java.lang.String... args) |
DBEmailFolder |
setLastScanned(java.util.Date value,
java.lang.String... args) |
DBEmailFolder |
setLeaveMsgOnServer(boolean value,
java.lang.String... args) |
DBEmailFolder |
setNotifyContactWhenIgnored(com.aspc.dal.dbobj.contact.Person value,
java.lang.String... args) |
DBEmailFolder |
setProcessedFolder(java.lang.String value,
java.lang.String... args) |
DBEmailFolder |
setReScan(boolean value,
java.lang.String... args) |
DBEmailFolder |
setRuleRecipientExists(boolean value,
java.lang.String... args) |
DBEmailFolder |
setRuleSenderExists(boolean value,
java.lang.String... args) |
DBEmailFolder |
setRuleSenderPattern(java.lang.String value,
java.lang.String... args) |
DBEmailFolder |
setRuleSentAfterTS(java.util.Date value,
java.lang.String... args) |
DBEmailFolder |
setScanStEmails(boolean value,
java.lang.String... args) |
DBEmailFolder |
setUseListener(boolean value,
java.lang.String... args) |
DBEmailFolder |
setWorkingFolder(java.lang.String value,
java.lang.String... args) |
protected void |
updateEmail(MutableDataSource mds,
DBEmail emailRO,
Message message) |
protected void |
updateEmailErrors(MutableDataSource mds,
Message message) |
protected void |
updateUnsubscribe(MutableDataSource mds,
DBEmail emailRO)
Unsubscribes the sender of an email from any group emails
|
boolean |
useListener(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, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, eventFieldUpdated, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, 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, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.String UNSUBSCRIBE
public DBEmailFolder(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 DBEmailFolder 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, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- DBEmailAccount was not found@Nonnull public DBEmailFolder setAccount(com.aspc.dal.dbobj.email.DBEmailAccount value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isFiltered(java.lang.String... args)
@Nonnull public DBEmailFolder setFiltered(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getFolder(java.lang.String... args)
@Nonnull public DBEmailFolder setFolder(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getIgnoredFolder(java.lang.String... args)
@Nonnull public DBEmailFolder setIgnoredFolder(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isIncludeAlerts(java.lang.String... args)
@Nonnull public DBEmailFolder setIncludeAlerts(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getLastScanned(java.lang.String... args)
@Nonnull public DBEmailFolder setLastScanned(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isLeaveMsgOnServer(java.lang.String... args)
@Nonnull public DBEmailFolder setLeaveMsgOnServer(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Person getNotifyContactWhenIgnored(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findNotifyContactWhenIgnored(java.lang.String... args) throws NotFoundException
Person
(Integer,
Searchable)args
- the optional argumentsNotFoundException
- Person was not found@Nonnull public DBEmailFolder setNotifyContactWhenIgnored(com.aspc.dal.dbobj.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getProcessedFolder(java.lang.String... args)
@Nonnull public DBEmailFolder setProcessedFolder(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isReScan(java.lang.String... args)
@Nonnull public DBEmailFolder setReScan(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isRuleRecipientExists(java.lang.String... args)
@Nonnull public DBEmailFolder setRuleRecipientExists(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isRuleSenderExists(java.lang.String... args)
@Nonnull public DBEmailFolder setRuleSenderExists(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getRuleSenderPattern(java.lang.String... args)
@Nonnull public DBEmailFolder setRuleSenderPattern(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getRuleSentAfterTS(java.lang.String... args)
@Nonnull public DBEmailFolder setRuleSentAfterTS(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isScanStEmails(java.lang.String... args)
@Nonnull public DBEmailFolder setScanStEmails(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean useListener(java.lang.String... args)
@Nonnull public DBEmailFolder setUseListener(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getWorkingFolder(java.lang.String... args)
@Nonnull public DBEmailFolder setWorkingFolder(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBEmailFolder 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<DBEmailFolder> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBEmailFolder 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 @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
list
- The validation listfield
- The field to be validatedjava.lang.Exception
- A serious problempublic void process() throws java.lang.Exception
java.lang.Exception
- a serious problemprotected int scan(@Nonnull Folder folder) throws java.lang.Exception
folder
- java.lang.Exception
- a serious problempublic void processMessage(@Nonnull Folder folder, @Nonnull Message message, @Nonnull MutableDataSource mds, boolean rescan) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue protected boolean isReceivedMessageInteresting(@Nonnull Message message) throws java.lang.Exception
message
- the messagejava.lang.Exception
- a serious problem@CheckReturnValue protected boolean isMessageErrorNotification(@Nonnull Message message) throws java.lang.Exception
message
- the messagejava.lang.Exception
- a serious problemprotected void updateEmailErrors(@Nonnull MutableDataSource mds, @Nonnull Message message)
mds
- the mutable data sourcemessage
- the message@CheckReturnValue protected boolean isUnsubsribe(@Nonnull Message message) throws java.lang.Exception
message
- the messagejava.lang.Exception
- a serious problemprotected void updateUnsubscribe(@Nonnull MutableDataSource mds, @Nullable DBEmail emailRO) throws java.lang.Exception
mds
- the mutable data sourceemailRO
- the emailjava.lang.Exception
- a serious problemprotected void updateEmail(@Nonnull MutableDataSource mds, @Nonnull DBEmail emailRO, @Nonnull Message message) throws java.lang.Exception
mds
- the mutable data sourceemailRO
- message
- the messagejava.lang.Exception
- a serious problemprotected void reAssociateEmail(@Nonnull MutableDataSource mds, @Nonnull DBEmail emailRO) throws java.lang.Exception
mds
- the mutable data sourceemailRO
- java.lang.Exception
- a serious problem@CheckReturnValue @Nonnull protected MutableDataSource getNewMDS() throws java.lang.Exception
java.lang.Exception
- a serious problem@CheckReturnValue @Nonnull protected DBEmail createEmail(@Nonnull java.lang.String messageId, @Nonnull MutableDataSource mds, @Nonnull Message message) throws java.lang.Exception
messageId
- the message idmds
- the mutable data sourcemessage
- the messagejava.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.