Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHOReVOLUTION
syncope
Commits
77d20320
Commit
77d20320
authored
May 29, 2017
by
Gianluca Filippone
Browse files
[CRV-300] Now storing both chorSpec and enriched chorSpec
parent
0cd2b07f
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/src/main/resources/domains/MasterContent.xml
View file @
77d20320
...
...
@@ -584,6 +584,10 @@ we are happy to inform you that the password request was execute successfully fo
<PlainSchema
id=
"chorSpec"
mandatoryCondition=
"true"
mimeType=
"application/xml"
multivalue=
"0"
readonly=
"0"
type=
"Binary"
uniqueConstraint=
"0"
anyTypeClass_id=
"Choreography"
/>
<SyncopeSchema
id=
"enactedChorSpec"
/>
<PlainSchema
id=
"enactedChorSpec"
mandatoryCondition=
"false"
mimeType=
"application/xml"
multivalue=
"0"
readonly=
"0"
type=
"Binary"
uniqueConstraint=
"0"
anyTypeClass_id=
"Choreography"
/>
<SyncopeSchema
id=
"diagram"
/>
<PlainSchema
id=
"diagram"
mandatoryCondition=
"false"
mimeType=
"application/xml"
multivalue=
"0"
readonly=
"0"
type=
"Binary"
uniqueConstraint=
"0"
anyTypeClass_id=
"Choreography"
/>
...
...
core/src/test/resources/domains/MasterContent.xml
View file @
77d20320
...
...
@@ -584,7 +584,11 @@ we are happy to inform you that the password request was execute successfully fo
<SyncopeSchema id="chorSpec"/>
<PlainSchema id="chorSpec" mandatoryCondition="true" mimeType="application/xml"
multivalue="0" readonly="0" type="Binary" uniqueConstraint="0" anyTypeClass_id="Choreography"/>
<SyncopeSchema id="enactedChorSpec"/>
<PlainSchema id="enactedChorSpec" mandatoryCondition="false" mimeType="application/xml"
multivalue="0" readonly="0" type="Binary" uniqueConstraint="0" anyTypeClass_id="Choreography"/>
<SyncopeSchema id="description"/>
<PlainSchema id="description" mandatoryCondition="false"
multivalue="0" readonly="0" type="String" uniqueConstraint="0" anyTypeClass_id="Choreography"/>
ext/choreography/logic/src/main/java/org/apache/syncope/core/logic/ChoreographyLogic.java
View file @
77d20320
...
...
@@ -594,7 +594,7 @@ public class ChoreographyLogic extends AbstractLogic<AbstractBaseBean> {
build
()).
build
());
}
choreographyPatch
.
getPlainAttrs
().
add
(
new
AttrPatch
.
Builder
().
attrTO
(
new
AttrTO
.
Builder
().
schema
(
"
c
horSpec"
).
value
(
Base64Utility
.
encode
(
chorSpecXML
)).
build
()).
new
AttrTO
.
Builder
().
schema
(
"
enactedC
horSpec"
).
value
(
Base64Utility
.
encode
(
chorSpecXML
)).
build
()).
build
());
// 2. process the chorSpec
...
...
@@ -633,7 +633,7 @@ public class ChoreographyLogic extends AbstractLogic<AbstractBaseBean> {
build
()).
build
());
}
choreographyPatch
.
getPlainAttrs
().
add
(
new
AttrPatch
.
Builder
().
attrTO
(
new
AttrTO
.
Builder
().
schema
(
"
c
horSpec"
).
value
(
Base64Utility
.
encode
(
chorSpecXML
)).
build
()).
new
AttrTO
.
Builder
().
schema
(
"
enactedC
horSpec"
).
value
(
Base64Utility
.
encode
(
chorSpecXML
)).
build
()).
build
());
choreography
=
groupLogic
.
update
(
choreographyPatch
,
false
).
getEntity
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment