← Back to plugin index

Dummy Maintenance Message Persister

Description
This is a stateless dummy plugin that implements both MaintenanceMessageService and MaintenanceMessagePersister extension points.

MaintenanceMessageService implementation:

  • getMaintenanceMessage(Date date): returns a dummy message containing de/fr/en translations. This works for every location.

MaintenanceMessagePersister implementation:

  • getAllMaintenanceMessages(int maxMessages): returns maxMessages random messages with the location null.
  • getMaintenanceMessageByName(String name): passing "nf" leads to a NotFoundException, "nu" leads to a NotUniqueException, all other names will return a random message with the given name.
  • insertMaintenanceMessage(MaintenanceMessage message): Inserting a message with name "nu" leads to a NotUniqueException, all other names are accepted.
  • updateMaintenanceMessage(MaintenanceMessage message): Updating a message with name "nf" leads to a NotFoundException, "nu" leads to a NotUniqueException, all other names are accepted.
  • deleteMaintenanceMessage(MaintenanceMessage message): Deleting a message with name "nf" leads to a NotFoundException, "nu" leads to a NotUniqueException, all other names are accepted.
Type name
DummyMaintenanceMessagePersister
Class
com.airlock.iam.core.misc.impl.sysmessage.DummyMaintenanceMessagePersister
May be used by
Properties
YAML Template (with default values)

type: DummyMaintenanceMessagePersister
id: DummyMaintenanceMessagePersister-xxxxxx
displayName: 
comment: 
properties: