public class Alarm extends AlarmBase implements LimitableToMyTISMAdresstypI
Modifier and Type | Class and Description |
---|---|
static class |
Alarm.AlarmDefinitionException |
ATT_Absender, ATT_Aktiv, ATT_AlarmAusloesungen, ATT_AnhaengeScript, ATT_AutomatischDeaktiviertAm, ATT_BeiAusloesungBenachrichtigen, ATT_BeiAusloesungBenachrichtigenAdressen, ATT_BeiAusloesungBenachrichtigenBCC, ATT_BeiAusloesungMitAntwortAn, ATT_BenachrichtigungsScript, ATT_BenachrichtigungsVorlage, ATT_Benutzer, ATT_BeschraenktAufAdresstypen, ATT_Gruppen, ATT_LetzterFehler, ATT_LetzterFehlerAm, ATT_MaxAlterAusloesung, ATT_NotifyOnFailure, ATT_Prioritaet, ATT_SaveErrorHandlingScript, ATT_TestBenachrichtigungsAuftrag, ATT_Testmodus, ATT_Tid, ATT_Verantwortlicher, ATT_Versendungen, ATT_WillSignatur, ATT_WillVerschluesselung, ENT_Alarm
ATT_Beschreibung, ATT_KinderRefs, ATT_L10nBeschreibung, ATT_L10nName, ATT_Name, ENT_Benannt
ATT_AlsAntwortAnBeiAuftraegen, ATT_AlsEmpfaengerBCCBeiAuftraegen, ATT_AlsEmpfaengerBeiAuftraegen, ATT_AlsKontextBOBeiAuftraegen, ATT_WirdAlsAntwortAnVerwendetBeiAlarmen, ATT_WirdBenachrichtigtBCCBeiAlarm, ATT_WirdBenachrichtigtBeiAlarm, ENT_CoreBO
BLOB_KEY, CANCEL_RECALC_CALLED, D_0, D_1, D_10, D_100, D_1000, D_10000, D_5, D_MINUS_1, D_MINUS_ONE, D_ONE, D_ZERO, doExWriteLRMFunction, EMPTY_ARRAY, F_0, F_1, L_0, L10N_KEY_BO_INSTANTIATION, L10N_KEY_BO_WITH_PROTECTED_CONSTRUCTOR, NULL_AGGREGATE, NULL_ITERATOR
ATT_Badge, ATT_Badge2, ATT_Badge3, ATT_Badge4, ATT_BLOBCreatedBy, ATT_BLOBCreatedOn, ATT_BLOBDeletedBy, ATT_BLOBDeletedOn, ATT_BLOBLastModifiedBy, ATT_BLOBLastModifiedOn, ATT_Bot, ATT_Crea, ATT_CreatedBy, ATT_CreatedModifiedText, ATT_Id, ATT_InvolvedInProcs, ATT_LastModifiedBy, ATT_Ldel, ATT_Lmod, ATT_Procs, EMPTY_ARRAY, ENT_BO
Constructor and Description |
---|
Alarm()
This exception signifies some "persistent" error in the definition of an
Alarm which will prevent the Alarm
from working until the definition is corrected. |
Modifier and Type | Method and Description |
---|---|
void |
addBeiAusloesungBenachrichtigen(CoreBO bo) |
void |
addBeiAusloesungBenachrichtigenBCC(CoreBO bo) |
void |
addBenutzer(Benutzer ben) |
void |
addGruppe(Gruppe ben) |
void |
afterVerifyOnServer(java.lang.Long nodeNumber,
Benutzer user,
Transaction tx) |
boolean |
canUseAnhaengeScript() |
java.util.Map<java.lang.Long,NotifiableI> |
getAlleBeiAusloesungBenachrichtigen()
Convenience method to get all "recipients".
|
GroovyScript |
getAttachmentsScript() |
java.util.Map<java.lang.Long,NotifiableI> |
getBeiAusloesungBenachrichtigenAdressen()
Convenience/Debugging method that gives all the collected "final"
MyTISMAdresse instances to which
notifications will be sent. |
java.util.Map<java.lang.Long,NotifiableI> |
getBeiAusloesungBenachrichtigenAdressen(java.util.Set withoutAdrs) |
java.util.Map<java.lang.Long,Benutzer> |
getBenutzer()
A subset of
BeiAusloesungBenachrichtigenBCC , for backwards compatibility and easier handling. |
GroovyScript |
getCompiledSaveErrorHandlingScript() |
java.util.Map<java.lang.Long,CoreBO> |
getEmpfaengerAls(AttributeI attr,
boolean asBCC)
Provide virtual getters for "recipients-by-class attributes" for the GUI.
|
java.util.Map<java.lang.Long,Gruppe> |
getGruppen()
A subset of
BeiAusloesungBenachrichtigenBCC , for backwards compatibility and easier handling. |
java.util.Date |
getOldestAllowedTriggerDate()
If this alarm has a
MaxAlterAusloesung set, return the date longest in the past for which the alarm is
still allowed to trigger. |
java.util.Date |
getOldestAllowedTriggerDate(java.util.Date backwardsFrom) |
GroovyScript |
getTriggerActionScript() |
java.util.Map<java.lang.Long,Benachrichtigungsversendung> |
getVersendungen() |
void |
init(SchemaI schema,
Benutzer user)
Called once by the
AlarmHandler when the Alarm is first loaded from the server on startup. |
boolean |
isMandatory(AttributeI attr)
Tells if the passed
AttributeI is mandatory in the context of this BO
(for the UI and access via the schema). |
void |
onChange(BP _bp,
KernelDatabaseAccessorI _kda,
Benutzer _user)
Called when this Alarm has just been changed on the server.
|
void |
onChange(BP _bp,
KernelDatabaseAccessorI _kda,
Benutzer _user,
boolean _skipStatesRecalc) |
void |
onCreate(KernelDatabaseAccessorI kda,
Benutzer user)
Called when this alarm has just been created on the server.
|
void |
onDelete(BP bp,
KernelDatabaseSaverI dbm,
Benutzer user)
Called when this Alarm has just been deleted on the server.
|
void |
removeBenutzer(Benutzer ben) |
void |
removeGruppe(Gruppe ben) |
void |
setAktiv(java.lang.Boolean f) |
void |
setAnhaengeScript(java.lang.String script) |
void |
setBenachrichtigungsScript(java.lang.String script) |
void |
setSaveErrorHandlingScript(java.lang.String script) |
boolean |
storeLastError(java.lang.Exception ex)
Stores information about the given error in this
Alarm . |
boolean |
storeLastError(java.lang.Exception ex,
java.lang.String msg) |
boolean |
storeLastError(java.lang.Exception ex,
java.lang.String msg,
int maxErrors) |
boolean |
storeLastError(java.lang.Exception ex,
java.lang.String msg,
int maxErrors,
long maxAgeInMS) |
java.lang.String |
toString()
Custom
toString() implementation, mainly for logging and debugging. |
void |
transferDataFrom(Alarm alarmOld)
Transfers data that should be retained while the alarm system is running
from one in-memory instance of this
Alarm to a new in-memory
instance. |
void |
verifyOnClient(BasicClientContextI ctx) |
void |
verifyOnServer(java.lang.Long nodeNumber,
Benutzer user,
Transaction tx) |
addAlarmAusloesung, addBeiAusloesungMitAntwortAn, addBeschraenktAufAdresstyp, copyFrom, copyFrom, equalPayload, getAbsender, getAktiv, getAktivNN, getAktivNN, getAlarmAusloesungen, getAlarmAusloesungenIterator, getAnhaengeScript, getAnhaengeScriptNE, getAnhaengeScriptNN, getAnhaengeScriptNN, getAutomatischDeaktiviertAm, getBeiAusloesungBenachrichtigen, getBeiAusloesungBenachrichtigenAdressenIterator, getBeiAusloesungBenachrichtigenBCC, getBeiAusloesungBenachrichtigenBCCIterator, getBeiAusloesungBenachrichtigenIterator, getBeiAusloesungMitAntwortAn, getBeiAusloesungMitAntwortAnIterator, getBenachrichtigungsScript, getBenachrichtigungsScriptNE, getBenachrichtigungsScriptNN, getBenachrichtigungsScriptNN, getBenachrichtigungsVorlage, getBenutzerIterator, getBeschraenktAufAdresstypen, getBeschraenktAufAdresstypenIterator, getGruppenIterator, getLetzterFehler, getLetzterFehlerAm, getLetzterFehlerNE, getLetzterFehlerNN, getLetzterFehlerNN, getMaxAlterAusloesung, getMaxAlterAusloesungNN, getMaxAlterAusloesungNN, getNotifyOnFailure, getPrioritaet, getPrioritaetNN, getPrioritaetNN, getSaveErrorHandlingScript, getSaveErrorHandlingScriptNE, getSaveErrorHandlingScriptNN, getSaveErrorHandlingScriptNN, getTestBenachrichtigungsAuftrag, getTestmodus, getTestmodusNN, getTestmodusNN, getTid, getTidNE, getTidNN, getTidNN, getVerantwortlicher, getVersendungenIterator, getWillSignatur, getWillSignaturNN, getWillSignaturNN, getWillVerschluesselung, getWillVerschluesselungNN, getWillVerschluesselungNN, istAktiv, istTestmodus, needAbsender, needAktiv, needAnhaengeScript, needAutomatischDeaktiviertAm, needBenachrichtigungsScript, needBenachrichtigungsVorlage, needLetzterFehler, needLetzterFehlerAm, needMaxAlterAusloesung, needNotifyOnFailure, needPopulatedAlarmAusloesungen, needPopulatedBeiAusloesungBenachrichtigen, needPopulatedBeiAusloesungBenachrichtigenAdressen, needPopulatedBeiAusloesungBenachrichtigenBCC, needPopulatedBeiAusloesungMitAntwortAn, needPopulatedBenutzer, needPopulatedBeschraenktAufAdresstypen, needPopulatedGruppen, needPopulatedVersendungen, needPrioritaet, needSaveErrorHandlingScript, needTestBenachrichtigungsAuftrag, needTestmodus, needTid, needVerantwortlicher, needWillSignatur, needWillVerschluesselung, pgetAlarmAusloesungenLazy, pgetBeiAusloesungBenachrichtigenBCCLazy, pgetBeiAusloesungBenachrichtigenLazy, pgetBeiAusloesungMitAntwortAnLazy, pgetBeschraenktAufAdresstypenLazy, readExternal, removeAlarmAusloesung, removeBeiAusloesungBenachrichtigen, removeBeiAusloesungBenachrichtigenBCC, removeBeiAusloesungMitAntwortAn, removeBeschraenktAufAdresstyp, setAbsender, setAlarmAusloesungen, setAutomatischDeaktiviertAm, setBeiAusloesungBenachrichtigen, setBeiAusloesungBenachrichtigenBCC, setBeiAusloesungMitAntwortAn, setBenachrichtigungsVorlage, setBeschraenktAufAdresstypen, setBOLoader, setLetzterFehler, setLetzterFehlerAm, setMaxAlterAusloesung, setNotifyOnFailure, setPrioritaet, setTestBenachrichtigungsAuftrag, setTestmodus, setTid, setVerantwortlicher, setWillSignatur, setWillVerschluesselung, slim, slim, writeExternal
compareTo, createTID, createTID, getL10nBeschreibung, getL10nName, getPairStorage, inputAsBenanntRelation, inputAsBenanntRelation, inputAsBenanntRelation, inputAsBenanntRelation, inputAsMultiBenanntRelation, inputAsMultiBenanntRelation, inputAsMultiBenanntRelation, inputAsMultiRelation, inputAsMultiRelation, inputAsMultiRelation, inputAsRelation, inputAsRelation, inputAsRelation, inputAsRelation, outputAsBenanntRelation, outputAsBenanntRelation, outputAsMultiBenanntRelation, outputAsMultiBenanntRelation, outputAsMultiRelation, outputAsMultiRelation, outputAsRelation, outputAsRelation, outputAsRelation, outputBOTName, outputIntoElement, outputIntoElement, storePreparedRelationQueryResult
addKinderRef, getBeschreibung, getBeschreibungNE, getBeschreibungNN, getBeschreibungNN, getKinderRefs, getKinderRefsIterator, getL10nBeschreibungNE, getL10nBeschreibungNN, getL10nBeschreibungNN, getL10nNameNE, getL10nNameNN, getL10nNameNN, getName, getNameNE, getNameNN, getNameNN, needBeschreibung, needL10nBeschreibung, needL10nName, needName, needPopulatedKinderRefs, pgetKinderRefsLazy, removeKinderRef, setBeschreibung, setKinderRefs, setName
addAlsAntwortAnBeiAuftrag, addAlsEmpfaengerBCCBeiAuftrag, addAlsEmpfaengerBeiAuftrag, addAlsKontextBOBeiAuftrag, addWirdAlsAntwortAnVerwendetBeiAlarm, addWirdBenachrichtigtBCCBeiAlarm, addWirdBenachrichtigtBeiAlarm, getAlsAntwortAnBeiAuftraegen, getAlsAntwortAnBeiAuftraegenIterator, getAlsEmpfaengerBCCBeiAuftraegen, getAlsEmpfaengerBCCBeiAuftraegenIterator, getAlsEmpfaengerBeiAuftraegen, getAlsEmpfaengerBeiAuftraegenIterator, getAlsKontextBOBeiAuftraegen, getAlsKontextBOBeiAuftraegenIterator, getWirdAlsAntwortAnVerwendetBeiAlarmen, getWirdAlsAntwortAnVerwendetBeiAlarmenIterator, getWirdBenachrichtigtBCCBeiAlarm, getWirdBenachrichtigtBCCBeiAlarmIterator, getWirdBenachrichtigtBeiAlarm, getWirdBenachrichtigtBeiAlarmIterator, needPopulatedAlsAntwortAnBeiAuftraegen, needPopulatedAlsEmpfaengerBCCBeiAuftraegen, needPopulatedAlsEmpfaengerBeiAuftraegen, needPopulatedAlsKontextBOBeiAuftraegen, needPopulatedWirdAlsAntwortAnVerwendetBeiAlarmen, needPopulatedWirdBenachrichtigtBCCBeiAlarm, needPopulatedWirdBenachrichtigtBeiAlarm, pgetAlsAntwortAnBeiAuftraegenLazy, pgetAlsEmpfaengerBCCBeiAuftraegenLazy, pgetAlsEmpfaengerBeiAuftraegenLazy, pgetAlsKontextBOBeiAuftraegenLazy, pgetWirdAlsAntwortAnVerwendetBeiAlarmenLazy, pgetWirdBenachrichtigtBCCBeiAlarmLazy, pgetWirdBenachrichtigtBeiAlarmLazy, removeAlsAntwortAnBeiAuftrag, removeAlsEmpfaengerBCCBeiAuftrag, removeAlsEmpfaengerBeiAuftrag, removeAlsKontextBOBeiAuftrag, removeWirdAlsAntwortAnVerwendetBeiAlarm, removeWirdBenachrichtigtBCCBeiAlarm, removeWirdBenachrichtigtBeiAlarm, setAlsAntwortAnBeiAuftraegen, setAlsEmpfaengerBCCBeiAuftraegen, setAlsEmpfaengerBeiAuftraegen, setAlsKontextBOBeiAuftraegen, setWirdAlsAntwortAnVerwendetBeiAlarmen, setWirdBenachrichtigtBCCBeiAlarm, setWirdBenachrichtigtBeiAlarm
_set, $, $, $, $$, $$bo, $$o, $$r, $$ri, $$ri, acquireTxWriteLock, add, afterSaveOnClient, afterSaveOnServer, afterVerifyOnClient, aggregate, aggregate, aggregate, badge, badge, beforeVerifyOnClient, beforeVerifyOnServer, bumpVersion, cacheLocally, cacheLocally, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cancelCheckConstraints, cancelRecalc, cancelRecalcViaLoadingTransaction, clone, commitTransaction, computeTransientPropertyIfAbsent, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, consumeAndAssureTransientPropertyExists, copyBLOBFrom, createCopy, createCopy, deepClone, deepClone, delete, describe, describe, describe, describe, describe, describe, describe, describe, describe, describe, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeNE, describeNE, describeNE, describeNE, describeNE, destub, equalPayload, equalPayload, equalPayload, equalPayload, equals, equalsBO, equalsBO, equalsRegardingAttrs, exportBLOB, exReadString, exWriteString, filterDeleted, filterDeleted, filterDeleted, forgetTransientBLOBHandle, frap, getAsBOInIssueReports, getAsBOInIssueReportsIterator, getAsString, getBackendBOLoaderWithPersistenceHandler, getBadge, getBadge, getBadge2, getBadge3, getBadge4, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOBAsDataInput, getBLOBAsInputStream, getBLOBCreatedBy, getBLOBCreatedOn, getBLOBDeletedBy, getBLOBDeletedOn, getBLOBInfo, getBLOBLastModifiedBy, getBLOBLastModifiedOn, getBOLoader, getBot, getBOVersion, getBytes, getCache, getCache, getCacheNT, getCacheNT, getCacheProvider, getCacheProvider, getClazz, getCreatedBy, getCreatedModifiedText, getDefaultScriptImportsList, getDefaultScriptImportsList, getDefaultScriptImportsList, getDescribingBOWrapper, getDescribingBOWrapper, getEventProvider, getEventProvider, getId, getInvolvedInProcs, getInvolvedInProcsIterator, getLastModifiedBy, getLazyData, getLoadingTransaction, getNullIterator, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getPermissionHandler, getProcs, getProcsIterator, getRootLoaderSchema, getSchema, getSizeFast, getTransaction, getTransientProperty, getTransientProperty, getWrappedTransientProperty, hasActiveTransaction, hasBLOB, hasBLOBOnServerSide, hasBOAssignedTempId, hashCode, hasRelationObjects, hasRelationObjects, hasSessionAssignedTempId, hasTempId, hasTempIdForNewBOs, hasTransientProperty, hasTransientPropertyUnfiltered, includeAllowed, includeInTransaction, invalidateBLOBCache, isBOAssignedTempId, isCompoundChangeInProgress, isCurrentTransactionUnderAdminControl, isIgnoreModificationConstraints, isNew, isReadOnly, isServerSideAndLoadedReadOnly, isSessionAssignedTempId, isStub, isTempId, isTempIdForNewInstance, isTemporary, isVisible, isWriteable, markCompoundChangeInProgress, markDelete, markUndelete, needLoadingTransaction, needsReload, needTransactionInclusion, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, nextTempId, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBusOfAdd, notifyMessageBusOfRemove, nullSafeCompareTo, nullSafeCompareTo, nullSafeContainsBO, nullSafeContainsBO, nullSafeEquals, nullSafeEqualsBO, nullSafeEqualsBO, ofStub, propertyMissing, propertyMissing, releaseCompoundChangeInProgress, releaseTxWriteLock, remove, removeBLOB, requireNonEmptyRelation, requireNonNullAttribute, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, setAsString, setBadge, setBadge, setBadge2, setBadge3, setBadge4, setBOLoaderNoCascade, setBOLoaderNoCascade, setBot, setId, setId, setIgnoreModificationConstraints, setLazyData, setTempId, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, slim, slim, storeBLOB, storeBLOB, storeBLOB, storeBLOB, stub, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, undelete, wrapIfGroovy
getCrea, getLdel, getLmod, isDeleted, isLdel, setCrea, setLdel, setLdel, setLmod
getInstanceSpecificLocale, getInstanceSpecificPaths, l10n, l10n, l10n, l10n, l10n, l10n, l10n
filterPermittedAddresses, getBeschraenktAufAdresstypen, getPermittedTypesAsString, permitsTypeOf, verifyUniqueMyTISMAdresstyp
bumpVersion, cancelCheckConstraints, consumeAndAssureTransientPropertyExists, contains, equalsBO, equalsBO, getAttribute, getAttribute, getBLOB, getBLOB, getBOVersion, getClazz, getCrea, getEntity, getEntity, getRootLoaderSchema, getSchema, getTransientProperty, hasBLOB, hasTransientProperty, hasTransientPropertyUnfiltered, isDeleted, isNew, isReadOnly, isSubEntityOf, isSubEntityOf, isTemporary, isVisible, setTransientProperty, toRelationMapRO, toRelationMapRO
collectIds, collectIds, getCommaSeparatedIdList, getId, toMap, toMap
collectDescribe, collectDescribe, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, describe, describe, describe, describe, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeNE, describeNE, join, join, join, notEmptyDescription
public Alarm()
Alarm
which will prevent the Alarm
from working until the definition is corrected.public void verifyOnClient(BasicClientContextI ctx)
verifyOnClient
in interface SaveVetoI
verifyOnClient
in class BO
public void verifyOnServer(java.lang.Long nodeNumber, Benutzer user, Transaction tx) throws SaveVetoException
verifyOnServer
in interface SaveVetoI
verifyOnServer
in class BO
SaveVetoException
public void afterVerifyOnServer(java.lang.Long nodeNumber, Benutzer user, Transaction tx) throws SaveVetoException
afterVerifyOnServer
in interface SaveAwareI
afterVerifyOnServer
in class BO
SaveVetoException
public boolean isMandatory(AttributeI attr)
BO
AttributeI
is mandatory in the context of this BO
(for the UI and access via the schema).
Please note that the schema-defined, not BO-related mandatories are taken into account here as well,
i.e. the method will consistently return true if the attribute is marked in the schema as
unless overridden in a subclass. Subclasses may override this method to add their own rules. If no rule exists in the subclass, the decision should always be delegated to super instead of just returning false to avoid inadvertenly breaking the rules defined in super-classes or the schema. You must never change the signature of this method, as subclasses override this and a lot of code would break or need to be adjusted.
isMandatory
in interface BOI
isMandatory
in class BO
AttributeI
is mandatory in the context of this BO
public GroovyScript getTriggerActionScript()
public void setBenachrichtigungsScript(java.lang.String script)
setBenachrichtigungsScript
in class AlarmBase
public GroovyScript getAttachmentsScript()
public void setAnhaengeScript(java.lang.String script)
setAnhaengeScript
in class AlarmBase
public GroovyScript getCompiledSaveErrorHandlingScript()
public void setSaveErrorHandlingScript(java.lang.String script)
setSaveErrorHandlingScript
in class AlarmBase
public void onCreate(KernelDatabaseAccessorI kda, Benutzer user) throws Alarm.AlarmDefinitionException, java.lang.InterruptedException
dbm
- a de.ipcon.db.KernelDatabaseAccessorI
instance for accessing the database,
etc. if necessary during initializationuser
- a Benutzer
instance necessary only for a possible
initialization of a BOMaske
for some Alarm
subclassesAlarm.AlarmDefinitionException
java.lang.InterruptedException
public void init(SchemaI schema, Benutzer user) throws Alarm.AlarmDefinitionException
AlarmHandler
when the Alarm
is first loaded from the server on startup.Alarm.AlarmDefinitionException
public void onChange(BP _bp, KernelDatabaseAccessorI _kda, Benutzer _user) throws Alarm.AlarmDefinitionException, java.lang.InterruptedException
Alarm.AlarmDefinitionException
java.lang.InterruptedException
public void onChange(BP _bp, KernelDatabaseAccessorI _kda, Benutzer _user, boolean _skipStatesRecalc) throws Alarm.AlarmDefinitionException, java.lang.InterruptedException
Alarm.AlarmDefinitionException
java.lang.InterruptedException
public void onDelete(BP bp, KernelDatabaseSaverI dbm, Benutzer user)
bp
- the BP of the deletion (not used here).dbm
- a KernelDatabaseSaverI used for accessing the backend.user
- the Benutzer who deleted the Alarm (not used here).public java.util.Map<java.lang.Long,Benachrichtigungsversendung> getVersendungen()
getVersendungen
in class AlarmBase
public java.lang.String toString()
toString()
implementation, mainly for logging and debugging.public boolean canUseAnhaengeScript()
public java.util.Date getOldestAllowedTriggerDate()
MaxAlterAusloesung
set, return the date longest in the past for which the alarm is
still allowed to trigger.backwardsFrom
- if given that date is used as the point in time from which backwards the oldest allowed
trigger date is calculated; if null (the default) the current date and time will be usedMaxAlterAusloesung
is set for this alarmpublic java.util.Date getOldestAllowedTriggerDate(java.util.Date backwardsFrom)
public java.util.Map<java.lang.Long,CoreBO> getEmpfaengerAls(AttributeI attr, boolean asBCC)
public java.util.Map<java.lang.Long,Benutzer> getBenutzer()
BeiAusloesungBenachrichtigenBCC
, for backwards compatibility and easier handling.getBenutzer
in class AlarmBase
public void addBenutzer(Benutzer ben)
addBenutzer
in class AlarmBase
public void removeBenutzer(Benutzer ben)
removeBenutzer
in class AlarmBase
public java.util.Map<java.lang.Long,Gruppe> getGruppen()
BeiAusloesungBenachrichtigenBCC
, for backwards compatibility and easier handling.getGruppen
in class AlarmBase
public void removeGruppe(Gruppe ben)
removeGruppe
in class AlarmBase
public void addBeiAusloesungBenachrichtigen(CoreBO bo)
addBeiAusloesungBenachrichtigen
in class AlarmBase
public void addBeiAusloesungBenachrichtigenBCC(CoreBO bo)
addBeiAusloesungBenachrichtigenBCC
in class AlarmBase
public java.util.Map<java.lang.Long,NotifiableI> getAlleBeiAusloesungBenachrichtigen()
BeiAusloesungBenachrichtigen
and BeiAusloesungBenachrichtigenBCC
public java.util.Map<java.lang.Long,NotifiableI> getBeiAusloesungBenachrichtigenAdressen()
MyTISMAdresse
instances to which
notifications will be sent.getBeiAusloesungBenachrichtigenAdressen
in class AlarmBase
withoutAdrs
- a set to which, when not null, will be added all "Empfaenger" entries that had no
MyTISMAdresse
availableMyTISMAdresse
instances to which notifications will be sentpublic java.util.Map<java.lang.Long,NotifiableI> getBeiAusloesungBenachrichtigenAdressen(java.util.Set withoutAdrs)
public void transferDataFrom(Alarm alarmOld)
Alarm
to a new in-memory
instance.alarmOld
- a different in-memory instance of this Alarm
from which data should be transferredpublic boolean storeLastError(java.lang.Exception ex)
Alarm
. Sets the values of LetzterFehlerAm
(to
"now") and LetzterFehler
.
Also internally memorizes that this Alarm
ran into an error and at which time. If the number of errors in
the configured timespan (an hour by default) is larger than the allowed number of errors per timespan (25/h by
default) returns true; otherwise returns false.ex
- the Exception
that occurred in some code associated with this Alarm
msg
- an (optional) message explaining the error; may be nullmaxErrors
- the maximum number of errors allowed to occur in the given timespan; 25 by defaultmaxAgeInMS
- the timespan used for checking the number of errors in milliseconds; 36000 (one hour) by
defaultpublic boolean storeLastError(java.lang.Exception ex, java.lang.String msg)
public boolean storeLastError(java.lang.Exception ex, java.lang.String msg, int maxErrors)
public boolean storeLastError(java.lang.Exception ex, java.lang.String msg, int maxErrors, long maxAgeInMS)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.