org.jets3t.service.acl.gs
Class GSAccessControlList

java.lang.Object
  extended by org.jets3t.service.acl.AccessControlList
      extended by org.jets3t.service.acl.gs.GSAccessControlList
All Implemented Interfaces:
java.io.Serializable

public class GSAccessControlList
extends AccessControlList

Represents a Google Storage Access Control List (ACL), including the ACL's set of grantees and the permissions assigned to each grantee.

See Also:
Serialized Form

Field Summary
static GSAccessControlList REST_CANNED_AUTHENTICATED_READ
           
static GSAccessControlList REST_CANNED_BUCKET_OWNER_FULL_CONTROL
           
static GSAccessControlList REST_CANNED_BUCKET_OWNER_READ
           
static GSAccessControlList REST_CANNED_PRIVATE
           
static GSAccessControlList REST_CANNED_PUBLIC_READ
           
static GSAccessControlList REST_CANNED_PUBLIC_READ_WRITE
           
 
Fields inherited from class org.jets3t.service.acl.AccessControlList
grants, owner
 
Constructor Summary
GSAccessControlList()
           
 
Method Summary
 java.lang.String getValueForRESTHeaderACL()
           
 java.lang.String toString()
          Returns a string representation of the ACL contents, useful for debugging.
 com.jamesmurty.utils.XMLBuilder toXMLBuilder()
           
 
Methods inherited from class org.jets3t.service.acl.AccessControlList
getGrantAndPermissions, getGranteesWithPermission, getOwner, getPermissionsForGrantee, grantAllPermissions, grantPermission, hasGranteeAndPermission, isCannedRestACL, isRESTHeaderACL, revokeAllPermissions, setOwner, toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REST_CANNED_PRIVATE

public static final GSAccessControlList REST_CANNED_PRIVATE

REST_CANNED_PUBLIC_READ

public static final GSAccessControlList REST_CANNED_PUBLIC_READ

REST_CANNED_PUBLIC_READ_WRITE

public static final GSAccessControlList REST_CANNED_PUBLIC_READ_WRITE

REST_CANNED_AUTHENTICATED_READ

public static final GSAccessControlList REST_CANNED_AUTHENTICATED_READ

REST_CANNED_BUCKET_OWNER_READ

public static final GSAccessControlList REST_CANNED_BUCKET_OWNER_READ

REST_CANNED_BUCKET_OWNER_FULL_CONTROL

public static final GSAccessControlList REST_CANNED_BUCKET_OWNER_FULL_CONTROL
Constructor Detail

GSAccessControlList

public GSAccessControlList()
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the ACL contents, useful for debugging.

Overrides:
toString in class AccessControlList

toXMLBuilder

public com.jamesmurty.utils.XMLBuilder toXMLBuilder()
                                             throws ServiceException,
                                                    javax.xml.parsers.ParserConfigurationException,
                                                    javax.xml.parsers.FactoryConfigurationError,
                                                    javax.xml.transform.TransformerException
Overrides:
toXMLBuilder in class AccessControlList
Throws:
ServiceException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
javax.xml.transform.TransformerException

getValueForRESTHeaderACL

public java.lang.String getValueForRESTHeaderACL()
Overrides:
getValueForRESTHeaderACL in class AccessControlList
Returns:
the header value string for this ACL if it is a predefined ACL, otherwise return null;