aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MandateRetrievalRequest.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MandateRetrievalRequest.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MandateRetrievalRequest.java
index 662baa3c9..1e2811f74 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MandateRetrievalRequest.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/MandateRetrievalRequest.java
@@ -281,16 +281,10 @@ public class MandateRetrievalRequest implements IAction {
private RepresentationPersonType getRepresentative(MandateContainer mandateContainer, PersonalAttribute sourceAttribute) {
RepresentationPersonType representative = new RepresentationPersonType();
- if (mandateContainer instanceof CorporateBodyMandateContainer) {
- Logger.error("Company as representative not supported"); // TODO
-
- } else if (mandateContainer instanceof PhyPersonMandateContainer) {
- PhyPersonMandateContainer phyPersonMandateContainer = (PhyPersonMandateContainer)mandateContainer;
- representative.setEIdentifier(""); // TODO CALCULATE
- representative.setGivenName(phyPersonMandateContainer.getPhysicalRepresentativeGivenName());
- representative.setSurname(phyPersonMandateContainer.getPhysicalRepresentativeFamilyName());
- representative.setDateOfBirth(phyPersonMandateContainer.getPhysicalRepresentativeBirthDate());
- }
+ representative.setEIdentifier(""); // TODO CALCULATE
+ representative.setGivenName(mandateContainer.getPhysicalRepresentativeGivenName());
+ representative.setSurname(mandateContainer.getPhysicalRepresentativeFamilyName());
+ representative.setDateOfBirth(mandateContainer.getPhysicalRepresentativeBirthDate());
Logger.debug("Complex attribute extracted: " + sourceAttribute.getName());
return representative;