public class AlarmNotificationManager extends java.lang.Object implements AlarmNotificationManagerI
Constructor and Description |
---|
AlarmNotificationManager(Benutzer _defaultSender)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AlarmBenachrichtigungsauftrag |
createNotificationOrder(Transaction tx,
AlarmAusloesung aa,
boolean doTestOnly,
java.util.Collection<NotifiableI> recipientsCC,
java.util.Collection<NotifiableI> recipientsBCC,
java.util.Collection<NotifiableI> replyTos)
Creates and returns a new instance of
AlarmBenachrichtigungsauftrag appropriate for notifying about the given alarm triggering instance. |
void |
createTemporaryNotifications(Transaction tx,
AlarmBenachrichtigungsauftrag aba)
Helper method for
Alarm#_action_testNotify() ; the code cannot be placed in that method or as an instance
method of AlarmBenachrichtigungsauftrag because BenachrichtigungsAuftragHandler is not built yet
when de.ipcon.db.core gets build. |
Benutzer |
getDefaultSender() |
void |
setDefaultSender(Benutzer $24) |
public AlarmNotificationManager(Benutzer _defaultSender)
_defaultSender
- a Benutzer
instance used as the default for
Absender
for created AlarmBenachrichtigungsauftrag
instances if the triggering Alarm
does not specify a
Verantwortlicher
or Absender
public AlarmBenachrichtigungsauftrag createNotificationOrder(Transaction tx, AlarmAusloesung aa, boolean doTestOnly, java.util.Collection<NotifiableI> recipientsCC, java.util.Collection<NotifiableI> recipientsBCC, java.util.Collection<NotifiableI> replyTos)
AlarmBenachrichtigungsauftrag
appropriate for notifying about the given alarm triggering instance.createNotificationOrder
in interface AlarmNotificationManagerI
tx
- A Transaction
used to load objects and include the created AlarmBenachrichtigungsauftrag
.aa
- The AlarmAusloesung
from which the relevant data required for creating the notification order is taken.doTestOnly
- If false (the default), a notification order will actually be created; if true, only log messages will be output,
and nothing will be done otherwise.recipientsCC
- A collection of NotifiableI
instances to be set as Empfaenger
of the notification order;
may be null or empty.recipientsBCC
- A collection of NotifiableI
instances to be set as EmpfaengerBCC
of the notification order;
may be null or empty.replyTos
- A collection of NotifiableI
instances to be set as AntwortAn
of the notification order;
may be null or empty.AlarmBenachrichtigungsauftrag
for the given alarm triggering instance.public void createTemporaryNotifications(Transaction tx, AlarmBenachrichtigungsauftrag aba)
Alarm#_action_testNotify()
; the code cannot be placed in that method or as an instance
method of AlarmBenachrichtigungsauftrag
because BenachrichtigungsAuftragHandler
is not built yet
when de.ipcon.db.core
gets build.createTemporaryNotifications
in interface AlarmNotificationManagerI
public Benutzer getDefaultSender()
public void setDefaultSender(Benutzer $24)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.