1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.opensaml.saml2.core.impl;
22
23 import java.util.ArrayList;
24 import java.util.Collections;
25 import java.util.List;
26
27 import org.opensaml.common.impl.AbstractSAMLObject;
28 import org.opensaml.saml2.core.Action;
29 import org.opensaml.saml2.core.AuthzDecisionStatement;
30 import org.opensaml.saml2.core.DecisionTypeEnumeration;
31 import org.opensaml.saml2.core.Evidence;
32 import org.opensaml.xml.XMLObject;
33 import org.opensaml.xml.util.XMLObjectChildrenList;
34
35
36
37
38 public class AuthzDecisionStatementImpl extends AbstractSAMLObject implements AuthzDecisionStatement {
39
40
41 private String resource;
42
43
44 private DecisionTypeEnumeration decision;
45
46
47 private final XMLObjectChildrenList<Action> actions;
48
49
50 private Evidence evidence;
51
52
53
54
55
56
57
58
59 protected AuthzDecisionStatementImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
60 super(namespaceURI, elementLocalName, namespacePrefix);
61 actions = new XMLObjectChildrenList<Action>(this);
62 }
63
64
65 public String getResource() {
66 return resource;
67 }
68
69
70 public void setResource(String newResourceURI) {
71 this.resource = prepareForAssignment(this.resource, newResourceURI);
72 }
73
74
75 public DecisionTypeEnumeration getDecision() {
76 return decision;
77 }
78
79
80 public void setDecision(DecisionTypeEnumeration newDecision) {
81 this.decision = prepareForAssignment(this.decision, newDecision);
82 }
83
84
85 public List<Action> getActions() {
86 return actions;
87 }
88
89
90 public Evidence getEvidence() {
91 return evidence;
92 }
93
94
95 public void setEvidence(Evidence newEvidence) {
96 this.evidence = prepareForAssignment(this.evidence, newEvidence);
97 }
98
99
100 public List<XMLObject> getOrderedChildren() {
101 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
102
103 children.addAll(actions);
104 children.add(evidence);
105 return Collections.unmodifiableList(children);
106 }
107 }