chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1151230 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
Date Tue, 26 Jul 2011 20:35:55 GMT
Author: fmui
Date: Tue Jul 26 20:35:54 2011
New Revision: 1151230

URL: http://svn.apache.org/viewvc?rev=1151230&view=rev
Log:
removed unused method from AbstractCmisService

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java?rev=1151230&r1=1151229&r2=1151230&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/server/AbstractCmisService.java
Tue Jul 26 20:35:54 2011
@@ -912,41 +912,6 @@ public abstract class AbstractCmisServic
     }
 
     /**
-     * Gets the {@link ObjectInfo} about an object, checking the cache first.
-     * 
-     * @param repositoryId
-     *            the repository id
-     * @param object
-     *            the object
-     * @return the object info
-     */
-    protected ObjectInfo getObjectInfo(String repositoryId, ObjectData object) {
-        Map<String, ObjectInfo> oim = getObjectInfoMap();
-        ObjectInfo info = oim.get(object.getId());
-        if (info == null) {
-            try {
-                // switch off object info collection to avoid side effects
-                addObjectInfos = false;
-
-                // get the object info
-                info = getObjectInfoIntern(repositoryId, object);
-
-                // switch on object info collection
-                addObjectInfos = true;
-
-                // add object info
-                addObjectInfo(info);
-            } catch (Exception e) {
-                e.printStackTrace();
-                info = null;
-            } finally {
-                addObjectInfos = true;
-            }
-        }
-        return info;
-    }
-
-    /**
      * Collects the {@link ObjectInfo} about an object.
      * 
      * @param repositoryId



Mime
View raw message