Author: jleroux
Date: Sun Jun 10 08:04:39 2012
New Revision: 1348546
URL: http://svn.apache.org/viewvc?rev=1348546&view=rev
Log:
Moves addMostRecent services to Attic
Modified:
ofbiz/trunk/applications/content/servicedef/services.xml
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java
Modified: ofbiz/trunk/applications/content/servicedef/services.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/servicedef/services.xml?rev=1348546&r1=1348545&r2=1348546&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/content/servicedef/services.xml Sun Jun 10
08:04:39 2012
@@ -405,17 +405,6 @@
<attribute mode="OUT" name="view" optional="true"
type="org.ofbiz.entity.GenericValue"/>
<attribute mode="OUT" name="content" optional="true"
type="org.ofbiz.entity.GenericValue"/>
</service>
- <!--
- <service name="addMostRecent"
- engine="java"
- location="org.ofbiz.content.ContentManagementServices"
- invoke="addMostRecent" auth="false">
- <description>Get subContent of passed contentId/mapKey or
subContentId</description>
- <attribute mode="IN" name="suffix" optional="true" type="String"/>
- <attribute mode="IN" name="pk" optional="true"
type="org.ofbiz.entity.GenericValue"/>
- <attribute mode="IN" name="session" optional="true"
type="javax.servlet.http.HttpSession"/>
- </service>
- -->
<service name="persistContentAndAssoc" engine="java"
transaction-timeout="7200"
location="org.ofbiz.content.ContentManagementServices"
invoke="persistContentAndAssoc" auth="true">
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java?rev=1348546&r1=1348545&r2=1348546&view=diff
==============================================================================
---
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java
(original)
+++
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementServices.java
Sun Jun 10 08:04:39 2012
@@ -21,14 +21,11 @@ package org.ofbiz.content;
import java.math.BigDecimal;
import java.nio.ByteBuffer;
import java.sql.Timestamp;
-import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
-import javax.servlet.http.HttpSession;
-
import javolution.util.FastList;
import javolution.util.FastMap;
import javolution.util.FastSet;
@@ -45,7 +42,6 @@ import org.ofbiz.content.content.Content
import org.ofbiz.content.content.ContentWorker;
import org.ofbiz.entity.Delegator;
import org.ofbiz.entity.GenericEntityException;
-import org.ofbiz.entity.GenericPK;
import org.ofbiz.entity.GenericValue;
import org.ofbiz.entity.condition.EntityCondition;
import org.ofbiz.entity.condition.EntityConditionList;
@@ -133,27 +129,6 @@ public class ContentManagementServices {
}
/**
- * addMostRecent
- * A service for adding the most recently used of an entity class to the
cache.
- * Entities make it to the most recently used list primarily by being
selected for editing,
- * either by being created or being selected from a list.
- */
- public static Map<String, Object> addMostRecent(DispatchContext dctx,
Map<String, ? extends Object> context) {
- //Security security = dctx.getSecurity();
- //Delegator delegator = dctx.getDelegator();
- //LocalDispatcher dispatcher = dctx.getDispatcher();
- //HttpServletRequest request =
(HttpServletRequest)context.get("request");
- //String suffix = (String) context.get("suffix");
- GenericValue val = (GenericValue)context.get("pk");
- GenericPK pk = val.getPrimaryKey();
- HttpSession session = (HttpSession)context.get("session");
-
- ContentManagementWorker.mruAdd(session, pk);
- return ServiceUtil.returnSuccess();
- }
-
-
- /**
* persistContentAndAssoc
* A combination method that will create or update all or one of the
following:
* a Content entity, a ContentAssoc related to the Content, and