Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 75fdcf2

Browse files
committed
Merge pull request #203 from MartyBurns/master
revised applicationinformation package to XmlTransient non-schema types and set xml order to the order in the schema.
2 parents 75bdf55 + 7d425c3 commit 75fdcf2

File tree

1 file changed

+56
-10
lines changed

1 file changed

+56
-10
lines changed

src/main/java/org/energyos/espi/common/domain/ApplicationInformation.java

Lines changed: 56 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,46 @@
120120
*/
121121
@XmlAccessorType(XmlAccessType.FIELD)
122122
@XmlType(name = "ApplicationInformation", propOrder = {
123+
124+
125+
"dataCustodianId",
126+
"dataCustodianApplicationStatus",
127+
"thirdPartyApplicationDescription",
128+
"thirdPartyApplicationStatus",
129+
"thirdPartyApplicationType",
130+
"thirdPartyApplicationUse",
131+
"thirdPartyPhone",
132+
"authorizationServerUri",
133+
"thirdPartyNotifyUri",
134+
"authorizationServerAuthorizationEndpoint",
135+
"authorizationServerRegistrationEndpoint",
136+
"authorizationServerTokenEndpoint",
137+
"dataCustodianBulkRequestURI",
138+
"dataCustodianResourceEndpoint",
139+
"thirdPartyScopeSelectionScreenURI",
140+
"thirdPartyUserPortalScreenURI",
141+
"clientSecret",
142+
"logoUri",
143+
"clientName",
144+
"clientUri",
145+
"redirectUri",
146+
"clientId",
147+
"tosUri",
148+
"policyUri",
149+
"softwareId",
150+
"softwareVersion",
151+
"clientIdIssuedAt",
152+
"clientSecretExpiresAt",
153+
"contacts",
154+
"tokenEndpointAuthMethod",
155+
"scope",
156+
"grantTypes",
157+
"responseTypes",
158+
"registrationClientUri",
159+
"registrationAccessToken",
160+
"dataCustodianScopeSelectionScreenURI",
161+
162+
/* [mjb] 20141219 Old order doesnt match current schema and revisions
123163
"dataCustodianId",
124164
"dataCustodianApplicationStatus",
125165
"dataCustodianDefaultBatchResource",
@@ -161,6 +201,7 @@
161201
"registrationClientUri",
162202
"registrationAccessToken",
163203
"dataCustodianScopeSelectionScreenURI"
204+
*/
164205
})
165206
@Entity
166207
@Table(name = "application_information")
@@ -196,10 +237,12 @@ public class ApplicationInformation
196237
@XmlSchemaType(name = "DataCustodianApplicationStatus")
197238
protected String dataCustodianApplicationStatus;
198239

199-
@XmlSchemaType(name = "anyURI")
240+
@XmlTransient
241+
// @XmlSchemaType(name = "anyURI")
200242
protected String dataCustodianDefaultBatchResource;
201243

202-
@XmlSchemaType(name = "anyURI")
244+
@XmlTransient
245+
// @XmlSchemaType(name = "anyURI")
203246
protected String dataCustodianDefaultSubscriptionResource;
204247

205248
protected String thirdPartyApplicationDescription;
@@ -236,21 +279,24 @@ public class ApplicationInformation
236279
@XmlElement(name = "dataCustodianBulkRequestURI")
237280
@XmlSchemaType(name = "anyURI")
238281
protected String dataCustodianBulkRequestURI;
239-
240-
@XmlElement(name = "dataCustodianThirdPartySelectionScreenURI")
241-
@XmlSchemaType(name = "anyURI")
282+
283+
@XmlTransient
284+
// @XmlElement(name = "dataCustodianThirdPartySelectionScreenURI")
285+
// @XmlSchemaType(name = "anyURI")
242286
protected String dataCustodianThirdPartySelectionScreenURI;
243287

244288
@XmlElement(name = "dataCustodianResourceEndpoint")
245289
@XmlSchemaType(name = "anyURI")
246290
protected String dataCustodianResourceEndpoint;
247291

248-
@XmlElement(name = "thirdPartyDataCustodianSelectionScreenURI")
249-
@XmlSchemaType(name = "anyURI")
292+
@XmlTransient
293+
// @XmlElement(name = "thirdPartyDataCustodianSelectionScreenURI")
294+
// @XmlSchemaType(name = "anyURI")
250295
protected String thirdPartyDataCustodianSelectionScreenURI;
251-
252-
@XmlElement(name = "thirdPartyLoginScreenURI")
253-
@XmlSchemaType(name = "anyURI")
296+
297+
@XmlTransient
298+
// @XmlElement(name = "thirdPartyLoginScreenURI")
299+
// @XmlSchemaType(name = "anyURI")
254300
protected String thirdPartyLoginScreenURI;
255301

256302
@XmlElement(name = "thirdPartyScopeSelectionScreenURI")

0 commit comments

Comments
 (0)