Klasse ConsentNotificationMessage
java.lang.Object
org.emau.icmvc.ttp.notification.NotificationMessage
org.emau.icmvc.ganimed.ttp.cm2.util.ConsentNotificationMessage
public class ConsentNotificationMessage
extends org.emau.icmvc.ttp.notification.NotificationMessage
A class to encapsulate a
ConsentKeyDTO
,a map with PolicyKeyDTO
as keys
and their consent status as values as well as some metadata as a notification message
which can be serialized to and deserialized from a JSON representation.-
Feldübersicht
Von Klasse geerbte Felder org.emau.icmvc.ttp.notification.NotificationMessage
clientId, comment, context, type
-
Konstruktorübersicht
KonstruktorBeschreibungCreates an empty notification message (needed by deserialization).Creates a notification message directly from its JSON represention.ConsentNotificationMessage
(ConsentKeyDTO consentKey, String type, String clientId, String comment) Creates a notification message for the given values.ConsentNotificationMessage
(ConsentKeyDTO consentKey, Map<PolicyKeyDTO, Boolean> previousPolicyStates, String type, String clientId, String comment) Creates a notification message for the given values.ConsentNotificationMessage
(ConsentKeyDTO consentKey, Map<PolicyKeyDTO, Boolean> previousPolicyStates, Map<PolicyKeyDTO, Boolean> currentPolicyStates, String type, String clientId, String comment, Map<String, Serializable> context) Creates a notification message for the given values. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
capture
(org.emau.icmvc.ttp.notification.NotificationMessage msg) Captures the content from the given message into this message.boolean
int
hashCode()
void
setConsentKey
(ConsentKeyDTO consentKey) void
setCurrentPolicyStates
(Map<PolicyKeyDTO, Boolean> currentPolicyStates) void
setPreviousPolicyStates
(Map<PolicyKeyDTO, Boolean> previousPolicyStates) toString()
Von Klasse geerbte Methoden org.emau.icmvc.ttp.notification.NotificationMessage
fromJson, getClientId, getComment, getContext, getType, setClientId, setComment, setContext, setType, toJson, validateJson
-
Konstruktordetails
-
ConsentNotificationMessage
public ConsentNotificationMessage()Creates an empty notification message (needed by deserialization). -
ConsentNotificationMessage
Creates a notification message directly from its JSON represention.- Löst aus:
IOException
-
ConsentNotificationMessage
public ConsentNotificationMessage(ConsentKeyDTO consentKey, String type, String clientId, String comment) Creates a notification message for the given values.- Parameter:
consentKey
- the consent keytype
- the message typeclientId
- the client IDcomment
- a comment
-
ConsentNotificationMessage
public ConsentNotificationMessage(ConsentKeyDTO consentKey, Map<PolicyKeyDTO, Boolean> previousPolicyStates, String type, String clientId, String comment) Creates a notification message for the given values.- Parameter:
consentKey
- the consent keypreviousPolicyStates
- a map with the previous policy status for referred consenttype
- the message typeclientId
- the client IDcomment
- a comment
-
ConsentNotificationMessage
public ConsentNotificationMessage(ConsentKeyDTO consentKey, Map<PolicyKeyDTO, Boolean> previousPolicyStates, Map<PolicyKeyDTO, Boolean> currentPolicyStates, String type, String clientId, String comment, Map<String, Serializable> context) Creates a notification message for the given values.- Parameter:
consentKey
- the consent keypreviousPolicyStates
- a map with the previous policy status for referred consentcurrentPolicyStates
- a map with the current policy status for referred consenttype
- the message typeclientId
- the client IDcomment
- a comment
-
-
Methodendetails
-
capture
public void capture(org.emau.icmvc.ttp.notification.NotificationMessage msg) Captures the content from the given message into this message.- Setzt außer Kraft:
capture
in Klasseorg.emau.icmvc.ttp.notification.NotificationMessage
- Parameter:
msg
- the message to capture
-
getConsentKey
-
setConsentKey
-
getPreviousPolicyStates
-
setPreviousPolicyStates
-
getCurrentPolicyStates
-
setCurrentPolicyStates
-
equals
- Setzt außer Kraft:
equals
in Klasseorg.emau.icmvc.ttp.notification.NotificationMessage
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCode
in Klasseorg.emau.icmvc.ttp.notification.NotificationMessage
-
toString
-