Package swiss.trustbroker.config.dto
Class AnnouncementConfig
java.lang.Object
swiss.trustbroker.config.dto.AnnouncementConfig
Announcement configuration.
Potentially breaking changes:
Potentially breaking changes:
- With 1.10.0 value of attributes changed to Object to allow nested structures.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAnnouncementConfig(boolean enabled, String syncSchedule, String cachePath, String serviceUrl, int lifeTimeMin, String truststorePath, String truststorePassword, String globalApplicationName, List<String> applicationNames, boolean enableAppSpecificQuery, Map<String, Object> attributes) Creates a newAnnouncementConfiginstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanCustom attributes that might be needed by the implementation.Path for the local announcements cache.Global Announcement application nameintAfter this many minutes of connection loss discard the messages from the cache.REST endpoint to retrieve current announcements from.Schedule for fetching current announcements.Password for the truststore.TLS truststore used to establish HTTPS connection.inthashCode()booleanApp specific queries enabled.booleanDisable the service to discard all announcements.voidsetApplicationNames(List<String> applicationNames) A list of application names: Global announcements are shown to all users on every federated login CP related announcements as well, but they can also lead to disabling the HRD tile when the CP 'application' is marked as unavailable.voidsetAttributes(Map<String, Object> attributes) Custom attributes that might be needed by the implementation.voidsetCachePath(String cachePath) Path for the local announcements cache.voidsetEnableAppSpecificQuery(boolean enableAppSpecificQuery) App specific queries enabled.voidsetEnabled(boolean enabled) Disable the service to discard all announcements.voidsetGlobalApplicationName(String globalApplicationName) Global Announcement application namevoidsetLifeTimeMin(int lifeTimeMin) After this many minutes of connection loss discard the messages from the cache.voidsetServiceUrl(String serviceUrl) REST endpoint to retrieve current announcements from.voidsetSyncSchedule(String syncSchedule) Schedule for fetching current announcements.voidsetTruststorePassword(String truststorePassword) Password for the truststore.voidsetTruststorePath(String truststorePath) TLS truststore used to establish HTTPS connection.toString()
-
Constructor Details
-
AnnouncementConfig
public AnnouncementConfig() -
AnnouncementConfig
public AnnouncementConfig(boolean enabled, String syncSchedule, String cachePath, String serviceUrl, int lifeTimeMin, String truststorePath, String truststorePassword, String globalApplicationName, List<String> applicationNames, boolean enableAppSpecificQuery, Map<String, Object> attributes) Creates a newAnnouncementConfiginstance.- Parameters:
enabled- Disable the service to discard all announcements.
Default: falsesyncSchedule- Schedule for fetching current announcements. Cron expression.cachePath- Path for the local announcements cache.serviceUrl- REST endpoint to retrieve current announcements from.lifeTimeMin- After this many minutes of connection loss discard the messages from the cache.
Default: 15truststorePath- TLS truststore used to establish HTTPS connection.truststorePassword- Password for the truststore.
Always specify$PKI_PASSPHRASE
for passwords as a place-holder for the key decryption passphrase to be passed to the running XTB process.globalApplicationName- Global Announcement application nameapplicationNames- A list of application names:- Global announcements are shown to all users on every federated login
- CP related announcements as well, but they can also lead to disabling the HRD tile when the CP 'application' is marked as unavailable.
enableAppSpecificQuery- App specific queries enabled.attributes- Custom attributes that might be needed by the implementation.- Since:
- 1.13.0
-
-
Method Details
-
getApplicationNames
-
builder
-
isEnabled
public boolean isEnabled()Disable the service to discard all announcements.
Default: false -
getSyncSchedule
Schedule for fetching current announcements. Cron expression. -
getCachePath
Path for the local announcements cache. -
getServiceUrl
REST endpoint to retrieve current announcements from. -
getLifeTimeMin
public int getLifeTimeMin()After this many minutes of connection loss discard the messages from the cache.
Default: 15 -
getTruststorePath
TLS truststore used to establish HTTPS connection. -
getTruststorePassword
Password for the truststore.
Always specify$PKI_PASSPHRASE
for passwords as a place-holder for the key decryption passphrase to be passed to the running XTB process. -
getGlobalApplicationName
Global Announcement application name- Since:
- 1.13.0
-
isEnableAppSpecificQuery
public boolean isEnableAppSpecificQuery()App specific queries enabled. -
getAttributes
Custom attributes that might be needed by the implementation. -
setEnabled
public void setEnabled(boolean enabled) Disable the service to discard all announcements.
Default: false -
setSyncSchedule
Schedule for fetching current announcements. Cron expression. -
setCachePath
Path for the local announcements cache. -
setServiceUrl
REST endpoint to retrieve current announcements from. -
setLifeTimeMin
public void setLifeTimeMin(int lifeTimeMin) After this many minutes of connection loss discard the messages from the cache.
Default: 15 -
setTruststorePath
TLS truststore used to establish HTTPS connection. -
setTruststorePassword
Password for the truststore.
Always specify$PKI_PASSPHRASE
for passwords as a place-holder for the key decryption passphrase to be passed to the running XTB process. -
setGlobalApplicationName
Global Announcement application name- Since:
- 1.13.0
-
setApplicationNames
A list of application names:- Global announcements are shown to all users on every federated login
- CP related announcements as well, but they can also lead to disabling the HRD tile when the CP 'application' is marked as unavailable.
-
setEnableAppSpecificQuery
public void setEnableAppSpecificQuery(boolean enableAppSpecificQuery) App specific queries enabled. -
setAttributes
Custom attributes that might be needed by the implementation. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-