dlestrat    2004/11/29 13:12:45

  Added:       applications/security/src/webapp/WEB-INF/security/rolemgt
                        role-mgt.jsp roles-view.jsp role-add-user.jsp
                        role-add.jsp role-add-group.jsp
  Log:
  http://nagoya.apache.org/jira/browse/JS2-23#action_55991
  
  Revision  Changes    Path
  1.1                  
jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/rolemgt/role-mgt.jsp
  
  Index: role-mgt.jsp
  ===================================================================
  <%@ page session="true" contentType="text/html;charset=utf-8"%>

  <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>

  <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>

  <%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%>

  

  <%

  /*

   * Copyright 2004 The Apache Software Foundation.

   * 

   * Licensed under the Apache License, Version 2.0 (the "License");

   * you may not use this file except in compliance with the License.

   * You may obtain a copy of the License at

   * 

   *      http://www.apache.org/licenses/LICENSE-2.0

   * 

   * Unless required by applicable law or agreed to in writing, software

   * distributed under the License is distributed on an "AS IS" BASIS,

   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

   * See the License for the specific language governing permissions and

   * limitations under the License.

   */

  %>

  

  <f:view>

  

        <f:loadBundle 
basename="org.apache.jetspeed.portlets.security.resources.RoleMgtResources" 
var="roleMgtMessages"/>

  

        <h:panelGroup>

  

        <x:panelTabbedPane styleClass="tabs"

                        activeTabStyleClass="activeTabs"

                        inactiveTabStyleClass="inactiveTabs"

                        width="400">

                        

                <x:tabChangeListener 
type="org.apache.jetspeed.portlets.security.rolemgt.PanelTabStateListener" />   
   

        

        <x:panelTab id="viewRolesTab" label="#{roleMgtMessages['viewRoles']}" 
rendered="#{roleMgtPanelTabState.renderViewRoles}">

                        <jsp:include page="roles-view.jsp" />      

            </x:panelTab>

            

                <x:panelTab id="editRoleTab" 
label="#{roleMgtMessages['viewRoles']}" 
rendered="#{roleMgtPanelTabState.renderEditRole}">         

                        <h:form id="selection">

                        <h:selectOneMenu id="seloneMenuPanel" 
value="#{stackState.selected}" styleClass="selectOneMenu" 
onchange="document.forms['selection'].submit();">

                                <f:selectItem itemValue="addUserToRole" 
itemLabel="#{roleMgtMessages['addUserToRole']}" />

                            <f:selectItem itemValue="addGroupToRole" 
itemLabel="#{roleMgtMessages['addGroupToRole']}" />

                        </h:selectOneMenu>

                    </h:form>

  

                    <x:panelStack id="stack" 
selectedPanel="#{stackState.selected}">

                        <h:panelGroup id="addUserToRole">

                                <jsp:include page="role-add-user.jsp" />   

                        </h:panelGroup>

                                <h:panelGroup id="addGroupToRole">

                                        <jsp:include page="role-add-group.jsp" 
/>  

                        </h:panelGroup>

                        </x:panelStack>

            </x:panelTab>

            

        <x:panelTab id="addRoleTab" label="#{roleMgtMessages['addRole']}" 
rendered="true">

                <jsp:include page="role-add.jsp" />

                </x:panelTab>

        </x:panelTabbedPane>

  

        </h:panelGroup>

  

  </f:view>
  
  
  1.1                  
jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/rolemgt/roles-view.jsp
  
  Index: roles-view.jsp
  ===================================================================
  <%@ page session="true" contentType="text/html;charset=utf-8"%>

  <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>

  <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>

  <%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%>

  

  <%

  /*

   * Copyright 2004 The Apache Software Foundation.

   * 

   * Licensed under the Apache License, Version 2.0 (the "License");

   * you may not use this file except in compliance with the License.

   * You may obtain a copy of the License at

   * 

   *      http://www.apache.org/licenses/LICENSE-2.0

   * 

   * Unless required by applicable law or agreed to in writing, software

   * distributed under the License is distributed on an "AS IS" BASIS,

   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

   * See the License for the specific language governing permissions and

   * limitations under the License.

   */

  %>

  

  <h:outputText value="#{roleMgtMessages['viewRoleInfo']}" 
