chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgr...@apache.org
Subject svn commit: r1579976 - in /chemistry/objectivecmis/trunk/ObjectiveCMIS: Bindings/AtomPub/AtomPubParser/CMISRepositoryInfoParser.m Common/CMISRepositoryInfo.h
Date Fri, 21 Mar 2014 16:34:51 GMT
Author: lgross
Date: Fri Mar 21 16:34:51 2014
New Revision: 1579976

URL: http://svn.apache.org/r1579976
Log:
Added principalIdAnonymous and principalIdAnyone to CMISRepositoryInfo

Modified:
    chemistry/objectivecmis/trunk/ObjectiveCMIS/Bindings/AtomPub/AtomPubParser/CMISRepositoryInfoParser.m
    chemistry/objectivecmis/trunk/ObjectiveCMIS/Common/CMISRepositoryInfo.h

Modified: chemistry/objectivecmis/trunk/ObjectiveCMIS/Bindings/AtomPub/AtomPubParser/CMISRepositoryInfoParser.m
URL: http://svn.apache.org/viewvc/chemistry/objectivecmis/trunk/ObjectiveCMIS/Bindings/AtomPub/AtomPubParser/CMISRepositoryInfoParser.m?rev=1579976&r1=1579975&r2=1579976&view=diff
==============================================================================
--- chemistry/objectivecmis/trunk/ObjectiveCMIS/Bindings/AtomPub/AtomPubParser/CMISRepositoryInfoParser.m
(original)
+++ chemistry/objectivecmis/trunk/ObjectiveCMIS/Bindings/AtomPub/AtomPubParser/CMISRepositoryInfoParser.m
Fri Mar 21 16:34:51 2014
@@ -115,6 +115,10 @@
         } else if ([elementName isEqualToString:kCMISCoreCapabilities]) {
             self.currentRepositoryInfo.repositoryCapabilities = self.currentCapabilities;
             self.currentCapabilities = nil;
+        } else if ([elementName isEqualToString:kCMISCorePrincipalAnonymous]) {
+            self.currentRepositoryInfo.principalIdAnonymous = self.currentString;
+        } else if ([elementName isEqualToString:kCMISCorePrincipalAnyone]) {
+            self.currentRepositoryInfo.principalIdAnyone = self.currentString;
         } else if ([elementName isEqualToString:kCMISCoreAclCapability] || [elementName isEqualToString:kCMISCorePermission]
                  || [elementName isEqualToString:kCMISCorePermissions]|| [elementName isEqualToString:kCMISCoreMapping]
                  || [elementName isEqualToString:kCMISCoreKey]|| [elementName isEqualToString:kCMISCoreSupportedPermissions]
@@ -129,8 +133,6 @@
                 kCMISCoreCmisVersionSupported;
                 kCMISCoreChangesIncomplete;
                 kCMISCoreChangesOnType;
-                kCMISCorePrincipalAnonymous;
-                kCMISCorePrincipalAnyone;
              */
             
             //CMISLogWarning(@"TODO Cmis-Core Element was ignored: ElementName=%@, Value=%@",elementName,
self.currentString);

Modified: chemistry/objectivecmis/trunk/ObjectiveCMIS/Common/CMISRepositoryInfo.h
URL: http://svn.apache.org/viewvc/chemistry/objectivecmis/trunk/ObjectiveCMIS/Common/CMISRepositoryInfo.h?rev=1579976&r1=1579975&r2=1579976&view=diff
==============================================================================
--- chemistry/objectivecmis/trunk/ObjectiveCMIS/Common/CMISRepositoryInfo.h (original)
+++ chemistry/objectivecmis/trunk/ObjectiveCMIS/Common/CMISRepositoryInfo.h Fri Mar 21 16:34:51
2014
@@ -32,6 +32,28 @@
 @property (nonatomic, strong) NSString *productVersion;
 @property (nonatomic, strong) NSString *vendorName;
 
+/**
+ * Returns principal ID for an anonymous user (any authenticated user). This
+ * principal ID is supposed to be used in an Ace.
+ *
+ * @return the principal ID for an anonymous user or {@code null} if the
+ *         repository does not support anonymous users
+ *
+ * @cmis 1.0
+ */
+@property (nonatomic, strong) NSString *principalIdAnonymous;
+
+/**
+ * Returns principal ID for unauthenticated user (guest user). This
+ * principal ID is supposed to be used in an Ace.
+ *
+ * @return the principal ID for unauthenticated user or {@code null} if the
+ *         repository does not support unauthenticated users
+ *
+ * @cmis 1.0
+ */
+@property (nonatomic, strong) NSString *principalIdAnyone;
+
 // TODO the repositoryCapabilities property is currently not types.  
 /**  CMISRepositoryCapabilities needs to be created and replace the raw NSDictionary object
  * that is currently being set from the CMISRepositoryInfoParser



Mime
View raw message