Improved: Rename custom component for SMS gateway integration. Rename files and references, also rename the webapp from msg91 to msggateway.
(OFBIZ-10973) Thanks to Pritam and Swapnil Mane for this improvement git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858308 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -19,22 +19,22 @@ under the License.
|
||||
-->
|
||||
|
||||
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-properties.xsd">
|
||||
<property key="Msg91Application">
|
||||
<value xml:lang="en">Msg91 Application</value>
|
||||
<value xml:lang="zh">Msg91应用程序</value>
|
||||
<value xml:lang="zh-TW">Msg91應用程式</value>
|
||||
<property key="MsgGatewayApplication">
|
||||
<value xml:lang="en">MsgGateway Application</value>
|
||||
<value xml:lang="zh">MsgGateway应用程序</value>
|
||||
<value xml:lang="zh-TW">MsgGateway應用程式</value>
|
||||
</property>
|
||||
<property key="Msg91CompanyName">
|
||||
<value xml:lang="en">OFBiz: Msg91</value>
|
||||
<value xml:lang="zh-TW">OFBiz: Msg91</value>
|
||||
<property key="MsgGatewayCompanyName">
|
||||
<value xml:lang="en">OFBiz: MsgGateway</value>
|
||||
<value xml:lang="zh-TW">OFBiz: MsgGateway</value>
|
||||
</property>
|
||||
<property key="Msg91CompanySubtitle">
|
||||
<property key="MsgGatewayCompanySubtitle">
|
||||
<value xml:lang="en">Part of the Apache OFBiz Family of Open Source Software</value>
|
||||
<value xml:lang="it">Un modulo della famiglia di software open source Apache OFBiz</value>
|
||||
<value xml:lang="zh">开源软件OFBiz的组成部分</value>
|
||||
<value xml:lang="zh-TW">開源軟體OFBiz的組成部分</value>
|
||||
</property>
|
||||
<property key="Msg91ViewPermissionError">
|
||||
<property key="MsgGatewayViewPermissionError">
|
||||
<value xml:lang="en">You are not allowed to view this page.</value>
|
||||
<value xml:lang="zh">不允许你浏览这个页面。</value>
|
||||
<value xml:lang="zh-TW">不允許您檢視這個頁面.</value>
|
||||
|
||||
@@ -19,11 +19,11 @@ under the License.
|
||||
-->
|
||||
|
||||
<entity-engine-xml>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FULLADMIN" permissionId="MSG91_ADMIN"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSG91_CREATE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSG91_DELETE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSG91_UPDATE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSG91_VIEW"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="VIEWADMIN" permissionId="MSG91_VIEW"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="BIZADMIN" permissionId="MSG91_ADMIN"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FULLADMIN" permissionId="MSGGATEWAY_ADMIN"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSGGATEWAY_CREATE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSGGATEWAY_DELETE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSGGATEWAY_UPDATE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSGGATEWAY_VIEW"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="VIEWADMIN" permissionId="MSGGATEWAY_VIEW"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="BIZADMIN" permissionId="MSGGATEWAY_ADMIN"/>
|
||||
</entity-engine-xml>
|
||||
|
||||
@@ -19,12 +19,14 @@ under the License.
|
||||
-->
|
||||
|
||||
<entity-engine-xml>
|
||||
<SecurityPermission description="View operations in the Msg91 Component." permissionId="MSG91_VIEW"/>
|
||||
<SecurityPermission description="Create operations in the Msg91 Component." permissionId="MSG91_CREATE"/>
|
||||
<SecurityPermission description="Update operations in the Msg91 Component." permissionId="MSG91_UPDATE"/>
|
||||
<SecurityPermission description="Delete operations in the Msg91 Component." permissionId="MSG91_DELETE"/>
|
||||
<SecurityPermission description="ALL operations in the Msg91 Component." permissionId="MSG91_ADMIN"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FULLADMIN" permissionId="MSGGATEWAY_ADMIN"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSGGATEWAY_CREATE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSGGATEWAY_DELETE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSGGATEWAY_UPDATE"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MSGGATEWAY_VIEW"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="VIEWADMIN" permissionId="MSGGATEWAY_VIEW"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="BIZADMIN" permissionId="MSGGATEWAY_ADMIN"/>
|
||||
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="SUPER" permissionId="MSG91_ADMIN"/>
|
||||
<SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="SUPER" permissionId="MSGGATEWAY_ADMIN"/>
|
||||
|
||||
</entity-engine-xml>
|
||||
|
||||
@@ -23,13 +23,13 @@ under the License.
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
xsi:schemaLocation="http://docbook.org/ns/docbook ../../../applications/content/dtd/docbook.xsd"
|
||||
xmlns="http://docbook.org/ns/docbook">
|
||||
|
||||
<title><anchor xml:id="Msg91"/>The Msg91 Component</title>
|
||||
|
||||
<title><anchor xml:id="MsgGateway"/>The MsgGateway Component</title>
|
||||
<section>
|
||||
<title>Introduction</title>
|
||||
<para>
|
||||
</para>
|
||||
</section>
|
||||
<xi:include href="../data/helpdata/HELP_Msg91.xml" />
|
||||
<xi:include href="../data/helpdata/HELP_MsgGateway.xml" />
|
||||
|
||||
</chapter>
|
||||
|
||||
@@ -23,7 +23,7 @@ under the License.
|
||||
<!-- ========================================================= -->
|
||||
<!-- ======================== Defaults ======================= -->
|
||||
<!-- ========================================================= -->
|
||||
<title>Entity of Msg91 Component</title>
|
||||
<title>Entity of MsgGateway Component</title>
|
||||
<description>None</description>
|
||||
<copyright></copyright>
|
||||
<version></version>
|
||||
|
||||
@@ -38,8 +38,6 @@ under the License.
|
||||
<!-- service resources: model(s), eca(s) and group definitions -->
|
||||
<service-resource type="model" loader="main" location="servicedef/services.xml"/>
|
||||
|
||||
<test-suite loader="main" location="testdef/MsgGatewayTests.xml"/>
|
||||
|
||||
<!-- web applications; will be mounted when using the embedded container -->
|
||||
<webapp name="msggateway"
|
||||
title="Msggateway"
|
||||
|
||||
@@ -20,7 +20,7 @@ under the License.
|
||||
|
||||
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
||||
<description>Msg91 Services</description>
|
||||
<description>MsgGateway Services</description>
|
||||
<vendor></vendor>
|
||||
<version>1.0</version>
|
||||
|
||||
|
||||
@@ -24,16 +24,16 @@ under the License.
|
||||
<screen name="main-decorator">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="Msg91UiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="MsgGatewayUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.Msg91CompanyName" global="true"/>
|
||||
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.Msg91CompanySubtitle" global="true"/>
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.MsgGatewayCompanyName" global="true"/>
|
||||
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.MsgGatewayCompanySubtitle" global="true"/>
|
||||
|
||||
<set field="activeApp" value="msg91" global="true"/>
|
||||
<set field="activeApp" value="msggateway" global="true"/>
|
||||
<set field="applicationMenuName" value="MainAppBar" global="true"/>
|
||||
<set field="applicationMenuLocation" value="component://msg91/widget/Msg91Menus.xml" global="true"/>
|
||||
<set field="applicationTitle" from-field="uiLabelMap.Msg91Application" global="true"/>
|
||||
<set field="applicationMenuLocation" value="component://msggateway/widget/MsgGatewayMenus.xml" global="true"/>
|
||||
<set field="applicationTitle" from-field="uiLabelMap.MsgGatewayApplication" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
|
||||
@@ -41,7 +41,7 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="Msg91CommonDecorator">
|
||||
<screen name="MsgGatewayCommonDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
</actions>
|
||||
@@ -50,13 +50,13 @@ under the License.
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="MSG91" action="_VIEW"/>
|
||||
<if-has-permission permission="MSGGATEWAY" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.Msg91ViewPermissionError}</label>
|
||||
<label style="h3">${uiLabelMap.MsgGatewayViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
|
||||
@@ -19,7 +19,7 @@ under the License.
|
||||
-->
|
||||
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ofbiz.apache.org/Widget-Menu" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Menu http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
<menu name="MainAppBar" title="${uiLabelMap.Msg91Application}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu name="MainAppBar" title="${uiLabelMap.MsgGatewayApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="main" title="${uiLabelMap.CommonMain}"><link target="main"/></menu-item>
|
||||
</menu>
|
||||
</menus>
|
||||
Reference in New Issue
Block a user