public class MyTISMBenachrichtigung extends MyTISMBenachrichtigungBase implements NotificationTemplateContextProviderI
ATT_Absender, ATT_AlleEmpfaenger, ATT_AnhangBOs, ATT_Antworten, ATT_Auftrag, ATT_Beantwortet, ATT_BeantwortetAm, ATT_Benutzer, ATT_Betreff, ATT_BetreffDynamisch, ATT_BetreffFest, ATT_BetreffIstFest, ATT_Datum, ATT_Empfaenger, ATT_ErfolgreichVersendet, ATT_Gelesen, ATT_GelesenAm, ATT_Gruppen, ATT_Locale, ATT_Prioritaet, ATT_Stufe, ATT_Text, ATT_TextDynamisch, ATT_TextFest, ATT_TextIstFest, ATT_ThreadPosition, ATT_Versendungen, ATT_WillSignatur, ATT_WillVerschluesselung, ENT_MyTISMBenachrichtigung
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, ENT_BO
Constructor and Description |
---|
MyTISMBenachrichtigung() |
Modifier and Type | Method and Description |
---|---|
void |
addAntwort(MyTISMBenachrichtigungsAuftrag _ba) |
java.util.Date |
determineBeantwortetAm() |
MyTISMAdresse[] |
filterPermittedAddresses(MyTISMAdresse[] addresses)
Returns an array containing only those MyTISMAdresse-s from the passed array that have an allowed
MyTISMAdressetyp-s, or all of them if there is no such limitation in place or if we are not
connected to a MyTISMBenachrichtigungsAuftrag at all.
|
CoreBO |
getAbsender() |
java.util.Map<java.lang.Long,CoreBO> |
getAlleEmpfaenger() |
java.util.Map<java.lang.Long,MyTISMAnhangBOEintrag> |
getAnhangBOs() |
java.lang.Boolean |
getBeantwortet() |
java.util.Map<java.lang.Long,Benutzer> |
getBenutzer()
Deprecated.
Use getAlleEmpfaenger() instead.
|
java.lang.String |
getBetreff() |
java.lang.String |
getBetreffDynamisch() |
java.lang.String |
getBetreffDynamisch(L10nLocale _locale) |
java.lang.Boolean |
getBetreffIstFest() |
java.lang.String |
getBetreffTemplate() |
java.util.Map<java.lang.String,java.lang.Object> |
getContextParameters() |
java.util.Date |
getDatum() |
java.lang.String |
getEncoding() |
java.lang.Boolean |
getErfolgreichVersendet() |
Formular |
getFormularFuerBenutzer(Benutzer ben)
Use the Auftrags PassenderTyp to determine the form for the passed user.
|
java.lang.Boolean |
getGelesen() |
java.util.Map<java.lang.Long,Gruppe> |
getGruppen()
Deprecated.
Use getAlleEmpfaenger() instead.
|
java.util.Map<java.lang.Long,MyTISMKontextBOEintrag> |
getKontextBOs() |
L10nLocale |
getLocale()
Get the
L10nLocale to be used for localizing the "Betreff" and
"Text" templates. |
org.bouncycastle.openpgp.PGPPublicKey |
getOpenPGPPublicKey() |
java.lang.String |
getPermittedTypesAsString()
Returns a comma separated list of Strings representing the explicitly allowed MyTISMAdressetyp-s,
or the empty String if no such limitation is in place or if we are not connected to a
MyTISMBenachrichtigungsAuftrag at all.
|
java.lang.Integer |
getPrioritaet() |
java.lang.Integer |
getStufe() |
java.lang.String |
getText() |
java.lang.String |
getTextDynamisch() |
java.lang.String |
getTextDynamisch(L10nLocale _locale) |
java.lang.Boolean |
getTextIstFest() |
java.lang.String |
getTextTemplate() |
java.lang.Integer |
getThreadPosition() |
java.lang.Boolean |
getUseInlinePGP() |
java.lang.Integer |
getWillSignatur() |
java.lang.Integer |
getWillVerschluesselung() |
boolean |
hadTooManyRetries()
Checks if sending out this
MyTISMBenachrichtigung was tried to
often. |
boolean |
hadTooManyRetries(MyTISMAdresse ma) |
boolean |
hadTooManyRetries(MyTISMAdresse ma,
int limit) |
boolean |
hasAntworten() |
static java.lang.String |
interpret(FormatterI _formatter,
java.lang.String _template,
java.util.Date _dateNow,
java.util.Map<java.lang.String,java.lang.Object> _mapContext,
java.lang.String _origin)
Interprets the given template as a
GStringTemplate and return the
resulting string. |
boolean |
isUserInvolved(Benutzer user)
checks if this user is involved in this notification as either recipient or
sender, either directly or indirectly, if the notification was addressed to or
sent from one of the user's groups instead.
|
boolean |
isUserInvolved(Benutzer user,
boolean alsoCheckGroups) |
boolean |
permitsTypeOf(MyTISMAdresse address)
Returns true if the type of the passed MyTISMAdresse is among the explicitly allowed types of our
MyTISMBenachrichtigungsAuftrag or if we are not connected to a MyTISMBenachrichtigungsAuftrag at all.
|
void |
removeAntwort(MyTISMBenachrichtigungsAuftrag _ba) |
java.util.Date |
sendingFailedMostRecentlyOn()
Returns the date when the sending for this
MyTISMBenachrichtigung most recently was tried and failed;
returns null if there is no Versendung with Erfolgreich = false or null . |
boolean |
wasSentOutSuccessfully(MyTISMAdresse ma)
Returns
true when this notification was sent out successfully for
the given MyTISMAdresse ; returns false if there is no
Versendung with Erfolgreich = true for that address. |
java.util.Date |
wasSentOutSuccessfullyOn(MyTISMAdresse ma)
Returns the date when this notification was sent out successfully for the
given
MyTISMAdresse ; returns null if there is no
Versendung with Erfolgreich = true for that address. |
addVersendung, copyFrom, copyFrom, equalPayload, getAlleEmpfaengerIterator, getAnhangBOsIterator, getAntworten, getAntwortenIterator, getAuftrag, getBeantwortetAm, getBeantwortetNN, getBeantwortetNN, getBenutzerIterator, getBetreffDynamischNE, getBetreffDynamischNN, getBetreffDynamischNN, getBetreffFest, getBetreffFestNE, getBetreffFestNN, getBetreffFestNN, getBetreffIstFestNN, getBetreffIstFestNN, getBetreffNE, getBetreffNN, getBetreffNN, getEmpfaenger, getErfolgreichVersendetNN, getErfolgreichVersendetNN, getGelesenAm, getGelesenNN, getGelesenNN, getGruppenIterator, getPrioritaetNN, getPrioritaetNN, getStufeNN, getStufeNN, getTextDynamischNE, getTextDynamischNN, getTextDynamischNN, getTextFest, getTextFestNE, getTextFestNN, getTextFestNN, getTextIstFestNN, getTextIstFestNN, getTextNE, getTextNN, getTextNN, getThreadPositionNN, getThreadPositionNN, getVersendungen, getVersendungenIterator, getWillSignaturNN, getWillSignaturNN, getWillVerschluesselungNN, getWillVerschluesselungNN, istBeantwortet, istBetreffIstFest, istErfolgreichVersendet, istGelesen, istTextIstFest, needAbsender, needAuftrag, needBeantwortet, needBeantwortetAm, needBetreff, needBetreffDynamisch, needBetreffFest, needBetreffIstFest, needDatum, needEmpfaenger, needErfolgreichVersendet, needGelesen, needGelesenAm, needLocale, needPopulatedAlleEmpfaenger, needPopulatedAnhangBOs, needPopulatedAntworten, needPopulatedBenutzer, needPopulatedGruppen, needPopulatedVersendungen, needPrioritaet, needStufe, needText, needTextDynamisch, needTextFest, needTextIstFest, needThreadPosition, needWillSignatur, needWillVerschluesselung, pgetAntwortenLazy, pgetVersendungenLazy, readExternal, removeVersendung, setAntworten, setAuftrag, setBeantwortetAm, setBetreffFest, setBOLoader, setEmpfaenger, setGelesenAm, setTextFest, setVersendungen, slim, slim, writeExternal
_set, $, $, $, $$, $$bo, $$o, $$r, $$ri, $$ri, acquireTxWriteLock, add, afterSaveOnClient, afterSaveOnServer, afterVerifyOnClient, afterVerifyOnServer, 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, isMandatory, 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, toString, undelete, verifyOnClient, verifyOnServer, wrapIfGroovy
getCrea, getLdel, getLmod, isDeleted, isLdel, setCrea, setLdel, setLdel, setLmod
getInstanceSpecificLocale, getInstanceSpecificPaths, l10n, l10n, l10n, l10n, l10n, l10n, l10n
contains, getAttribute, getAttribute, getCrea, getEntity, getEntity, isDeleted, isSubEntityOf, isSubEntityOf
collectIds, collectIds, getCommaSeparatedIdList, toMap, toMap
collectDescribe, collectDescribe, conciseDesc, conciseDesc, conciseDesc, conciseDesc, describe, describe, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeNE, describeNE, join, join, join, notEmptyDescription
public boolean permitsTypeOf(MyTISMAdresse address)
public java.lang.String getPermittedTypesAsString()
public MyTISMAdresse[] filterPermittedAddresses(MyTISMAdresse[] addresses)
public java.util.Date getDatum()
getDatum
in class MyTISMBenachrichtigungBase
public java.lang.Boolean getErfolgreichVersendet()
getErfolgreichVersendet
in class MyTISMBenachrichtigungBase
public boolean isUserInvolved(Benutzer user)
user
- the user for which to check involvementalsoCheckGroups
- if true, an indirect involvement via groups is also checkedpublic boolean isUserInvolved(Benutzer user, boolean alsoCheckGroups)
public java.util.Map<java.lang.Long,Benutzer> getBenutzer()
getBenutzer
in class MyTISMBenachrichtigungBase
public java.util.Map<java.lang.Long,Gruppe> getGruppen()
getGruppen
in class MyTISMBenachrichtigungBase
public java.util.Map<java.lang.Long,CoreBO> getAlleEmpfaenger()
getAlleEmpfaenger
in class MyTISMBenachrichtigungBase
public java.lang.String getBetreffTemplate()
public java.lang.String getBetreff()
getBetreff
in class MyTISMBenachrichtigungBase
public java.lang.String getBetreffDynamisch()
getBetreffDynamisch
in class MyTISMBenachrichtigungBase
public java.lang.String getBetreffDynamisch(L10nLocale _locale)
public java.util.Map<java.lang.String,java.lang.Object> getContextParameters()
getContextParameters
in interface NotificationTemplateContextProviderI
public static java.lang.String interpret(FormatterI _formatter, java.lang.String _template, java.util.Date _dateNow, java.util.Map<java.lang.String,java.lang.Object> _mapContext, java.lang.String _origin)
GStringTemplate
and return the
resulting string.public java.lang.Boolean getBetreffIstFest()
getBetreffIstFest
in class MyTISMBenachrichtigungBase
public java.lang.String getTextTemplate()
public java.lang.String getText()
getText
in class MyTISMBenachrichtigungBase
public java.lang.String getTextDynamisch()
getTextDynamisch
in class MyTISMBenachrichtigungBase
public java.lang.String getTextDynamisch(L10nLocale _locale)
public java.lang.Boolean getTextIstFest()
getTextIstFest
in class MyTISMBenachrichtigungBase
public java.lang.Integer getPrioritaet()
getPrioritaet
in class MyTISMBenachrichtigungBase
public CoreBO getAbsender()
getAbsender
in class MyTISMBenachrichtigungBase
public java.util.Map<java.lang.Long,MyTISMKontextBOEintrag> getKontextBOs()
public java.util.Map<java.lang.Long,MyTISMAnhangBOEintrag> getAnhangBOs()
getAnhangBOs
in class MyTISMBenachrichtigungBase
public java.lang.Boolean getGelesen()
getGelesen
in class MyTISMBenachrichtigungBase
public java.lang.Boolean getBeantwortet()
getBeantwortet
in class MyTISMBenachrichtigungBase
public void addAntwort(MyTISMBenachrichtigungsAuftrag _ba)
addAntwort
in class MyTISMBenachrichtigungBase
public void removeAntwort(MyTISMBenachrichtigungsAuftrag _ba)
removeAntwort
in class MyTISMBenachrichtigungBase
public java.util.Date determineBeantwortetAm()
public boolean hasAntworten()
public java.lang.Integer getStufe()
getStufe
in class MyTISMBenachrichtigungBase
public java.lang.Integer getThreadPosition()
getThreadPosition
in class MyTISMBenachrichtigungBase
public L10nLocale getLocale()
L10nLocale
to be used for localizing the "Betreff" and
"Text" templates. If the Empfaenger
has specified a
PreferredLocale
it is used, otherwise falls back to the locale of
Auftrag
.getLocale
in class MyTISMBenachrichtigungBase
L10nLocale
to be used for localizing the "Betreff"
and "Text" templatespublic java.lang.String getEncoding()
public org.bouncycastle.openpgp.PGPPublicKey getOpenPGPPublicKey()
public java.lang.Integer getWillVerschluesselung()
getWillVerschluesselung
in class MyTISMBenachrichtigungBase
public java.lang.Integer getWillSignatur()
getWillSignatur
in class MyTISMBenachrichtigungBase
public java.lang.Boolean getUseInlinePGP()
public Formular getFormularFuerBenutzer(Benutzer ben)
public boolean wasSentOutSuccessfully(MyTISMAdresse ma)
true
when this notification was sent out successfully for
the given MyTISMAdresse
; returns false
if there is no
Versendung
with Erfolgreich = true
for that address.public java.util.Date wasSentOutSuccessfullyOn(MyTISMAdresse ma)
MyTISMAdresse
; returns null if there is no
Versendung
with Erfolgreich = true
for that address.public java.util.Date sendingFailedMostRecentlyOn()
MyTISMBenachrichtigung
most recently was tried and failed;
returns null if there is no Versendung
with Erfolgreich = false or null
.public boolean hadTooManyRetries()
MyTISMBenachrichtigung
was tried to
often. Standard is checking if the limit was reached for any of the
possibly multiple destination addresses, but may be limited to a specific
address.ma
- if null (the default) the method returns true if too many
retries were done for at least one address; otherwise only returns
true when the retry limit was reached specifically for trying to send
out the notification for the given addresslimit
- the (exclusive) upper limit that sending out is allowed to
be tried before "too many retries" is signalled; defaults to 96 which,
together with the 30 min InternalNotificationRetryWV.INAKTIVITAETSZEIT_IN_SECS
,
should result in retries for approx. 2 dayspublic boolean hadTooManyRetries(MyTISMAdresse ma)
public boolean hadTooManyRetries(MyTISMAdresse ma, int limit)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.