blob: aae99bbb7d07182cf2236458a4808529fd0bcd3b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="CreateSecurityGroup">
<section>
<actions>
<set field="titleProperty" value="NewSecurityGroup"/>
<set field="cancelPage" from-field="parameters.CANCEL_PAGE" default-value="FindSecurityGroup"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.NewSecurityGroup}"/>
</container>
<include-form name="CreateSecurityGroup" location="component://common/widget/SecurityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CreateUserLogin">
<section>
<actions>
<set field="titleProperty" value="CreateUserLogin"/>
<set field="cancelPage" from-field="parameters.CANCEL_PAGE" default-value="FindUserLogin"/>
<set field="createUserLoginURI" value="createUserLogin"/>
<set field="partyId" from-field="parameters.partyId"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.CreateUserLogin}"/>
</container>
<include-form name="AddUserLogin" location="component://common/widget/SecurityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditSecurityGroup">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditSecurityGroup"/>
<set field="tabButtonItem" value="EditSecurityGroup"/>
<set field="groupId" from-field="parameters.groupId"/>
<entity-one entity-name="SecurityGroup" value-field="securityGroup"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.PageTitleEditSecurityGroup} - ${groupId}"/>
</container>
<include-form name="EditSecurityGroup" location="component://common/widget/SecurityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditSecurityGroupPermissions">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditSecurityGroupPermissions"/>
<set field="tabButtonItem" value="EditSecurityGroupPermissions"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<set field="groupId" from-field="parameters.groupId"/>
<entity-one entity-name="SecurityGroup" value-field="securityGroup"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.PageTitleEditSecurityGroupPermissions} - ${groupId}"/>
</container>
<screenlet id="AddPermissionFromList" title="${uiLabelMap.AddPermissionToSecurityGroup}" collapsible="true">
<include-form name="AddSecurityGroupPermission" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
<screenlet id="AddPermissionManual" title="${uiLabelMap.AddPermissionManuallyToSecurityGroup}" collapsible="true">
<include-form name="AddSecurityGroupPermissionManual" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.Permissions}">
<include-form name="ListSecurityGroupPermissions" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditSecurityGroupProtectedViews">
<section>
<actions>
<set field="titleProperty" value="AddProtectedViewToSecurityGroup"/>
<set field="tabButtonItem" value="EditSecurityGroupProtectedViews"/>
<set field="groupId" from-field="parameters.groupId"/>
<entity-one entity-name="SecurityGroup" value-field="securityGroup"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.ProtectedViews} - ${groupId}"/>
</container>
<screenlet id="AddSecurityGroupProtectedViewsPanel" title="${uiLabelMap.AddProtectedViewToSecurityGroup}" collapsible="true">
<include-form name="AddSecurityGroupProtectedView" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
<include-form name="ListSecurityGroupProtectedViews" location="component://common/widget/SecurityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditSecurityGroupUserLogins">
<section>
<actions>
<set field="titleProperty" value="AddUserLoginToSecurityGroup"/>
<set field="tabButtonItem" value="EditSecurityGroupUserLogins"/>
<set field="groupId" from-field="parameters.groupId"/>
<entity-one entity-name="SecurityGroup" value-field="securityGroup"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.UserLogins} - ${groupId}"/>
</container>
<screenlet id="AddSecurityGroupUserLoginsPanel" title="${uiLabelMap.AddUserLoginToSecurityGroup}" collapsible="true">
<include-form name="AddSecurityGroupUserLogin" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
<include-form name="ListSecurityGroupUserLogins" location="component://common/widget/SecurityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditUserLogin">
<section>
<actions>
<set field="titleProperty" value="UserLoginUpdateSecuritySettings"/>
<set field="tabButtonItem" value="EditUserLogin"/>
<set field="cancelPage" from-field="parameters.CANCEL_PAGE" default-value="FindUserLogin"/>
<set field="updateUserLoginSecurityURI" value="updateUserLoginSecurity"/>
<set field="updatePasswordURI" value="updatePassword"/>
<set field="userLoginId" from-field="parameters.userLoginId"/>
<entity-one entity-name="UserLogin" value-field="editUserLogin"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.UserLoginUpdateSecuritySettings} - ${userLoginId}"/>
</container>
<include-form name="UpdateUserLoginSecurity" location="component://common/widget/SecurityForms.xml"/>
<screenlet title="${uiLabelMap.UserLoginChangePassword}">
<include-form name="UpdatePassword" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditUserLoginSecurityGroups">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditUserLoginSecurityGroups"/>
<set field="tabButtonItem" value="EditUserLoginSecurityGroups"/>
<set field="addUserLoginSecurityGroupURI" value="userLogin_addUserLoginToSecurityGroup"/>
<set field="removeUserLoginSecurityGroupURI" value="userLogin_removeUserLoginFromSecurityGroup"/>
<set field="updateUserLoginSecurityGroupURI" value="userLogin_updateUserLoginToSecurityGroup"/>
<set field="userLoginId" from-field="parameters.userLoginId"/>
<entity-one entity-name="UserLogin" value-field="editUserLogin"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.PageTitleEditUserLoginSecurityGroups} - ${userLoginId}"/>
</container>
<screenlet id="AddUserLoginSecurityGroupsPanel" title="${uiLabelMap.AddUserLoginToSecurityGroup}" collapsible="true">
<include-form name="AddUserLoginSecurityGroup" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
<include-form name="ListUserLoginSecurityGroups" location="component://common/widget/SecurityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditX509IssuerProvisions">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditIssuerProvisions"/>
<set field="tabButtonItem" value="EditCertIssuerProvisions"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.PageTitleEditIssuerProvisions}"/>
</container>
<screenlet title="${uiLabelMap.PageTitleAddIssuerProvisions}">
<include-form name="EditCertificate" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.CertIssuers}">
<include-form name="CertIssuerList" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindSecurityGroup">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindSecurityGroup"/>
<set field="tabButtonItem" value="FindSecurityGroup"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.PageTitleFindSecurityGroup}"/>
</container>
<container style="button-bar">
<link target="CreateNewSecurityGroup" style="buttontext create" text="${uiLabelMap.CommonCreateNew}"/>
</container>
<include-form name="ListSecurityGroups" location="component://common/widget/SecurityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindUserLogin">
<section>
<actions>
<set field="titleProperty" value="FindUserLogin"/>
<set field="tabButtonItem" value="FindUserLogin"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.FindUserLogin}"/>
</container>
<container style="button-bar">
<link target="createnewlogin" style="buttontext create" text="${uiLabelMap.CommonCreateNew}"/>
</container>
<include-form name="ListUserLogins" location="component://common/widget/SecurityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="SecurityDecorator">
<section>
<actions>
<set field="headerItem" value="security"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="pre-body">
<section>
<condition>
<if-service-permission service-name="securityPermissionCheck" main-action="VIEW"/>
</condition>
<widgets>
<include-menu name="SecurityGroupTabBar" location="component://common/widget/SecurityMenus.xml"/>
</widgets>
</section>
</decorator-section>
<decorator-section name="body">
<section>
<condition>
<if-service-permission service-name="securityPermissionCheck" main-action="VIEW"/>
</condition>
<widgets>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.SecurityViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewCertificate">
<section>
<actions>
<set field="titleProperty" value="PageTitleImportCertificate"/>
<set field="tabButtonItem" value="EditCertIssuerProvisions"/>
<set field="certString" from-field="requestParameters.certString"/>
<script location="component://common/groovyScripts/CertKeystore.groovy"/>
</actions>
<widgets>
<decorator-screen name="SecurityDecorator" location="${parameters.securityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.PageTitleImportCertificate}"/>
<screenlet title="${uiLabelMap.PageTitleAddIssuerProvisions}">
<include-form name="EditCertificate" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.CertSaveToKeyStore}">
<include-form name="ViewCertificate" location="component://common/widget/SecurityForms.xml"/>
<include-form name="CertToKeystore" location="component://common/widget/SecurityForms.xml"/>
</screenlet>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>