chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1622316 - in /chemistry/opencmis/trunk/chemistry-opencmis-client: chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runti...
Date Wed, 03 Sep 2014 18:55:17 GMT
Author: fmui
Date: Wed Sep  3 18:55:16 2014
New Revision: 1622316

URL: http://svn.apache.org/r1622316
Log:
fixed typo (getPermissonsForPrincipal)

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CmisObjectMock.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.java?rev=1622316&r1=1622315&r2=1622316&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/CmisObject.java
Wed Sep  3 18:55:16 2014
@@ -87,6 +87,12 @@ public interface CmisObject extends Obje
      * 
      * @cmis 1.0
      */
+    Set<String> getPermissionsForPrincipal(String principalId);
+
+    /**
+     * @deprecated use {@link #getPermissionsForPrincipal(String)} instead.
+     */
+    @Deprecated
     Set<String> getPermissonsForPrincipal(String principalId);
 
     // object service

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java?rev=1622316&r1=1622315&r2=1622316&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/AbstractCmisObject.java
Wed Sep  3 18:55:16 2014
@@ -596,7 +596,7 @@ public abstract class AbstractCmisObject
         }
     }
 
-    public Set<String> getPermissonsForPrincipal(String principalId) {
+    public Set<String> getPermissionsForPrincipal(String principalId) {
         if (principalId == null) {
             throw new IllegalArgumentException("Principal must be set!");
         }
@@ -622,6 +622,10 @@ public abstract class AbstractCmisObject
         return result;
     }
 
+    public Set<String> getPermissonsForPrincipal(String principalId) {
+        return getPermissionsForPrincipal(principalId);
+    }
+
     // --- policies ---
 
     public void applyPolicy(ObjectId... policyIds) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CmisObjectMock.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CmisObjectMock.java?rev=1622316&r1=1622315&r2=1622316&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CmisObjectMock.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/test/java/org/apache/chemistry/opencmis/client/runtime/CmisObjectMock.java
Wed Sep  3 18:55:16 2014
@@ -81,7 +81,11 @@ public class CmisObjectMock implements C
     public Acl getAcl() {
         return null;
     }
-    
+
+    public Set<String> getPermissionsForPrincipal(String principalId) {
+        return null;
+    }
+
     public Set<String> getPermissonsForPrincipal(String principalId) {
         return null;
     }
@@ -93,7 +97,7 @@ public class CmisObjectMock implements C
     public AllowableActions getAllowableActions() {
         return null;
     }
-    
+
     public boolean hasAllowableAction(Action action) {
         return false;
     }



Mime
View raw message