Commit bd712c9f authored by michael.simon's avatar michael.simon
Browse files

Make fetching of SPs and AAs within Federations editable

parent 67605491
......@@ -34,6 +34,9 @@ public class AddFederationBean implements Serializable {
@PostConstruct
public void init() {
entity = service.createNew();
entity.setFetchIdps(Boolean.TRUE);
entity.setFetchSps(Boolean.FALSE);
entity.setFetchAAs(Boolean.FALSE);
}
public String save() {
......
......@@ -3,7 +3,8 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
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>
<title></title>
</head>
......@@ -23,6 +24,21 @@
<h:outputText value="#{messages.url}:" />
<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>
......
......@@ -48,6 +48,21 @@
var="rp" itemLabel="#{rp.knowledgeBaseName} (#{rp.packageName})" itemValue="#{rp}"/>
</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:commandButton id="save" action="#{editFederationBean.save}" value="#{messages.save}"/>
</p:panel>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment