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
Iturraspe Barturen, Urtza
PolicyEngine
Commits
ed1cec0a
Commit
ed1cec0a
authored
Sep 15, 2021
by
root
Browse files
Changes with datasetId parameters
parent
a29441e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Docker_Tecnalia_PolicyEngine/policyengine/policyengine.jar
View file @
ed1cec0a
No preview for this file type
src/main/java/com/tecnalia/DVPolicyEngine/service/PolicyService.java
View file @
ed1cec0a
...
...
@@ -197,7 +197,7 @@ public class PolicyService {
if
(
lowerOrgKey
.
equals
(
lowerPolicyKey
)){
result
=
this
.
checkParameter
(
orgKey
,
policyKey
,
organizationAttributesJson
,
accessPolicyAsJSON
);
System
.
out
.
println
(
result
);
//
System.out.println(result);
bFind
=
true
;
break
;
}
...
...
@@ -247,8 +247,10 @@ public class PolicyService {
try
{
JSONArray
jArray
=
accessPolicyAsJSON
.
getJSONArray
(
parameterPolicy
);
if
(
jArray
.
toString
().
contains
(
sOrgValue
)){
if
((
jArray
.
length
()==
0
)||
((
jArray
.
length
()==
1
)&&(
jArray
.
get
(
0
).
equals
(
""
))))
result
=
true
;
else
if
(
jArray
.
toString
().
contains
(
sOrgValue
)){
result
=
true
;
// System.out.println("Is the same value?:"+result);
...
...
Write
Preview
Supports
Markdown
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