chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sklev...@apache.org
Subject svn commit: r959987 - in /incubator/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/cli...
Date Fri, 02 Jul 2010 14:00:55 GMT
Author: sklevenz
Date: Fri Jul  2 14:00:54 2010
New Revision: 959987

URL: http://svn.apache.org/viewvc?rev=959987&view=rev
Log:
Forgotten factory methods added to ObjectFactory API + Implementation
- createAcl()
- createAce()

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/PersistentObjectFactoryImpl.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.java?rev=959987&r1=959986&r2=959987&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ObjectFactory.java
Fri Jul  2 14:00:54 2010
@@ -45,6 +45,10 @@ public interface ObjectFactory {
 
     Acl convertAces(List<Ace> aces);
 
+    Acl createAcl(List<Ace> aces);
+    
+    Ace createAce(String principal, List<String> permissions);
+    
     // policies
 
     List<String> convertPolicies(List<Policy> policies);

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/PersistentObjectFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/PersistentObjectFactoryImpl.java?rev=959987&r1=959986&r2=959987&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/PersistentObjectFactoryImpl.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/PersistentObjectFactoryImpl.java
Fri Jul  2 14:00:54 2010
@@ -137,6 +137,22 @@ public class PersistentObjectFactoryImpl
         return pof.createAccessControlList(providerAces);
     }
 
+    public Ace createAce(String principal, List<String> permissions) {
+        BindingsObjectFactory pof = getProviderObjectFactory();
+
+        Ace ace = pof.createAccessControlEntry(principal, permissions);
+
+        return ace;
+    }
+
+    public Acl createAcl(List<Ace> aces) {
+        BindingsObjectFactory pof = getProviderObjectFactory();
+
+        Acl acl = pof.createAccessControlList(aces);
+
+        return acl;
+    }
+
     // policies
 
     /*
@@ -593,4 +609,5 @@ public class PersistentObjectFactoryImpl
 
         return new QueryResultImpl(session, objectData);
     }
+
 }



Mime
View raw message