styleClass="portlet-msg-info" />

  <f:verbatim><br></f:verbatim>

  <x:messages id="roleSelectManyCheckboxMsgList" layout="table" 
styleClass="portlet-msg-error" showDetail="true" summaryFormat="{0} " />

  <f:verbatim><br></f:verbatim>

  

  <h:form name="roleSelectManyCheckboxForm">

  <x:selectManyCheckbox id="roleSelectManyCheckbox" 
value="#{roleActionForm.selectedRoles}" layout="spread" />

  

  <x:tree id="tree" value="#{roleTreeTable.treeModel}"

                var="roleTreeItem"

                styleClass="tree"

            nodeClass="tree-node"

            headerClass="portlet-table-header"

            footerClass="portlet-table-footer"

          rowClasses="portlet-table-row1, portlet-table-row2"

          columnClasses="portlet-table-col1, portlet-table-col2"

          selectedNodeClass="tree-node-selected"

          expandRoot="true">

     

        <h:column>

                <f:facet name="header">

                        <h:outputText 
value="#{roleMgtMessages['selectHeader']}" />

          </f:facet>

          <x:treeCheckbox for="roleSelectManyCheckbox" 
itemValue="#{roleTreeItem.fullPath}" />

        </h:column>

        <x:treeColumn>

                <f:facet name="header">

                        <h:outputText 
value="#{roleMgtMessages['roleHierarchy']}" />

                </f:facet>

                <h:commandLink action="none">

                <h:outputText value="#{roleTreeItem.roleName}" />

                <f:param name="addRoleToParam" 
value="#{roleTreeItem.fullPath}"/>

                <f:actionListener 
type="org.apache.jetspeed.portlets.security.rolemgt.AddRoleCommandLinkActionListener"
 />

          </h:commandLink>

        </x:treeColumn>

        <f:facet name="footer">

                <h:panelGroup>

                        <h:form name="roleMgt">

                                <h:commandButton id="editRoleAction" 
action="none" value="#{roleMgtMessages['editRole']}">

                                        <f:actionListener 
type="org.apache.jetspeed.portlets.security.rolemgt.RoleActionListener" />

                                </h:commandButton>

                                <f:verbatim>&nbsp;</f:verbatim>

                                <h:commandButton id="removeRoleCmd" 
value="#{roleMgtMessages['removeRole']}"/>

                        </h:form>

                </h:panelGroup>

        </f:facet>

  </x:tree>

  

  </h:form>

  <f:verbatim><br></f:verbatim>

          
  
  
  1.1                  
jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/rolemgt/role-add-user.jsp
  
  Index: role-add-user.jsp
  ===================================================================
  <%@ page session="true" contentType="text/html;charset=utf-8"%>

  <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>

  <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>

  <%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%>

  

  <%

  /*

   * Copyright 2004 The Apache Software Foundation.

   * 

   * Licensed under the Apache License, Version 2.0 (the "License");

   * you may not use this file except in compliance with the License.

   * You may obtain a copy of the License at

   * 

   *      http://www.apache.org/licenses/LICENSE-2.0

   * 

   * Unless required by applicable law or agreed to in writing, software

   * distributed under the License is distributed on an "AS IS" BASIS,

   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

   * See the License for the specific language governing permissions and

   * limitations under the License.

   */

  %>

  

  <h:outputText value="#{roleMgtMessages['currentRolePath']}" 
styleClass="PTitleContent" />

  <f:verbatim>&nbsp;</f:verbatim>

  <h:outputText value="#{roleActionForm.rolePath}" />

  <f:verbatim><br></f:verbatim>

  <h:outputText value="#{roleMgtMessages['currentRoleName']}" 
