2d part and end of an effort to remove trailing spaces

[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2009-04-08 10:54:51 +00:00
parent af6b6e5187
commit b9c3ddef08
2213 changed files with 21453 additions and 21464 deletions
@@ -6,9 +6,9 @@
* 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
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="cdynePostalAddressFillInCounty" short-description="Cdyne PostalAddress Fill In County">
<entity-one entity-name="PostalAddress" value-field="postalAddress"/>
@@ -38,7 +38,7 @@ under the License.
<results-to-map map-name="cdyneResultMap"/>
</call-service>
<log level="verbose" message="Got result from CDyne service: ${cdyneResultMap}"/>
<!-- Now try to find the county based on what was returned -->
<entity-condition entity-name="GeoAssocAndGeoTo" list="geoList">
<condition-list combine="and">
@@ -18,13 +18,13 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="commonGenericPermission" short-description="Main permission logic">
<set field="primaryPermission" value="COMMON"/>
<call-simple-method method-name="genericBasePermissionCheck" xml-resource="component://common/script/org/ofbiz/common/permission/CommonPermissionServices.xml"/>
</simple-method>
<simple-method method-name="createKeywordThesaurus" short-description="Create a KeywordThesaurus">
<check-permission permission="CATALOG" action="_CREATE"><fail-message message="Security Error: to run createKeywordThesaurus you must have the CATALOG_CREATE or CATALOG_ADMIN permission"/></check-permission>
<check-errors/>
@@ -50,7 +50,7 @@ under the License.
<set-pk-fields map="parameters" value-field="newEntity"/>
<remove-by-and entity-name="KeywordThesaurus" map="newEntity"/>
</simple-method>
<!-- Uom Conversion service -->
<simple-method method-name="createUomConversionDated" short-description="Create a new dated UOM conversion entity">
<make-value value-field="newEntity" entity-name="UomConversionDated"/>
@@ -58,7 +58,7 @@ under the License.
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="convertUom" short-description="Convert UOM values" login-required="false">
<!-- base case: if both uomIds are the same, return the original value -->
<if-compare-field field="parameters.uomId" to-field="parameters.uomIdTo" operator="equals">
@@ -73,10 +73,10 @@ under the License.
<set field="asOfDate" from-field="parameters.asOfDate"/>
</else>
</if-empty>
<!-- first try the regular UomConversion entity (no dates) -->
<entity-one entity-name="UomConversion" value-field="uomConversion" auto-field-map="true" use-cache="true"/>
<!-- if not found, try the dated uom conversion entity -->
<if-empty field="uomConversion">
<entity-condition entity-name="UomConversionDated" list="uomConversions" use-cache="true">
@@ -94,7 +94,7 @@ under the License.
<order-by field-name="-fromDate"/>
</entity-condition>
<first-from-list list="uomConversions" entry="uomConversion"/>
<!-- if no conversion found with specified purpose, try w/o purpose -->
<if-empty field="uomConversion">
<if-not-empty field="parameters.purposeEnumId">
@@ -115,11 +115,11 @@ under the License.
</if-empty>
</if-empty>
<log level="verbose" message="using conversion factor=${uomConversion.conversionFactor}"/>
<if-empty field="uomConversion">
<!-- if still no uom conversion entity, then no conversion is possible -->
<add-error><fail-property property="CommonNoUomConversionFound" resource="CommonUiLabels"/></add-error>
<check-errors/>
<check-errors/>
<else>
<!-- Do custom conversion, if we have customMethodId -->
<if-not-empty field="uomConversion.customMethodId"> <!-- custom conversion? -->
@@ -136,7 +136,7 @@ under the License.
<calcop operator="multiply">
<calcop operator="get" field="parameters.originalValue"/>
<calcop operator="get" field="uomConversion.conversionFactor"/>
</calcop>
</calcop>
</calculate>
</else>
</if-not-empty> <!-- custom conversion? -->
@@ -151,10 +151,10 @@ under the License.
</if-not-empty>
</else>
</if-empty> <!-- no UomConversion or UomConversionDated found -->
<!-- all done -->
<field-to-result field="convertedValue"/>
<log level="verbose" message="Uom conversion of [${parameters.originalValue}] from [${parameters.uomId}] to [${parameters.uomIdTo}] using conversion factor [${uomConversion.conversionFactor}], result is [${convertedValue}]"/>
</simple-method>
@@ -162,7 +162,7 @@ under the License.
<simple-method method-name="convertUomCustom" short-description="Convert UOM values using CustomMethod" login-required="false">
<set field="customMethodId" from-field="parameters.uomConversion.customMethodId"/>
<entity-one entity-name="CustomMethod" value-field="customMethod" auto-field-map="true" use-cache="true"/>
<if-empty field="customMethod.customMethodName">
<add-error> <fail-property property="CommonNoCustomMethodName" resource="CommonUiLabels"/> </add-error>
<check-errors/>
@@ -7,9 +7,9 @@
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
@@ -18,7 +18,7 @@
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- Enumeration methods -->
<simple-method method-name="createEnumeration" short-description="create a Enumeration">
@@ -27,7 +27,7 @@
<field-to-result field="newEntity.enumId" result-name="enumId"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
</simple-method>
<simple-method method-name="updateEnumeration" short-description="update a Enumeration">
<entity-one entity-name="Enumeration" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
@@ -6,9 +6,9 @@
* 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
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="getPortletAttributes" short-description="Get Portlet Attribute Values">
@@ -37,7 +37,7 @@ under the License.
<set field="context.${portletAttribute.attrName}" from-field="portletAttribute.attrValue"/>
</iterate>
</simple-method>
<simple-method method-name="setPortalPortletAttributes" short-description="Sets a PortalPortlet attributes">
<if-not-empty field="parameters">
<iterate-map map="parameters" key="attributeKey" value="attributeValue">
@@ -55,7 +55,7 @@ under the License.
<set-service-fields service-name="createPortletAttribute" to-map="attributeEntityMap" map="parameters"/>
<set field="attributeEntityMap.attrName" from-field="attributeKey"/>
<set field="attributeEntityMap.attrValue" from-field="attributeValue"/>
<entity-one entity-name="PortletAttribute" value-field="attributeItem">
<field-map field-name="attrName" from-field="attributeEntityMap.attrName"/>
</entity-one>
@@ -70,7 +70,7 @@ under the License.
</iterate-map>
</if-not-empty>
</simple-method>
<!--Create simple-method of copyOriginalPage-->
<simple-method method-name="copyIfRequiredSystemPage" short-description="Check if the page is a system page, then copy before allowing the user to copy it">
<entity-one entity-name="PortalPage" value-field="portalPage"/>
@@ -81,7 +81,7 @@ under the License.
<field-map field-name="ownerUserLoginId" from-field="userLogin.userLoginId"/>
</entity-and>
<if-empty field="getPrivatePages">
<!-- copy the portal page -->
<set-service-fields service-name="createPortalPage" map="portalPage" to-map="createPage"/>
<clear-field field="createPage.portalPageId"/>
@@ -91,8 +91,8 @@ under the License.
<result-to-field result-name="portalPageId"/>
</call-service>
<field-to-request field="portalPageId" request-name="portalPageId"/>
<!-- copy portlets -->
<!-- copy portlets -->
<entity-and entity-name="PortalPagePortlet" list="portalPagePortlets">
<field-map field-name="portalPageId" from-field="parameters.portalPageId"/>
</entity-and>
@@ -111,7 +111,7 @@ under the License.
<create-value value-field="portletAttribute"/>
</iterate>
</iterate>
<!-- delete the columns -->
<set field="delMap.portalPageId" from-field="portalPageId"/>
<remove-by-and entity-name="PortalPageColumn" map="delMap"/>
@@ -127,8 +127,8 @@ under the License.
<set field="addColumnMap.portalPageId" from-field="portalPageId"/>
<call-service service-name="addPortalPageColumn" in-map-name="addColumnMap"/>
</iterate>
</if-empty>
</if-compare>
</simple-method>
</simple-method>
</simple-methods>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="movePortletToPortalPage" short-description="Moves a PortalPortlet from the actual portalPage to a different one">
@@ -47,7 +47,7 @@ under the License.
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="deletePortalPageColumn" short-description="Delete a Column from a PortalPage">
<call-simple-method method-name="checkOwnerShip"/>
<entity-one entity-name="PortalPageColumn" value-field="column" auto-field-map="true" use-cache="true"/>
@@ -64,7 +64,7 @@ under the License.
</if-not-empty>
<check-errors/>
</simple-method>
<simple-method method-name="createPortalPagePortlet" short-description="Add a registered PortalPortlet to a PortalPage">
<call-simple-method method-name="checkOwnerShip"/>
<make-value entity-name="PortalPagePortlet" value-field="newEntity"/>
@@ -72,13 +72,13 @@ under the License.
<make-next-seq-id value-field="newEntity" seq-field-name="portletSeqId"/>
<field-to-result field="newEntity.portletSeqId" result-name="portletSeqId"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
<create-value value-field="newEntity"/>
<make-value entity-name="PortalPageColumn" value-field="newEntity1"/>
<set-pk-fields map="parameters" value-field="newEntity1"/>
<make-next-seq-id value-field="newEntity1" seq-field-name="columnSeqId"/>
<create-value value-field="newEntity1"/>
</simple-method>
<simple-method method-name="deletePortalPagePortlet" short-description="Delete a PortalPortlet from a PortalPageColumn">
<call-simple-method method-name="checkOwnerShip"/>
<entity-one entity-name="PortalPagePortlet" value-field="portlet" auto-field-map="true" use-cache="true"/>
@@ -91,7 +91,7 @@ under the License.
<remove-value value-field="portlet"/>
</if-not-empty>
</simple-method>
<simple-method method-name="getPortletAttributes" short-description="Get all attributes of a Portlet" login-required="true">
<entity-and entity-name="PortletAttribute" list="attributeList">
<field-map field-name="portalPageId" from-field="parameters.portalPageId"/>
@@ -103,7 +103,7 @@ under the License.
</iterate>
<field-to-result field="attributeMap" result-name="attributeMap"/>
</simple-method>
<simple-method method-name="createPortalPage" short-description="Create a new Portal Page">
<if-not-empty field="parameters.portalPageName">
<make-value entity-name="PortalPage" value-field="newPortalPage"/>
@@ -116,13 +116,13 @@ under the License.
<if-empty field="parameters.sequenceNum">
<make-next-seq-id value-field="newPortalPage" seq-field-name="sequenceNum"/>
</if-empty>
<create-value value-field="newPortalPage"/>
<create-value value-field="newPortalPage"/>
<set field="newPortalPageColumn.portalPageId" from-field="newPortalPage.portalPageId"/>
<call-service service-name="addPortalPageColumn" in-map-name="newPortalPageColumn"/>
<field-to-result field="newPortalPage.portalPageId" result-name="portalPageId"/>
</if-not-empty>
</simple-method>
<simple-method method-name="deletePortalPage" short-description="Delete a Portal Page">
<entity-one entity-name="PortalPage" value-field="getPortalPage"/>
<if-not-empty field="getPortalPage.originalPortalPageId">
@@ -223,12 +223,12 @@ under the License.
</simple-method>
<simple-method method-name="updatePortalPageSeq" short-description="Update the portal page sequence numbers">
<call-simple-method method-name="checkOwnerShip"/>
<entity-one entity-name="PortalPage" value-field="getSequenceNum"/>
<entity-one entity-name="PortalPage" value-field="getSequenceNum"/>
<if-compare field="parameters.mode" value="UP" operator="equals">
<entity-condition entity-name="PortalPage" list="getDatas">
<condition-list combine="and">
<condition-expr field-name="sequenceNum" operator="less" from-field="getSequenceNum.sequenceNum"/>
<condition-expr field-name="ownerUserLoginId" operator="equals" from-field="userLogin.userLoginId"/>
<condition-expr field-name="ownerUserLoginId" operator="equals" from-field="userLogin.userLoginId"/>
<condition-list combine="or">
<condition-expr field-name="parentPortalPageId" operator="equals" from-field="parameters.parentPortalPageId"/>
<condition-expr field-name="originalPortalPageId" operator="equals" from-field="parameters.parentPortalPageId"/>
@@ -237,7 +237,7 @@ under the License.
<order-by field-name="-sequenceNum"/>
</entity-condition>
</if-compare>
<if-compare field="parameters.mode" value="DWN" operator="equals">
<if-compare field="parameters.mode" value="DWN" operator="equals">
<entity-condition entity-name="PortalPage" list="getDatas">
<condition-list combine="and">
<condition-expr field-name="sequenceNum" operator="greater" from-field="getSequenceNum.sequenceNum"/>
@@ -283,5 +283,5 @@ under the License.
<set field="first.sequenceNum" from-field="getSequenceNum.sequenceNum" type="Long"/>
<call-service service-name="updatePortalPage" in-map-name="first"/>
</simple-method>
</simple-methods>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- DataSource methods -->
<simple-method method-name="createDataSource" short-description="Create an DataSource">
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- DataSourceType methods -->
<simple-method method-name="createDataSourceType" short-description="Create an DataSourceType">
@@ -18,10 +18,10 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="sendMailFromTemplateSetting" short-description="Send Mail from Email Template Setting">
<if-not-empty field="parameters.partyId">
<if-empty field="parameters.sendTo">
<set-service-fields service-name="getPartyEmail" map="parameters" to-map="getEmail"/>
@@ -30,7 +30,7 @@ under the License.
</call-service>
</if-empty>
</if-not-empty>
<entity-one entity-name="EmailTemplateSetting" value-field="emailTemplateSetting"/>
<if-not-empty field="emailTemplateSetting">
<set field="emailParams.bodyScreenUri" from-field="emailTemplateSetting.bodyScreenLocation"/>
@@ -40,10 +40,10 @@ under the License.
<set field="emailParams.sendBcc" from-field="emailTemplateSetting.bccAddress"/>
<set field="emailParams.subject" from-field="emailTemplateSetting.subject"/>
<set field="emailParams.contentType" from-field="emailTemplateSetting.contentType" default-value="text/html"/>
<!-- copy the incoming parameter fields AFTER setting the ones from EmailTemplateSetting so they can override things like subject, sendFrom, etc -->
<set-service-fields service-name="sendMailFromScreen" map="parameters" to-map="emailParams"/>
<call-service service-name="sendMailFromScreen" in-map-name="emailParams">
<result-to-result result-name="body"/>
</call-service>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- OLAP Dimension -->
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- CustomTimePeriod Services -->
<simple-method method-name="createCustomTimePeriod" short-description="Create a CustomTimePeriod">
@@ -27,11 +27,11 @@ under the License.
<make-value value-field="newEntity" entity-name="CustomTimePeriod"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<sequenced-id sequence-name="CustomTimePeriod" field="customTimePeriodId"/>
<set from-field="customTimePeriodId" field="newEntity.customTimePeriodId"/>
<field-to-result field="customTimePeriodId" result-name="customTimePeriodId"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateCustomTimePeriod" short-description="Update a CustomTimePeriod">
@@ -82,5 +82,5 @@ under the License.
<set field="primaryPermission" value="VISUALTHEME"/>
<call-simple-method method-name="genericBasePermissionCheck"/>
</simple-method>
</simple-methods>