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.java56
1 files changed, 0 insertions, 56 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 ade2a0301..9c7f45146 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
@@ -197,62 +197,6 @@ public class MandateRetrievalRequest implements IAction {
}
- private void populateMandatingData(AuthenticationSession moasession) {
- MandateType mandateType = new MandateType();
- RepresentationPersonType representationPersonType = new RepresentationPersonType();
- MandateContentType mandateContentType = new MandateContentType();
- }
-
-
- private void populateRepresented(AuthenticationSession moasession) {
-
- MandateContainer mc = null;
-
- try {
- mc = new CorporateBodyMandateContainer(new String(moaSession.getMISMandate().getMandate(), "UTF-8"));
- } catch (Exception ex) {
- Logger.error("CORPORATE ERROR");
- try {
- mc = new PhyPersonMandateContainer(new String(moaSession.getMISMandate().getMandate(), "UTF-8"));
- } catch (Exception ex2) {
- Logger.error("PERSON ERROR");
- }
- }
-
- if (mc instanceof CorporateBodyMandateContainer) {
- Logger.error("Instance of Corp");
- } else if (mc instanceof PhyPersonMandateContainer) {
- Logger.error("Instance of Phy");
- }
-
-
- }
-
-
- private Node extractChildNode(Node node, String childName) throws MOAIDException {
- if (!node.hasChildNodes()) {
- throw new MOAIDException("stork.11", null); // TODO description
- }
- for (int n = 0; n < node.getChildNodes().getLength(); n++) {
- if (node.getChildNodes().item(n).getNodeName().equals(childName)) {
- return node.getChildNodes().item(n);
- }
- }
- throw new MOAIDException("stork.11", null); // TODO description
-
- }
-
- private String extractNodeTextContent(Node node, String childName) throws MOAIDException {
- if (!node.hasChildNodes()) {
- throw new MOAIDException("stork.11", null); // TODO description
- }
- for (int n = 0; n < node.getChildNodes().getLength(); n++) {
- if (node.getChildNodes().item(n).getNodeName().equals(childName)) {
- return node.getTextContent();
- }
- }
- throw new MOAIDException("stork.11", null); // TODO description
- }
private String mapPowersType(MandateContainer mandateContainer) { // TODO
return "";