public class DBAlertAction extends DBAction
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
The Alert Action is the most commonly used action as it will generate a
DBAlert which can be used to notify a user or group when a particular
Event has been triggered through Email, SMS or application interface.
|
static java.lang.String |
DBCLASS_NAME
The Alert Action is the most commonly used action as it will generate a
DBAlert which can be used to notify a user or group when a particular
Event has been triggered through Email, SMS or application interface.
|
static java.lang.String |
DISABLE_ALERTS_ATT
If value set as attribute on datasource then alerts will not be processed
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBAlertAction(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
protected void |
extAutoEnterCreate()
Additional functionality when an object is created.
|
DBFile |
findDisplayIcon(java.lang.String... args)
Icon used to represent this event.
|
DBEmailAccount |
findEmailSenderAccount(java.lang.String... args)
Specifies the account that the email should be sent from.
|
DBEmailTemplate |
findEmailTemplate(java.lang.String... args)
Email Template used to send the email alert.
|
DBAlertLevel |
findLevel(java.lang.String... args)
Level of the Alert.
|
int |
getDisplayColor(java.lang.String... args) |
java.lang.String |
getDisplayFormat(java.lang.String... args) |
DBFile |
getDisplayIcon(java.lang.String... args) |
java.lang.String |
getDisplayTitle(java.lang.String... args) |
java.lang.String |
getEmailHTMLFormat(java.lang.String... args) |
DBEmailAccount |
getEmailSenderAccount(java.lang.String... args) |
java.lang.String |
getEmailSubjectFormat(java.lang.String... args) |
DBEmailTemplate |
getEmailTemplate(java.lang.String... args) |
java.lang.String |
getEmailTextFormat(java.lang.String... args) |
DBAlertLevel |
getLevel(java.lang.String... args) |
Contact[] |
getRecipients(DBObject base)
Retrieves the list of recipients that are to receive the alerts
|
java.lang.String |
getReplyToEmail(java.lang.String... args) |
java.lang.String |
getSmsFormat(java.lang.String... args) |
java.lang.String |
getSmsTextFormat(java.lang.String... args) |
boolean |
isAllowSuperUserAccess(java.lang.String... args) |
boolean |
isDisplayFg(java.lang.String... args) |
boolean |
isEmailFg(java.lang.String... args) |
boolean |
isExcludeNonUsers(java.lang.String... args) |
boolean |
isExcludeSender(java.lang.String... args) |
boolean |
isSmsFg(java.lang.String... args) |
void |
process(MutableDataSource mds,
DBObject base)
Process this action by creating an alert for each recipient
|
DBAlertAction |
setAllowSuperUserAccess(boolean value,
java.lang.String... args) |
DBAlertAction |
setDisplayColor(int value,
java.lang.String... args) |
DBAlertAction |
setDisplayFg(boolean value,
java.lang.String... args) |
DBAlertAction |
setDisplayFormat(java.lang.String value,
java.lang.String... args) |
DBAlertAction |
setDisplayIcon(com.aspc.dal.file.DBFile value,
java.lang.String... args) |
DBAlertAction |
setDisplayTitle(java.lang.String value,
java.lang.String... args) |
DBAlertAction |
setEmailFg(boolean value,
java.lang.String... args) |
DBAlertAction |
setEmailHTMLFormat(java.lang.String value,
java.lang.String... args) |
DBAlertAction |
setEmailSenderAccount(com.aspc.dal.dbobj.email.DBEmailAccount value,
java.lang.String... args) |
DBAlertAction |
setEmailSubjectFormat(java.lang.String value,
java.lang.String... args) |
DBAlertAction |
setEmailTemplate(com.aspc.dal.dbobj.email.DBEmailTemplate value,
java.lang.String... args) |
DBAlertAction |
setEmailTextFormat(java.lang.String value,
java.lang.String... args) |
DBAlertAction |
setExcludeNonUsers(boolean value,
java.lang.String... args) |
DBAlertAction |
setExcludeSender(boolean value,
java.lang.String... args) |
DBAlertAction |
setLevel(com.aspc.dal.workflow.DBAlertLevel value,
java.lang.String... args) |
DBAlertAction |
setReplyToEmail(java.lang.String value,
java.lang.String... args) |
DBAlertAction |
setSmsFg(boolean value,
java.lang.String... args) |
DBAlertAction |
setSmsFormat(java.lang.String value,
java.lang.String... args) |
DBAlertAction |
setSmsTextFormat(java.lang.String value,
java.lang.String... args) |
findKey, findType, getCondition, getDisplaySummary, getEvent, getID, getSeq, getSummary, getType, isApplicable, isInactive, makeQuery, setCondition, setEvent, setID, setInactive, setSeq, setSummary, setType
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, 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, extValidateField, 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 DISABLE_ALERTS_ATT
public DBAlertAction(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 boolean isAllowSuperUserAccess(java.lang.String... args)
@Nonnull public DBAlertAction setAllowSuperUserAccess(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getDisplayColor(java.lang.String... args)
@Nonnull public DBAlertAction setDisplayColor(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDisplayFg(java.lang.String... args)
@Nonnull public DBAlertAction setDisplayFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplayFormat(java.lang.String... args)
@Nonnull public DBAlertAction setDisplayFormat(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBFile getDisplayIcon(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFile findDisplayIcon(java.lang.String... args) throws NotFoundException
DBFile
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBFile was not found@Nonnull public DBAlertAction setDisplayIcon(com.aspc.dal.file.DBFile value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplayTitle(java.lang.String... args)
@Nonnull public DBAlertAction setDisplayTitle(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isEmailFg(java.lang.String... args)
@Nonnull public DBAlertAction setEmailFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getEmailHTMLFormat(java.lang.String... args)
@Nonnull public DBAlertAction setEmailHTMLFormat(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBEmailAccount getEmailSenderAccount(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBEmailAccount findEmailSenderAccount(java.lang.String... args) throws NotFoundException
DBEmailAccount
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBEmailAccount was not found@Nonnull public DBAlertAction setEmailSenderAccount(com.aspc.dal.dbobj.email.DBEmailAccount value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getEmailSubjectFormat(java.lang.String... args)
@Nonnull public DBAlertAction setEmailSubjectFormat(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBEmailTemplate getEmailTemplate(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBEmailTemplate findEmailTemplate(java.lang.String... args) throws NotFoundException
DBEmailTemplate
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBEmailTemplate was not found@Nonnull public DBAlertAction setEmailTemplate(com.aspc.dal.dbobj.email.DBEmailTemplate value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getEmailTextFormat(java.lang.String... args)
@Nonnull public DBAlertAction setEmailTextFormat(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isExcludeNonUsers(java.lang.String... args)
@Nonnull public DBAlertAction setExcludeNonUsers(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isExcludeSender(java.lang.String... args)
@Nonnull public DBAlertAction setExcludeSender(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBAlertLevel getLevel(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBAlertLevel findLevel(java.lang.String... args) throws NotFoundException
DBAlertLevel
(String,
Searchable)args
- the optional argumentsNotFoundException
- DBAlertLevel was not found@Nonnull public DBAlertAction setLevel(com.aspc.dal.workflow.DBAlertLevel value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getReplyToEmail(java.lang.String... args)
@Nonnull public DBAlertAction setReplyToEmail(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isSmsFg(java.lang.String... args)
@Nonnull public DBAlertAction setSmsFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getSmsFormat(java.lang.String... args)
@Nonnull public DBAlertAction setSmsFormat(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getSmsTextFormat(java.lang.String... args)
@Nonnull public DBAlertAction setSmsTextFormat(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@OverridingMethodsMustInvokeSuper protected void extAutoEnterCreate() throws java.lang.Exception
extAutoEnterCreate
in class DBObject
java.lang.Exception
- A serious problemcom.aspc.DBObj.DBObject#autoEnterCreate()
public void process(MutableDataSource mds, DBObject base) throws java.lang.Exception
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.