• Main Page
  • Classes
  • Files
  • File List

include/S3/S3Permission.h

00001 /*
00002  * Copyright 2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License").
00005  * You may not use this file except in compliance with the License.
00006  * A copy of the License is located at
00007  *
00008  *  http://aws.amazon.com/apache2.0
00009  *
00010  * or in the "license" file accompanying this file. This file is distributed
00011  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
00012  * express or implied. See the License for the specific language governing
00013  * permissions and limitations under the License.
00014  */
00015 
00016 #import <Foundation/Foundation.h>
00017 
00018 #define kS3AclPermissionFullControl @"FULL_CONTROL"
00019 #define kS3AclPermissionWrite       @"WRITE"
00020 #define kS3AclPermissionWriteAcp    @"WRITE_ACP"
00021 #define kS3AclPermissionRead            @"READ"
00022 #define kS3AclPermissionReadAcp         @"READ_ACP"
00023 
00027 @interface S3Permission : NSObject {
00028         NSString *xmlValue;
00029 }
00030 
00031 -(id)initWithXmlCode:(NSString *)code;
00032 
00038 +(S3Permission *)readPermission;
00039 
00045 +(S3Permission *)writePermission;
00046 
00050 +(S3Permission *)fullControlPermission;
00051 
00055 +(S3Permission *)readAcpPermission;
00056 
00062 +(S3Permission *)writeAcpPermission;
00063 
00065 +(S3Permission *)permissionWithString:(NSString *)code;
00066 
00067 @end

Generated on Wed Jan 26 2011 09:49:41 for Amazon S3 by  doxygen 1.7.1