public class Alarm extends de.ipcon.db.core.AlarmBase implements LimitableToMyTISMAdresstypI
Modifier and Type | Class and Description |
---|---|
static class |
Alarm.AlarmDefinitionException
This exception signifies some "persistent" error in the definition of an
Alarm which will prevent the Alarm
from working until the definition is corrected. |
ATT_Absender, ATT_Aktiv, ATT_AlarmAusloesungen, ATT_AnhaengeScript, ATT_AutomatischDeaktiviertAm, ATT_BeiAusloesungBenachrichtigen, ATT_BeiAusloesungBenachrichtigenAdressen, ATT_BeiAusloesungBenachrichtigenBCC, ATT_BeiAusloesungBenachrichtigenCC, 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_AlsEmpfaengerCCBeiAuftraegen, ATT_AlsKontextBOBeiAuftraegen, ATT_WirdAlsAntwortAnVerwendetBeiAlarmen, ATT_WirdBenachrichtigtBCCBeiAlarm, ATT_WirdBenachrichtigtBeiAlarm, ATT_WirdBenachrichtigtCCBeiAlarm, 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() |
Modifier and Type | Method and Description |
---|---|
void |
addBeiAusloesungBenachrichtigen(CoreBO bo)
Adds the passed
CoreBO as "BeiAusloesungBenachrichtigen" if it is an instance of NotifiableI . |
void |
addBeiAusloesungBenachrichtigenBCC(CoreBO bo)
Adds the passed
CoreBO as "BeiAusloesungBenachrichtigenBCC" if it is an instance of NotifiableI . |
void |
addBeiAusloesungBenachrichtigenCC(CoreBO bo)
Adds the passed
CoreBO as "BeiAusloesungBenachrichtigenCC" if it is an instance of NotifiableI . |
void |
addBenutzer(Benutzer user)
Deprecated.
Use
addBeiAusloesungBenachrichtigen(CoreBO) , #addBeiAusloesungBenachrichtigenCC() or addBeiAusloesungBenachrichtigenBCC(CoreBO) instead, as required. |
void |
addGruppe(Gruppe group)
Deprecated.
Use
addBeiAusloesungBenachrichtigen(CoreBO) , #addBeiAusloesungBenachrichtigenCC() or addBeiAusloesungBenachrichtigenBCC(CoreBO) instead, as required. |
void |
afterVerifyOnServer(java.lang.Long nodeNumber,
Benutzer user,
Transaction tx) |
boolean |
canUseAnhaengeScript() |
java.util.Map<java.lang.Long,NotifiableI> |
getAlleBeiAusloesungBenachrichtigen()
Convenience method to retrieve all recipients from the
BeiAusloesungBenachrichtigen , BeiAusloesungBenachrichtigenCC
and BeiAusloesungBenachrichtigenBCC relations. |
GroovyScript |
getAttachmentsScript() |
java.util.Map<java.lang.Long,MyTISMAdresse> |
getBeiAusloesungBenachrichtigenAdressen()
Returns all the collected "final"
MyTISMAdresse instances to which notifications will
be sent. |
java.util.Map<java.lang.Long,Benutzer> |
getBenutzer()
Deprecated.
Use
AlarmBase.getBeiAusloesungBenachrichtigen() , AlarmBase.getBeiAusloesungBenachrichtigenCC() or AlarmBase.getBeiAusloesungBenachrichtigenBCC() instead, as required. |
GroovyScript |
getCompiledSaveErrorHandlingScript() |
java.util.Map<java.lang.Long,Gruppe> |
getGruppen()
Deprecated.
Use
AlarmBase.getBeiAusloesungBenachrichtigen() , AlarmBase.getBeiAusloesungBenachrichtigenCC() or AlarmBase.getBeiAusloesungBenachrichtigenBCC() instead, as required. |
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) |
java.util.Map<java.lang.Long,CoreBO> |
getReceiversMatchingRelationType(AttributeI attr) |
java.util.Map<java.lang.Long,CoreBO> |
getReceiversMatchingRelationTypeBCC(AttributeI attr) |
java.util.Map<java.lang.Long,CoreBO> |
getReceiversMatchingRelationTypeCC(AttributeI attr) |
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 user)
Deprecated.
Use
AlarmBase.removeBeiAusloesungBenachrichtigen(CoreBO) , #removeBeiAusloesungBenachrichtigenCC() or AlarmBase.removeBeiAusloesungBenachrichtigenBCC(CoreBO) instead, as required. |
void |
removeGruppe(Gruppe group)
Deprecated.
Use
AlarmBase.removeBeiAusloesungBenachrichtigen(CoreBO) , #removeBeiAusloesungBenachrichtigenCC() or AlarmBase.removeBeiAusloesungBenachrichtigenBCC(CoreBO) instead, as required. |
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) |
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, getBeiAusloesungBenachrichtigenCC, getBeiAusloesungBenachrichtigenCCIterator, 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, needPopulatedBeiAusloesungBenachrichtigenCC, needPopulatedBeiAusloesungMitAntwortAn, needPopulatedBenutzer, needPopulatedBeschraenktAufAdresstypen, needPopulatedGruppen, needPopulatedVersendungen, needPrioritaet, needSaveErrorHandlingScript, needTestBenachrichtigungsAuftrag, needTestmodus, needTid, needVerantwortlicher, needWillSignatur, needWillVerschluesselung, pgetAlarmAusloesungenLazy, pgetBeiAusloesungBenachrichtigenBCCLazy, pgetBeiAusloesungBenachrichtigenCCLazy, pgetBeiAusloesungBenachrichtigenLazy, pgetBeiAusloesungMitAntwortAnLazy, pgetBeschraenktAufAdresstypenLazy, readExternal, removeAlarmAusloesung, removeBeiAusloesungBenachrichtigen, removeBeiAusloesungBenachrichtigenBCC, removeBeiAusloesungBenachrichtigenCC, removeBeiAusloesungMitAntwortAn, removeBeschraenktAufAdresstyp, setAbsender, setAlarmAusloesungen, setAutomatischDeaktiviertAm, setBeiAusloesungBenachrichtigen, setBeiAusloesungBenachrichtigenBCC, setBeiAusloesungBenachrichtigenCC, 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, addAlsEmpfaengerCCBeiAuftrag, addAlsKontextBOBeiAuftrag, addWirdAlsAntwortAnVerwendetBeiAlarm, addWirdBenachrichtigtBCCBeiAlarm, addWirdBenachrichtigtBeiAlarm, addWirdBenachrichtigtCCBeiAlarm, getAlsAntwortAnBeiAuftraegen, getAlsAntwortAnBeiAuftraegenIterator, getAlsEmpfaengerBCCBeiAuftraegen, getAlsEmpfaengerBCCBeiAuftraegenIterator, getAlsEmpfaengerBeiAuftraegen, getAlsEmpfaengerBeiAuftraegenIterator, getAlsEmpfaengerCCBeiAuftraegen, getAlsEmpfaengerCCBeiAuftraegenIterator, getAlsKontextBOBeiAuftraegen, getAlsKontextBOBeiAuftraegenIterator, getWirdAlsAntwortAnVerwendetBeiAlarmen, getWirdAlsAntwortAnVerwendetBeiAlarmenIterator, getWirdBenachrichtigtBCCBeiAlarm, getWirdBenachrichtigtBCCBeiAlarmIterator, getWirdBenachrichtigtBeiAlarm, getWirdBenachrichtigtBeiAlarmIterator, getWirdBenachrichtigtCCBeiAlarm, getWirdBenachrichtigtCCBeiAlarmIterator, needPopulatedAlsAntwortAnBeiAuftraegen, needPopulatedAlsEmpfaengerBCCBeiAuftraegen, needPopulatedAlsEmpfaengerBeiAuftraegen, needPopulatedAlsEmpfaengerCCBeiAuftraegen, needPopulatedAlsKontextBOBeiAuftraegen, needPopulatedWirdAlsAntwortAnVerwendetBeiAlarmen, needPopulatedWirdBenachrichtigtBCCBeiAlarm, needPopulatedWirdBenachrichtigtBeiAlarm, needPopulatedWirdBenachrichtigtCCBeiAlarm, pgetAlsAntwortAnBeiAuftraegenLazy, pgetAlsEmpfaengerBCCBeiAuftraegenLazy, pgetAlsEmpfaengerBeiAuftraegenLazy, pgetAlsEmpfaengerCCBeiAuftraegenLazy, pgetAlsKontextBOBeiAuftraegenLazy, pgetWirdAlsAntwortAnVerwendetBeiAlarmenLazy, pgetWirdBenachrichtigtBCCBeiAlarmLazy, pgetWirdBenachrichtigtBeiAlarmLazy, pgetWirdBenachrichtigtCCBeiAlarmLazy, removeAlsAntwortAnBeiAuftrag, removeAlsEmpfaengerBCCBeiAuftrag, removeAlsEmpfaengerBeiAuftrag, removeAlsEmpfaengerCCBeiAuftrag, removeAlsKontextBOBeiAuftrag, removeWirdAlsAntwortAnVerwendetBeiAlarm, removeWirdBenachrichtigtBCCBeiAlarm, removeWirdBenachrichtigtBeiAlarm, removeWirdBenachrichtigtCCBeiAlarm, setAlsAntwortAnBeiAuftraegen, setAlsEmpfaengerBCCBeiAuftraegen, setAlsEmpfaengerBeiAuftraegen, setAlsEmpfaengerCCBeiAuftraegen, setAlsKontextBOBeiAuftraegen, setWirdAlsAntwortAnVerwendetBeiAlarmen, setWirdBenachrichtigtBCCBeiAlarm, setWirdBenachrichtigtBeiAlarm, setWirdBenachrichtigtCCBeiAlarm
_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, getBLOBAsEncodedString, getBLOBAsEncodedString, getBLOBAsInputStream, getBLOBAsUTF8EncodedString, getBLOBCreatedBy, getBLOBCreatedOn, getBLOBDeletedBy, getBLOBDeletedOn, getBLOBInfo, getBLOBLastModifiedBy, getBLOBLastModifiedOn, getBOLoader, getBot, getBOVersion, getBytes, getCache, getCache, getCache, getCacheNT, 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, 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
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 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 de.ipcon.db.core.AlarmBase
public GroovyScript getAttachmentsScript()
public void setAnhaengeScript(java.lang.String script)
setAnhaengeScript
in class de.ipcon.db.core.AlarmBase
public GroovyScript getCompiledSaveErrorHandlingScript()
public void setSaveErrorHandlingScript(java.lang.String script)
setSaveErrorHandlingScript
in class de.ipcon.db.core.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 de.ipcon.db.core.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> getReceiversMatchingRelationType(AttributeI attr)
public java.util.Map<java.lang.Long,CoreBO> getReceiversMatchingRelationTypeCC(AttributeI attr)
public java.util.Map<java.lang.Long,CoreBO> getReceiversMatchingRelationTypeBCC(AttributeI attr)
@Deprecated public java.util.Map<java.lang.Long,Benutzer> getBenutzer()
AlarmBase.getBeiAusloesungBenachrichtigen()
, AlarmBase.getBeiAusloesungBenachrichtigenCC()
or AlarmBase.getBeiAusloesungBenachrichtigenBCC()
instead, as required.@Deprecated public void addBenutzer(Benutzer user)
addBeiAusloesungBenachrichtigen(CoreBO)
, #addBeiAusloesungBenachrichtigenCC()
or addBeiAusloesungBenachrichtigenBCC(CoreBO)
instead, as required.Benutzer
as "BeiAusloesungBenachrichtigenBCC".
This method adds the passed user as "BeiAusloesungBenachrichtigenBCC". For historical reasons, the naming may not be particularly appropriate, but it dates back to a time when the BCC/CC functionality did not yet exist in the notification system.
The group and user recipients have always been treated as "BCC" (i.e., nobody sees the other recipients), especially when sent as an email, but also in other places as required.
However, if addBenutzer(Benutzer)
or addGruppe(Gruppe)
suddenly add/remove them to/from the "BeiAusloesungBenachrichtigen"
instead of the "BeiAusloesungBenachrichtigenBCC" relation, these entries/recipients become visible to others, and there are some
places where this is definitely NOT desired.
addBenutzer
in class de.ipcon.db.core.AlarmBase
@Deprecated public void removeBenutzer(Benutzer user)
AlarmBase.removeBeiAusloesungBenachrichtigen(CoreBO)
, #removeBeiAusloesungBenachrichtigenCC()
or AlarmBase.removeBeiAusloesungBenachrichtigenBCC(CoreBO)
instead, as required.Benutzer
from "BeiAusloesungBenachrichtigenBCC".
This method removes the passed user from "BeiAusloesungBenachrichtigenBCC". For historical reasons, the naming may not be particularly appropriate, but it dates back to a time when the BCC/CC functionality did not yet exist in the notification system.
The group and user recipients have always been treated as "BCC" (i.e., nobody sees the other recipients), especially when sent as an email, but also in other places as required.
However, if addBenutzer(Benutzer)
or addGruppe(Gruppe)
suddenly add/remove them to/from the "BeiAusloesungBenachrichtigen"
instead of the "BeiAusloesungBenachrichtigenBCC" relation, these entries/recipients become visible to others, and there are some
places where this is definitely NOT desired.
removeBenutzer
in class de.ipcon.db.core.AlarmBase
@Deprecated public java.util.Map<java.lang.Long,Gruppe> getGruppen()
AlarmBase.getBeiAusloesungBenachrichtigen()
, AlarmBase.getBeiAusloesungBenachrichtigenCC()
or AlarmBase.getBeiAusloesungBenachrichtigenBCC()
instead, as required.@Deprecated public void addGruppe(Gruppe group)
addBeiAusloesungBenachrichtigen(CoreBO)
, #addBeiAusloesungBenachrichtigenCC()
or addBeiAusloesungBenachrichtigenBCC(CoreBO)
instead, as required.Gruppe
as "BeiAusloesungBenachrichtigenBCC".
This method adds the passed group as "BeiAusloesungBenachrichtigenBCC". For historical reasons, the naming may not be particularly appropriate, but it dates back to a time when the BCC/CC functionality did not yet exist in the notification system.
The group and user recipients have always been treated as "BCC" (i.e., nobody sees the other recipients), especially when sent as an email, but also in other places as required.
However, if addBenutzer(Benutzer)
or addGruppe(Gruppe)
suddenly add/remove them to/from the "BeiAusloesungBenachrichtigen"
instead of the "BeiAusloesungBenachrichtigenBCC" relation, these entries/recipients become visible to others, and there are some
places where this is definitely NOT desired.
addGruppe
in class de.ipcon.db.core.AlarmBase
@Deprecated public void removeGruppe(Gruppe group)
AlarmBase.removeBeiAusloesungBenachrichtigen(CoreBO)
, #removeBeiAusloesungBenachrichtigenCC()
or AlarmBase.removeBeiAusloesungBenachrichtigenBCC(CoreBO)
instead, as required.Gruppe
from "BeiAusloesungBenachrichtigenBCC".
This method removes the passed group from "BeiAusloesungBenachrichtigenBCC". For historical reasons, the naming may not be particularly appropriate, but it dates back to a time when the BCC/CC functionality did not yet exist in the notification system.
The group and user recipients have always been treated as "BCC" (i.e., nobody sees the other recipients), especially when sent as an email, but also in other places as required.
However, if addBenutzer(Benutzer)
or addGruppe(Gruppe)
suddenly add/remove them to/from the "BeiAusloesungBenachrichtigen"
instead of the "BeiAusloesungBenachrichtigenBCC" relation, these entries/recipients become visible to others, and there are some
places where this is definitely NOT desired.
removeGruppe
in class de.ipcon.db.core.AlarmBase
public void addBeiAusloesungBenachrichtigen(CoreBO bo)
CoreBO
as "BeiAusloesungBenachrichtigen" if it is an instance of NotifiableI
.addBeiAusloesungBenachrichtigen
in class de.ipcon.db.core.AlarmBase
java.lang.IllegalArgumentException
- if the passed CoreBO
is not an instance of NotifiableI
.public void addBeiAusloesungBenachrichtigenCC(CoreBO bo)
CoreBO
as "BeiAusloesungBenachrichtigenCC" if it is an instance of NotifiableI
.addBeiAusloesungBenachrichtigenCC
in class de.ipcon.db.core.AlarmBase
java.lang.IllegalArgumentException
- if the passed CoreBO
is not an instance of NotifiableI
.public void addBeiAusloesungBenachrichtigenBCC(CoreBO bo)
CoreBO
as "BeiAusloesungBenachrichtigenBCC" if it is an instance of NotifiableI
.addBeiAusloesungBenachrichtigenBCC
in class de.ipcon.db.core.AlarmBase
java.lang.IllegalArgumentException
- if the passed CoreBO
is not an instance of NotifiableI
.public java.util.Map<java.lang.Long,NotifiableI> getAlleBeiAusloesungBenachrichtigen()
BeiAusloesungBenachrichtigen
, BeiAusloesungBenachrichtigenCC
and BeiAusloesungBenachrichtigenBCC
relations.
Please be aware that this is not a getter for a virtual attribute.
This method returns a map containing all recipients from the above relations.
The keys in the map are the Ids of the recipients, and the values are the corresponding CoreBO
instances.
BeiAusloesungBenachrichtigen
, BeiAusloesungBenachrichtigenCC
and BeiAusloesungBenachrichtigenBCC
where the keys are the Ids of the recipients and the values are the corresponding CoreBO
instancespublic java.util.Map<java.lang.Long,MyTISMAdresse> getBeiAusloesungBenachrichtigenAdressen()
MyTISMAdresse
instances to which notifications will
be sent.
This method collects and returns a map of all the final MyTISMAdressen (both CC and BCC) for the passed recipients to which notifications will be sent.
getBeiAusloesungBenachrichtigenAdressen
in class de.ipcon.db.core.AlarmBase
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 nullpublic boolean storeLastError(java.lang.Exception ex, java.lang.String msg)
public void setAktiv(java.lang.Boolean f)
setAktiv
in class de.ipcon.db.core.AlarmBase
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.