Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
73911358
Commit
73911358
authored
Nov 24, 2020
by
michael.simon
Browse files
add targetList to simplify javascript list building
parent
e893cd1d
Changes
1
Show whitespace changes
Inline
Side-by-side
bwreg-service/src/main/java/edu/kit/scc/webreg/service/saml/FederationSingletonBean.java
View file @
73911358
...
...
@@ -92,20 +92,23 @@ public class FederationSingletonBean {
}
try
{
List
<
SamlIdpMetadataEntity
>
targetList
=
new
ArrayList
<
SamlIdpMetadataEntity
>();
engine
.
eval
(
scriptEntity
.
getScript
());
Invocable
invocable
=
(
Invocable
)
engine
;
invocable
.
invokeFunction
(
"filterIdps"
,
tempList
,
logger
);
invocable
.
invokeFunction
(
"filterIdps"
,
tempList
,
targetList
,
logger
);
return
targetList
;
}
catch
(
ScriptException
e
)
{
logger
.
warn
(
"Script execution failed."
,
e
);
return
tempList
;
}
catch
(
NoSuchMethodException
e
)
{
logger
.
info
(
"No filterIdps method in script. returning all Idps"
);
}
return
tempList
;
}
}
public
List
<
SamlIdpMetadataEntity
>
getAllIdpList
()
{
refreshCache
();
...
...
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