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
bd712c9f
Commit
bd712c9f
authored
May 09, 2017
by
michael.simon
Browse files
Make fetching of SPs and AAs within Federations editable
parent
67605491
Changes
3
Show whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/admin/saml/AddFederationBean.java
View file @
bd712c9f
...
@@ -34,6 +34,9 @@ public class AddFederationBean implements Serializable {
...
@@ -34,6 +34,9 @@ public class AddFederationBean implements Serializable {
@PostConstruct
@PostConstruct
public
void
init
()
{
public
void
init
()
{
entity
=
service
.
createNew
();
entity
=
service
.
createNew
();
entity
.
setFetchIdps
(
Boolean
.
TRUE
);
entity
.
setFetchSps
(
Boolean
.
FALSE
);
entity
.
setFetchAAs
(
Boolean
.
FALSE
);
}
}
public
String
save
()
{
public
String
save
()
{
...
...
bwreg-webapp/src/main/webapp/admin/saml/add-federation.xhtml
View file @
bd712c9f
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
<html
xmlns=
"http://www.w3.org/1999/xhtml"
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
>
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:p=
"http://primefaces.org/ui"
>
<head>
<head>
<title></title>
<title></title>
</head>
</head>
...
@@ -24,6 +25,21 @@
...
@@ -24,6 +25,21 @@
<h:outputText
value=
"#{messages.url}:"
/>
<h:outputText
value=
"#{messages.url}:"
/>
<h:inputText
value=
"#{addFederationBean.entity.federationMetadataUrl}"
/>
<h:inputText
value=
"#{addFederationBean.entity.federationMetadataUrl}"
/>
<h:outputText
value=
"#{messages.fetch_idps}"
/>
<p:selectBooleanButton
id=
"idpsField"
onLabel=
"#{messages.yes}"
offLabel=
"#{messages.no}"
value=
"#{addFederationBean.entity.fetchIdps}"
/>
<h:outputText
value=
"#{messages.fetch_sps}"
/>
<p:selectBooleanButton
id=
"spsField"
onLabel=
"#{messages.yes}"
offLabel=
"#{messages.no}"
value=
"#{addFederationBean.entity.fetchSps}"
/>
<h:outputText
value=
"#{messages.fetch_aas}"
/>
<p:selectBooleanButton
id=
"aasField"
onLabel=
"#{messages.yes}"
offLabel=
"#{messages.no}"
value=
"#{addFederationBean.entity.fetchAAs}"
/>
</h:panelGrid>
</h:panelGrid>
<h:commandButton
id=
"save"
action=
"#{addFederationBean.save}"
value=
"#{messages.save}"
/>
<h:commandButton
id=
"save"
action=
"#{addFederationBean.save}"
value=
"#{messages.save}"
/>
...
...
bwreg-webapp/src/main/webapp/admin/saml/edit-federation.xhtml
View file @
bd712c9f
...
@@ -48,6 +48,21 @@
...
@@ -48,6 +48,21 @@
var=
"rp"
itemLabel=
"#{rp.knowledgeBaseName} (#{rp.packageName})"
itemValue=
"#{rp}"
/>
var=
"rp"
itemLabel=
"#{rp.knowledgeBaseName} (#{rp.packageName})"
itemValue=
"#{rp}"
/>
</h:selectOneMenu>
</h:selectOneMenu>
<h:outputText
value=
"#{messages.fetch_idps}"
/>
<p:selectBooleanButton
id=
"idpsField"
onLabel=
"#{messages.yes}"
offLabel=
"#{messages.no}"
value=
"#{editFederationBean.entity.fetchIdps}"
/>
<h:outputText
value=
"#{messages.fetch_sps}"
/>
<p:selectBooleanButton
id=
"spsField"
onLabel=
"#{messages.yes}"
offLabel=
"#{messages.no}"
value=
"#{editFederationBean.entity.fetchSps}"
/>
<h:outputText
value=
"#{messages.fetch_aas}"
/>
<p:selectBooleanButton
id=
"aasField"
onLabel=
"#{messages.yes}"
offLabel=
"#{messages.no}"
value=
"#{editFederationBean.entity.fetchAAs}"
/>
</p:panelGrid>
</p:panelGrid>
<p:commandButton
id=
"save"
action=
"#{editFederationBean.save}"
value=
"#{messages.save}"
/>
<p:commandButton
id=
"save"
action=
"#{editFederationBean.save}"
value=
"#{messages.save}"
/>
</p:panel>
</p:panel>
...
...
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