-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oxTrust issue #392 : changes to export ldif
- Loading branch information
shekhar16
committed
Mar 14, 2017
1 parent
1b22ebb
commit cb9fa09
Showing
4 changed files
with
270 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<page xmlns="http://jboss.org/schema/seam/pages" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://jboss.org/schema/seam/pages http://jboss.org/schema/seam/pages-2.3.xsd" | ||
no-conversation-view-id="/home.xhtml" login-required="true" | ||
view-id="/attribute/attributeExport.xhtml"> | ||
|
||
<restrict>#{s:hasPermission('attribute', 'access')}</restrict> | ||
|
||
<action execute="#{attributeInventoryAction.start}" if="#{attributeInventoryAction.attributeList == null}" on-postback="false" /> | ||
|
||
<rewrite pattern="/attribute/export" /> | ||
|
||
<navigation from-action="#{attributeInventoryAction.start}"> | ||
<rule if-outcome="success"> | ||
<begin-conversation join="true" flush-mode="manual" /> | ||
<render view-id="/attribute/attributeExport.xhtml" /> | ||
</rule> | ||
|
||
<rule if-outcome="failure"> | ||
<end-conversation /> | ||
<redirect view-id="/home.xhtml"> | ||
<message severity="ERROR">Failed to load attributes</message> | ||
</redirect> | ||
</rule> | ||
</navigation> | ||
|
||
</page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<ui:composition xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:s="http://jboss.org/schema/seam/taglib" | ||
xmlns:ui="http://java.sun.com/jsf/facelets" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:a4j="http://richfaces.org/a4j" | ||
xmlns:rich="http://richfaces.org/rich" | ||
xmlns:richext="http://java.sun.com/jsf/composite/richext" | ||
template="/WEB-INF/incl/layout/newtemplate.xhtml"> | ||
|
||
<ui:define name="body"> | ||
|
||
<section class="content-header"> | ||
|
||
<h1 style="color: #333;"> | ||
Import/Export Attributes<small><i class="fa fa-caret-right" | ||
style="color: #333 !important;"></i> Export Attribute</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="#{request.contextPath}/home"><i class="fa fa-home"></i></a></li> | ||
<li class="organization/configuration"><a href="#{request.contextPath}/attribute/export"> | ||
Export Attribute</a></li> | ||
</ol> | ||
</section> | ||
<section class= "content"> | ||
<div id="formArea"> | ||
<h:panelGroup columns="1" border="0" cellpadding="0" cellspacing="0" | ||
width="100%"> | ||
<h:form id="attributesFormId"> | ||
|
||
<s:link view="/attribute/attributeImport.xhtml" | ||
styleClass="label label-success" value="Import Attribute LDIF" propagation="none" style="margin-left:5px;padding:6px;"/> | ||
|
||
<div class="row" style="padding-top:20px"> | ||
<div class="col-xs-12"> | ||
<div class="nav-tabs-custom" style="margin-bottom: 0px;"> | ||
<ul class="nav nav-tabs"> | ||
|
||
<li class="active"><a href="#attribuiteInventory" | ||
data-toggle="tab">Export Attribute </a></li> | ||
</ul> | ||
<div class="tab-content"> | ||
<!-- System Configuration --> | ||
<div class="tab-pane active" id="attributeInventory"> | ||
|
||
<div style="display: inline-block; width: 75% !important;"> | ||
<h:panelGroup> | ||
|
||
<div class="row"> | ||
<div id="update" runat="server" visible="false"> | ||
<!-- general form elements --> | ||
<div class="box box-primary" style="width:132%;"> | ||
|
||
<!-- /.box-header --> | ||
<!-- form start --> | ||
<div class="box-body"> | ||
<div class="table-responsive" style="overflow: auto"> | ||
|
||
|
||
|
||
<s:fragment | ||
rendered="#{attributeInventoryAction.attributeList.size eq 0}"> | ||
<h:outputText value="No Attributes Found" /> | ||
</s:fragment> | ||
<h:dataTable sortMode="single" | ||
styleClass="table table-hover rt" | ||
value="#{attributeInventoryAction.attributeList}" | ||
var="attr" id="attributesListId" width="100%" | ||
rendered="#{attributeInventoryAction.attributeList.size gt 0}"> | ||
<h:column sortBy="#{attr.displayName}" | ||
class="col-xs-12"> | ||
<f:facet name="header" > | ||
<div style="text-align: center;">Export</div> | ||
</f:facet> | ||
<h:selectBooleanCheckbox value="#{attributeInventoryAction.checked[attr.inum]}" /> | ||
</h:column> | ||
|
||
<h:column sortBy="#{attr.displayName}" | ||
class="col-xs-12"> | ||
<f:facet name="header" > | ||
<div style="text-align: center;"> Display Name</div> | ||
</f:facet> | ||
<s:link view="/attribute/updateAttribute.xhtml" | ||
value="#{attr.displayName}" propagation="none"> | ||
<f:param name="inum" value="#{attr.inum}" /> | ||
</s:link> | ||
</h:column> | ||
|
||
<h:column sortBy="#{attr.name}" > | ||
<f:facet name="header"> | ||
<div style="text-align: center;"> Name</div> | ||
</f:facet> | ||
<h:outputText value="#{attr.name}" class="col-xs-12" /> | ||
</h:column> | ||
|
||
<h:column sortBy="#{attr.origin}" class="col-xs-12"> | ||
<f:facet name="header"> | ||
<div style="text-align: center;"> Origin</div> | ||
</f:facet> | ||
|
||
<h:outputText value="#{attr.origin}" | ||
class="col-xs-12" /> | ||
</h:column> | ||
|
||
<h:column> | ||
<f:facet name="header"> | ||
<div style="text-align: center;"> Description </div> | ||
</f:facet> | ||
<h:outputText class="col-xs-12" | ||
value="#{attr.description}" /> | ||
</h:column> | ||
|
||
<h:column> | ||
<f:facet name="header"> | ||
<div style="text-align: center;"> Status</div> | ||
</f:facet> | ||
<h:outputText class="col-xs-1" value="#{attr.status}" /> | ||
</h:column> | ||
</h:dataTable> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</h:panelGroup> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<h:commandButton styleClass="btn btn-primary" value="Export" action="#{attributeInventoryAction.submit}"/> | ||
</h:form> | ||
|
||
</h:panelGroup> | ||
</div> | ||
</section> | ||
</ui:define> | ||
</ui:composition> |