aboutsummaryrefslogtreecommitdiff
path: root/id
diff options
context:
space:
mode:
authorBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-05-14 14:24:05 +0200
committerBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-05-14 14:24:05 +0200
commit5a0218da5224fe8d0add07ec332a62c535a5beb2 (patch)
tree121d3b1d3e4d5637d17b9ba7a02073521f35281b /id
parenta6d06a04fdd2caaebb387be3d85107658c08f345 (diff)
downloadmoa-id-spss-5a0218da5224fe8d0add07ec332a62c535a5beb2.tar.gz
moa-id-spss-5a0218da5224fe8d0add07ec332a62c535a5beb2.tar.bz2
moa-id-spss-5a0218da5224fe8d0add07ec332a62c535a5beb2.zip
correct representative problem
Diffstat (limited to 'id')
-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;