Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
6f2eb181
Commit
6f2eb181
authored
Apr 15, 2016
by
michael.simon
Browse files
Also filter for Display Name at Discovery. #44
parent
17cdf36b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/DiscoveryLoginBean.java
View file @
6f2eb181
...
...
@@ -154,11 +154,18 @@ public class DiscoveryLoginBean implements Serializable {
List
<
SamlIdpMetadataEntity
>
filteredList
=
new
ArrayList
<
SamlIdpMetadataEntity
>();
for
(
SamlIdpMetadataEntity
idp
:
idpList
)
{
if
(
Pattern
.
compile
(
if
(
idp
.
getOrgName
()
!=
null
&&
Pattern
.
compile
(
Pattern
.
quote
(
filter
),
Pattern
.
CASE_INSENSITIVE
|
Pattern
.
UNICODE_CASE
)
.
matcher
(
idp
.
getOrgName
()).
find
())
{
filteredList
.
add
(
idp
);
}
else
if
(
idp
.
getDisplayName
()
!=
null
&&
Pattern
.
compile
(
Pattern
.
quote
(
filter
),
Pattern
.
CASE_INSENSITIVE
|
Pattern
.
UNICODE_CASE
)
.
matcher
(
idp
.
getDisplayName
()).
find
())
{
filteredList
.
add
(
idp
);
}
}
if
(
filteredList
.
size
()
==
1
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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