styleClass="PTitleContent" />

  <f:verbatim>&nbsp;</f:verbatim>

  <h:outputText value="#{roleActionForm.roleName}" />

  <f:verbatim><br><br></f:verbatim>

  

  <h:panelGrid columns="3" styleClass="portlet-scroller-grid" 
rowClasses="portlet-scroller-grid">

        <h:panelGroup>

                

                <h:outputText 
value="#{roleMgtMessages['availableUsersHeader']}" styleClass="PTitleContent" />

                <f:verbatim><br></f:verbatim>

                

                <x:dataTable id="availableUsersTable"

                       headerClass="portlet-table-header"

                       footerClass="portlet-table-footer"

                       rowClasses="portlet-table-row1, portlet-table-row2"

                       columnClasses="portlet-table-col1, portlet-table-col2"

                       var="availableUser"

                       value="#{availableUsersList.availableUsers}"

                       preserveDataModel="true"

                       rows="10"

                     >

                     

              <h:column>

                <f:facet name="header">

                        <h:outputText 
value="#{roleMgtMessages['selectHeader']}" />

                  </f:facet>

                  <h:outputText value="X" />

              </h:column>

              

                <h:column>

                <f:facet name="header">

                        <h:outputText value="#{roleMgtMessages['username']}" />

                  </f:facet>

                  <h:outputText value="#{availableUser.username}" />

              </h:column>

  

          </x:dataTable>

                <x:dataScroller id="availableUsersScroller"

                                                for="availableUsersTable"

                          fastStep="5"

                          pageCountVar="availableUserPageCount"

                          pageIndexVar="availableUserPageIndex"

                          styleClass="portlet-scroller"

                          paginator="true"

                          paginatorMaxPages="5"

                          paginatorTableClass="portlet-paginator"

                          paginatorActiveColumnStyle="font-weight:bold;"

                        >

                <% /* f:facet name="previous">

                <h:graphicImage url="images/icon_previous.gif" border="0" />

              </f:facet>

              <f:facet name="next">

                <h:graphicImage url="images/icon_next.gif" border="0" />

              </f:facet */ %>

        </x:dataScroller>

          <x:dataScroller id="availableUsersScrollerPages"

                          for="availableUsersTable"

                          pageCountVar="availableUserPageCount"

                          pageIndexVar="availableUserPageIndex"

                        >

                <h:outputFormat value="#{roleMgtMessages['scrollerPages']}">

                <f:param value="#{availableUserPageIndex}" />

                  <f:param value="#{availableUserPageCount}" />

              </h:outputFormat>

                </x:dataScroller>

                

        </h:panelGroup>

        

        <h:panelGroup>

                <f:verbatim>Rigth<br></f:verbatim>

                <f:verbatim>Left<br></f:verbatim>

        </h:panelGroup>

        

        <h:panelGroup>

  

                <h:outputText value="#{roleMgtMessages['selectedUsersHeader']}" 
styleClass="PTitleContent" />

                <f:verbatim><br></f:verbatim>

  

                <x:dataTable id="selectedUsersTable"

                       headerClass="portlet-table-header"

                       footerClass="portlet-table-footer"

                       rowClasses="portlet-table-row1, portlet-table-row2"

                       columnClasses="portlet-table-col1, portlet-table-col2"

                       var="selectedUser"

                       value="#{selectedUsersList.selectedUsers}"

                       preserveDataModel="true"

                       rows="10"

                     >

                     

                <h:column>

                <f:facet name="header">

                        <h:outputText 
