1 package org.emau.icmvc.ganimed.ttp.cm2.dto;
38 import java.io.Serializable;
50 private static final long serialVersionUID = 6530761208022474879L;
61 this.policyKey = policyKey;
62 this.consentKey = consentKey;
78 this.policyKey = policyKey;
86 this.consentKey = consentKey;
90 public int hashCode() {
93 result = prime * result + ((consentKey == null) ? 0 : consentKey.hashCode());
94 result = prime * result + ((policyKey == null) ? 0 : policyKey.hashCode());
95 result = prime * result + ((status == null) ? 0 : status.hashCode());
100 public boolean equals(Object obj) {
105 if (getClass() != obj.getClass())
108 if (consentKey == null) {
109 if (other.consentKey != null)
111 }
else if (!consentKey.equals(other.consentKey))
113 if (policyKey == null) {
114 if (other.policyKey != null)
116 }
else if (!policyKey.equals(other.policyKey))
118 if (status != other.status)
124 public String toString() {
125 StringBuffer sb =
new StringBuffer();
126 sb.append(
"policy '");
127 sb.append(policyKey);
128 sb.append(
"' is signed with value: ");
129 sb.append((status == null) ?
"'null'" : status.toString());
130 sb.append(
" within consent '");
131 sb.append(consentKey);
133 return sb.toString();
wie wurde ein modul (und damit die enthaltenen policies) innerhalb eines consents konsentiert...
objekt fuer die m-n tabelle consent<->policy