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.saml2.core.EncryptedID;
28 import org.opensaml.saml2.core.ManageNameIDRequest;
29 import org.opensaml.saml2.core.NameID;
30 import org.opensaml.saml2.core.NewEncryptedID;
31 import org.opensaml.saml2.core.NewID;
32 import org.opensaml.saml2.core.Terminate;
33 import org.opensaml.xml.XMLObject;
34
35
36
37
38 public class ManageNameIDRequestImpl extends RequestAbstractTypeImpl implements ManageNameIDRequest {
39
40
41 private NameID nameID;
42
43
44 private EncryptedID encryptedID;
45
46
47 private NewID newID;
48
49
50 private NewEncryptedID newEncryptedID;
51
52
53 private Terminate terminate;
54
55
56
57
58
59
60
61
62 protected ManageNameIDRequestImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
63 super(namespaceURI, elementLocalName, namespacePrefix);
64 }
65
66
67 public NameID getNameID() {
68 return this.nameID;
69 }
70
71
72 public void setNameID(NameID newNameID) {
73 this.nameID = prepareForAssignment(this.nameID, newNameID);
74 }
75
76
77 public EncryptedID getEncryptedID() {
78 return this.encryptedID;
79 }
80
81
82 public void setEncryptedID(EncryptedID newEncID) {
83 this.encryptedID = prepareForAssignment(this.encryptedID, newEncID);
84 }
85
86
87 public NewID getNewID() {
88 return this.newID;
89 }
90
91
92 public void setNewID(NewID newNewID) {
93 this.newID = prepareForAssignment(this.newID, newNewID);
94 }
95
96
97 public NewEncryptedID getNewEncryptedID() {
98 return this.newEncryptedID;
99 }
100
101
102 public void setNewEncryptedID(NewEncryptedID newNewEncryptedID) {
103 this.newEncryptedID = prepareForAssignment(this.newEncryptedID, newNewEncryptedID);
104 }
105
106
107 public Terminate getTerminate() {
108 return this.terminate;
109 }
110
111
112 public void setTerminate(Terminate newTerminate) {
113 this.terminate = prepareForAssignment(this.terminate, newTerminate);
114 }
115
116
117 public List<XMLObject> getOrderedChildren() {
118 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
119
120 if (super.getOrderedChildren() != null) {
121 children.addAll(super.getOrderedChildren());
122 }
123 if (nameID != null) {
124 children.add(nameID);
125 }
126 if (encryptedID != null) {
127 children.add(encryptedID);
128 }
129 if (newID != null) {
130 children.add(newID);
131 }
132 if (newEncryptedID != null) {
133 children.add(newEncryptedID);
134 }
135 if (terminate != null) {
136 children.add(terminate);
137 }
138
139 if (children.size() == 0) {
140 return null;
141 }
142
143 return Collections.unmodifiableList(children);
144 }
145 }