value="#{roleMgtMessages['selectHeader']}" />

                  </f:facet>

                  <h:outputText value="X" />

              </h:column>

                

                <h:column>

                <f:facet name="header">

                        <h:outputText value="#{roleMgtMessages['username']}" />

                  </f:facet>

                  <h:outputText value="#{selectedUser.username}" />

              </h:column>

  

          </x:dataTable>

                <x:dataScroller id="selectedUsersScroller"

                                                for="selectedUsersTable"

                          fastStep="5"

                          pageCountVar="selectedUserPageCount"

                          pageIndexVar="selectedUserPageIndex"

                          styleClass="portlet-scroller"

                          paginator="true"

                          paginatorMaxPages="5"

                          paginatorTableClass="portlet-paginator"

                          paginatorActiveColumnStyle="font-weight:bold;"

                        >

                <% /* f:facet name="previous">

                <h:graphicImage url="images/icon_previous.gif" border="0" />

              </f:facet>

              <f:facet name="next">

                <h:graphicImage url="images/icon_next.gif" border="0" />

              </f:facet */ %>

        </x:dataScroller>

          <x:dataScroller id="selectedUsersScrollerPages"

                          for="selectedUsersTable"

                          pageCountVar="selectedUserPageCount"

                          pageIndexVar="selectedUserPageIndex"

                        >

                <h:outputFormat value="#{roleMgtMessages['scrollerPages']}">

                <f:param value="#{selectedUserPageIndex}" />

                  <f:param value="#{selectedUserPageCount}" />

              </h:outputFormat>

                </x:dataScroller>

        

  

        </h:panelGroup>

   

   </h:panelGrid>
  
  
  1.1                  
jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/rolemgt/role-add.jsp
  
  Index: role-add.jsp
  ===================================================================
  <%@ page session="true" contentType="text/html;charset=utf-8"%>

  <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>

  <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>

  

  <%

  /*

   * Copyright 2004 The Apache Software Foundation.

   * 

   * Licensed under the Apache License, Version 2.0 (the "License");

   * you may not use this file except in compliance with the License.

   * You may obtain a copy of the License at

   * 

   *      http://www.apache.org/licenses/LICENSE-2.0

   * 

   * Unless required by applicable law or agreed to in writing, software

   * distributed under the License is distributed on an "AS IS" BASIS,

   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

   * See the License for the specific language governing permissions and

   * limitations under the License.

   */

  %>

  

  <h:outputText value="#{roleMgtMessages['currentParentRolePath']}" 
styleClass="PTitleContent" />

  <f:verbatim>&nbsp;</f:verbatim>

  <h:outputText value="#{roleActionForm.parentRole.fullPath}" />

  <f:verbatim><br></f:verbatim>

  <h:outputText value="#{roleMgtMessages['currentParentRoleName']}" 
styleClass="PTitleContent" />

  <f:verbatim>&nbsp;</f:verbatim>

  <h:outputText value="#{roleActionForm.parentRole.roleName}" />

  <f:verbatim><br><br></f:verbatim>

  

  <h:form id="addRoleForm" name="addRoleForm">

  

        <h:panelGrid columns="2" columnClasses="portlet-form-label, 
portlet-form-input-field">

                           

                <h:outputLabel for="roleName" 
value="#{roleMgtMessages['roleNameLabel']}"/>

                <h:panelGroup>

                        <h:inputText id="roleName" 
value="#{roleActionForm.roleName}" required="true" />

                    <f:verbatim><br></f:verbatim>

                    <h:message for="roleName" styleClass="portlet-msg-error" 
showDetail="true" showSummary="false" />

                </h:panelGroup>

  

                <h:panelGroup>

                    <h:commandButton id="addRoleAction" action="none" 
value="#{roleMgtMessages['addRole']}" styleClass="portlet-form-button">

                                <f:actionListener 
type="org.apache.jetspeed.portlets.security.rolemgt.RoleActionListener" />

                    </h:commandButton>

                </h:panelGroup>

                <h:panelGroup/>

  

        </h:panelGrid>

  </h:form>

  

  

  <f:verbatim><br></f:verbatim>
  
  
  1.1                  
jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/rolemgt/role-add-group.jsp
  
  Index: role-add-group.jsp
  ===================================================================
  <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>

  

  <f:verbatim><p>Add Group to Role</p></f:verbatim>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to