public class NotificationModule extends ListeningKernelModule implements BTHandlerI, DBManEventListenerI
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
evNameCatchall |
static java.lang.String |
iniSectionName |
static java.lang.String |
iniVariableNameActivateNotifications |
static java.lang.String |
iniVariableNameEncrypt |
static java.lang.String |
iniVariableNameLogVersendungen |
static java.lang.String |
iniVariableNameMaxAgeOfNoticationInDays |
static java.lang.String |
iniVariableNamePrivateKeyFile |
static java.lang.String |
iniVariableNameSign |
static java.lang.String |
STR_LOG_FAILURE |
static java.lang.String |
STR_LOG_SOFT_FAILURE |
static java.lang.String |
STR_LOG_SUCCESS |
STR_IF_POSSIBLE, STR_MANDATORY, STR_NEVER
SAVE_RETRIES, SAVE_RETRY_DELAY_MS_MAX, SAVE_RETRY_DELAY_MS_MIN
Constructor and Description |
---|
NotificationModule(DBManLocalI dbm) |
NotificationModule(DBManLocalI dbm,
DBManEventFilter filter) |
Modifier and Type | Method and Description |
---|---|
void |
addClassesOfInterest(java.util.Set<java.lang.Class> classesOfInterest) |
void |
adjustRetryWVActiveState(boolean active) |
BTsHandler |
getBTsHandler() |
org.bouncycastle.openpgp.PGPSecretKey |
getOpenPGPSecretKey() |
java.lang.String |
getShouldStartSetting(DBManConfigurationHelperI conf)
Retrieves and returns if this module should actually be started from the MyTISM configuration.
|
java.util.Date |
getStartingDateForChecks() |
java.lang.Integer |
getWantsEncryption() |
java.lang.Integer |
getWantsSignature() |
boolean |
handleBT(BT bt) |
boolean |
handleBT(BT bt,
ProgressHandlerWithTotal ph) |
int |
notifyAdresse(Benachrichtigungsversendungsinfo sendingInfo,
MyTISMBenachrichtigung notification,
Transaction tx,
boolean isRetry) |
void |
retryFailedNotifications(java.lang.Long mbaId)
Triggers retry of failed notifications for the
MyTISMBenachrichtigungsAuftrag with the given Id. |
void |
setBTsHandler(BTsHandler $73) |
void |
setOpenPGPSecretKey(org.bouncycastle.openpgp.PGPSecretKey $70) |
void |
setWantsEncryption(java.lang.Integer $71) |
void |
setWantsSignature(java.lang.Integer $72) |
decrementPending, featureBecameAvailable, featureNoLongerAvailable, getCPending, getEventFilter, getNameForLog, getPendingShowLimit, incrementPending, initialize, isActive, isMandatory, isWanted, newThread, processConfChangeEvent, processDBManEvent, setActive, setCPending, setEventFilter, setNameForLog, setPendingShowLimit, shutdown, start, start, stop, stop, stop
getBOLoader, getConfiguration, getConnection, getDbm, getJDBCConnection, getNewCachingBOLoader, getNodeNumber, getSchema, getUser, isAuthoritativeSyncServer, isShutdown, loadBO, loadBO, query, query, query, query, query, runsAsUser, save, save, save, save, save, save, save, save, save, save, save, save, setDbm, setShutdown, setUser, shutdown
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processDBManEvent
handleSaveResultForRetry
wantsConnectionsClosed
public static final java.lang.String iniSectionName
public static final java.lang.String iniVariableNameActivateNotifications
public static final java.lang.String iniVariableNamePrivateKeyFile
public static final java.lang.String iniVariableNameEncrypt
public static final java.lang.String iniVariableNameSign
public static final java.lang.String iniVariableNameLogVersendungen
public static final java.lang.String iniVariableNameMaxAgeOfNoticationInDays
public static final java.lang.String STR_LOG_SUCCESS
public static final java.lang.String STR_LOG_FAILURE
public static final java.lang.String STR_LOG_SOFT_FAILURE
public static final java.lang.String evNameCatchall
public NotificationModule(DBManLocalI dbm)
public NotificationModule(DBManLocalI dbm, DBManEventFilter filter)
public java.lang.String getShouldStartSetting(DBManConfigurationHelperI conf)
ListeningKernelModule
getShouldStartSetting
in class ListeningKernelModule
public void adjustRetryWVActiveState(boolean active)
public void retryFailedNotifications(java.lang.Long mbaId)
MyTISMBenachrichtigungsAuftrag
with the given Id.public int notifyAdresse(Benachrichtigungsversendungsinfo sendingInfo, MyTISMBenachrichtigung notification, Transaction tx, boolean isRetry) throws NoHandlerAvailableException
RESULT_SEND_OK
if something was done and successfully; RESULT_SEND_FAILED
if
something should have been done, but problems occurred; RESULT_MAX_RETRIES_REACHED
if something
should have been done, but the retry limit was reached; and RESULT_NO_ACTION_NECESSARY
if nothing
was actually done and that is okNoHandlerAvailableException
public boolean handleBT(BT bt) throws java.lang.InterruptedException
handleBT
in interface BTHandlerI
java.lang.InterruptedException
public boolean handleBT(BT bt, ProgressHandlerWithTotal ph) throws java.lang.InterruptedException
handleBT
in interface BTHandlerI
java.lang.InterruptedException
public java.util.Date getStartingDateForChecks()
getStartingDateForChecks
in interface BTHandlerI
public void addClassesOfInterest(java.util.Set<java.lang.Class> classesOfInterest)
addClassesOfInterest
in interface BTHandlerI
public org.bouncycastle.openpgp.PGPSecretKey getOpenPGPSecretKey()
public void setOpenPGPSecretKey(org.bouncycastle.openpgp.PGPSecretKey $70)
public java.lang.Integer getWantsEncryption()
public void setWantsEncryption(java.lang.Integer $71)
public java.lang.Integer getWantsSignature()
public void setWantsSignature(java.lang.Integer $72)
public BTsHandler getBTsHandler()
public void setBTsHandler(BTsHandler $73)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.