You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2010/10/16 20:08:17 UTC
svn commit: r1023341 - in /ofbiz/trunk/framework/common:
script/org/ofbiz/common/PortalPageServices.xml servicedef/services.xml
Author: buscob
Date: Sat Oct 16 18:08:17 2010
New Revision: 1023341
URL: http://svn.apache.org/viewvc?rev=1023341&view=rev
Log:
Removed service "updatePortalPagePortletSeq". This is not used any more.
Modified:
ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml
ofbiz/trunk/framework/common/servicedef/services.xml
Modified: ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml?rev=1023341&r1=1023340&r2=1023341&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml (original)
+++ ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml Sat Oct 16 18:08:17 2010
@@ -190,61 +190,6 @@ under the License.
<check-errors/>
</if-not-empty>
</simple-method>
- <simple-method method-name="updatePortalPagePortletSeq" short-description="Update the portal page sequence numbers">
- <call-simple-method method-name="checkOwnerShip"/>
- <entity-one entity-name="PortalPagePortlet" value-field="portalPagePortlet"/>
- <if-compare field="parameters.mode" value="UP" operator="equals">
- <set field="portalPagePortlet.sequenceNum" value="${portalPagePortlet.sequenceNum - 1}" type="Long"/>
- </if-compare>
- <if-compare field="parameters.mode" value="DOWN" operator="equals">
- <set field="portalPagePortlet.sequenceNum" value="${portalPagePortlet.sequenceNum + 1}" type="Long"/>
- </if-compare>
- <if-compare field="parameters.mode" value="TOP" operator="equals">
- <set field="portalPagePortlet.sequenceNum" value="0" type="Long"/>
- </if-compare>
- <if-compare field="parameters.mode" value="BOTTOM" operator="equals">
- <entity-and entity-name="PortalPagePortlet" list="ppList">
- <field-map field-name="portalPageId" from-field="parameters.portalPageId"/>
- <order-by field-name="-sequenceNum"/>
- </entity-and>
- <first-from-list entry="ppEntry" list="ppList"/>
- <set field="portalPagePortlet.sequenceNum" value="${ppEntry.sequenceNum + 1}" type="Long"/>
- </if-compare>
- <!-- update folowing entries in the same column if any -->
- <if-compare field="parameters.mode" value="BOTTOM" operator="not-equals">
- <if-compare field="parameters.mode" value="DOWN" operator="equals">
- <entity-condition entity-name="PortalPagePortlet" list="ppList">
- <condition-list combine="and">
- <condition-expr field-name="portalPageId" operator="equals" from-field="parameters.portalPageId"/>
- <condition-expr field-name="columnSeqId" operator="equals" from-field="portalPagePortlet.columnSeqId"/>
- <condition-expr field-name="sequenceNum" operator="greater-equals" from-field="portalPagePortlet.sequenceNum"/>
- </condition-list>
- <order-by field-name="+sequenceNum"/>
- </entity-condition>
- <if-not-empty field="ppList">
- <first-from-list entry="ppEntry" list="ppList"/>
- <set field="ppEntry.sequenceNum" value="${portalPagePortlet.sequenceNum - 1}" type="Long"/>
- <store-value value-field="ppEntry"/>
- </if-not-empty>
- <else><!-- this for up and top -->
- <entity-condition entity-name="PortalPagePortlet" list="ppList">
- <condition-list combine="and">
- <condition-expr field-name="portalPageId" operator="equals" from-field="parameters.portalPageId"/>
- <condition-expr field-name="columnSeqId" operator="equals" from-field="portalPagePortlet.columnSeqId"/>
- <condition-expr field-name="sequenceNum" operator="less-equals" from-field="portalPagePortlet.sequenceNum"/>
- </condition-list>
- <order-by field-name="-sequenceNum"/>
- </entity-condition>
- <if-not-empty field="ppList">
- <first-from-list entry="ppEntry" list="ppList"/>
- <set field="ppEntry.sequenceNum" value="${portalPagePortlet.sequenceNum + 1}" type="Long"/>
- <store-value value-field="ppEntry"/>
- </if-not-empty>
- </else>
- </if-compare>
- </if-compare>
- <store-value value-field="portalPagePortlet"/>
- </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"/>
Modified: ofbiz/trunk/framework/common/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/servicedef/services.xml?rev=1023341&r1=1023340&r2=1023341&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/servicedef/services.xml (original)
+++ ofbiz/trunk/framework/common/servicedef/services.xml Sat Oct 16 18:08:17 2010
@@ -624,11 +624,6 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
- <service name="updatePortalPagePortletSeq" engine="simple" default-entity-name="PortalPagePortlet" auth="true"
- location="component://common/script/org/ofbiz/common/PortalPageServices.xml" invoke="updatePortalPagePortletSeq">
- <auto-attributes mode="IN" include="pk"/>
- <attribute name="mode" type="String" mode="IN"/><!-- possible values: TOP, BOTTOM, UP, DOWN -->
- </service>
<service name="updatePortalPageSeq" engine="simple" default-entity-name="PortalPage" auth="true"
location="component://common/script/org/ofbiz/common/PortalPageServices.xml" invoke="updatePortalPageSeq">
<auto-attributes mode="IN" include="pk"/>