org.jclouds.googlecloudstorage.features
Interface ObjectAccessControlsApi


public interface ObjectAccessControlsApi

Provides access to ObjectAccessControl entities via their REST API.

See Also:

Method Summary
 ObjectAccessControls createObjectAccessControls(String bucketName, String objectName, ObjectAccessControlsTemplate template)
          Creates a new acl entry for specified object
 ObjectAccessControls createObjectAccessControls(String bucketName, String objectName, ObjectAccessControlsTemplate template, Long generation)
          Creates a new acl entry for specified object
 void deleteObjectAccessControls(String bucketName, String objectName, String entity)
          Permanently deletes the acl entry for the specified entity on the specified bucket.
 void deleteObjectAccessControls(String bucketName, String objectName, String entity, Long generation)
          Permanently deletes the acl entry for the specified entity on the specified bucket.
 ObjectAccessControls getObjectAccessControls(String bucketName, String objectName, String entity)
          Returns the acl entry for the specified entity on the specified object.
 ObjectAccessControls getObjectAccessControls(String bucketName, String objectName, String entity, Long generation)
          Returns the acl entry for the specified entity on the specified object.
 ListObjectAccessControls listObjectAccessControls(String bucketName, String objectName)
          Retrieves acl entries on a specified object
 ListObjectAccessControls listObjectAccessControls(String bucketName, String objectName, Long generation)
          Retrieves acl entries on a specified object
 ObjectAccessControls patchObjectAccessControls(String bucketName, String objectName, String entity, ObjectAccessControlsTemplate template)
          Updates an acl entry on the specified object
 ObjectAccessControls patchObjectAccessControls(String bucketName, String objectName, String entity, ObjectAccessControlsTemplate template, Long generation)
          Updates an acl entry on the specified object
 ObjectAccessControls updateObjectAccessControls(String bucketName, String objectName, String entity, ObjectAccessControlsTemplate template)
          Updates an acl entry on the specified object
 ObjectAccessControls updateObjectAccessControls(String bucketName, String objectName, String entity, ObjectAccessControlsTemplate template, Long generation)
          Updates an acl entry on the specified object
 

Method Detail

getObjectAccessControls

@Named(value="ObjectAccessControls:get")
@Nullable
ObjectAccessControls getObjectAccessControls(String bucketName,
                                                            String objectName,
                                                            String entity)
Returns the acl entry for the specified entity on the specified object.

Parameters:
bucketName - Name of the bucket which contains the object
objectName - Name of the bucket of that acl is related
entity - The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers
Returns:
an ObjectAccessControls

getObjectAccessControls

@Named(value="ObjectAccessControls:get")
@Nullable
ObjectAccessControls getObjectAccessControls(String bucketName,
                                                            String objectName,
                                                            String entity,
                                                            Long generation)
Returns the acl entry for the specified entity on the specified object.

Parameters:
bucketName - Name of the bucket which contains the object
objectName - Name of the object of that acl is related
entity - The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers
generation - If present, selects a specific revision of this object
Returns:
an ObjectAccessControls

createObjectAccessControls

@Named(value="ObjectAccessControls:insert")
ObjectAccessControls createObjectAccessControls(String bucketName,
                                                      String objectName,
                                                      ObjectAccessControlsTemplate template)
Creates a new acl entry for specified object

Parameters:
bucketName - Name of the bucket of that acl to be created In the request body, supply a ObjectAccessControls resource with the following properties
objectName - Name of the bucket of that acl is related
Returns:
an ObjectAccessControls

createObjectAccessControls

@Named(value="ObjectAccessControls:insert")
ObjectAccessControls createObjectAccessControls(String bucketName,
                                                      String objectName,
                                                      ObjectAccessControlsTemplate template,
                                                      Long generation)
Creates a new acl entry for specified object

Parameters:
bucketName - Name of the bucket of that acl to be created In the request body, supply a ObjectAccessControls resource with the following properties
objectName - Name of the bucket of that acl is related
generation - If present, selects a specific revision of this object
Returns:
an ObjectAccessControls

deleteObjectAccessControls

@Named(value="ObjectAccessControls:delete")
void deleteObjectAccessControls(String bucketName,
                                      String objectName,
                                      String entity)
Permanently deletes the acl entry for the specified entity on the specified bucket.

Parameters:
bucketName - Name of the bucket which contains the object
objectName - Name of the bucket of which acl is related
entity - The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers

deleteObjectAccessControls

@Named(value="ObjectAccessControls:delete")
void deleteObjectAccessControls(String bucketName,
                                      String objectName,
                                      String entity,
                                      Long generation)
Permanently deletes the acl entry for the specified entity on the specified bucket.

Parameters:
bucketName - Name of the bucket which contains the object
objectName - Name of the bucket of that acl is related
generation - If present, selects a specific revision of this object
entity - The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers

listObjectAccessControls

@Named(value="ObjectAccessControls:list")
@Nullable
ListObjectAccessControls listObjectAccessControls(String bucketName,
                                                                 String objectName)
Retrieves acl entries on a specified object

Parameters:
bucketName - Name of the bucket which contains the object
objectName - Name of the bucket of that acl is related
generation - If present, selects a specific revision of this object
Returns:
ListObjectAccessControls resource

listObjectAccessControls

@Named(value="ObjectAccessControls:list")
@Nullable
ListObjectAccessControls listObjectAccessControls(String bucketName,
                                                                 String objectName,
                                                                 Long generation)
Retrieves acl entries on a specified object

Parameters:
bucketName - Name of the bucket which contains the object
objectName - Name of the bucket of that acl is related
generation - If present, selects a specific revision of this object
Returns:
a ListObjectAccessControls

updateObjectAccessControls

@Named(value="ObjectAccessControls:update")
@Nullable
ObjectAccessControls updateObjectAccessControls(String bucketName,
                                                               String objectName,
                                                               String entity,
                                                               ObjectAccessControlsTemplate template)
Updates an acl entry on the specified object

Parameters:
bucketName - Name of the bucket of which contains the object
objectName - Name of the object which acl is related
entity - The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
template - Supply an ObjectAccessControlsTemplate
Returns:
an ObjectAccessControls

updateObjectAccessControls

@Named(value="ObjectAccessControls:update")
ObjectAccessControls updateObjectAccessControls(String bucketName,
                                                      String objectName,
                                                      String entity,
                                                      ObjectAccessControlsTemplate template,
                                                      Long generation)
Updates an acl entry on the specified object

Parameters:
bucketName - Name of the bucket of which contains the object
objectName - Name of the object which acl is related *
entity - The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers
template - Supply an ObjectAccessControlsTemplate
generation - If present, selects a specific revision of this object
Returns:
ObjectAccessControls

patchObjectAccessControls

@Named(value="ObjectAccessControls:patch")
ObjectAccessControls patchObjectAccessControls(String bucketName,
                                                     String objectName,
                                                     String entity,
                                                     ObjectAccessControlsTemplate template)
Updates an acl entry on the specified object

Parameters:
bucketName - Name of the bucket of which contains the object
objectName - Name of the object which acl is related
template - Supply an ObjectAccessControlsTemplate
entity - The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
Returns:
an ObjectAccessControls

patchObjectAccessControls

@Named(value="ObjectAccessControls:patch")
ObjectAccessControls patchObjectAccessControls(String bucketName,
                                                     String objectName,
                                                     String entity,
                                                     ObjectAccessControlsTemplate template,
                                                     Long generation)
Updates an acl entry on the specified object

Parameters:
bucketName - Name of the bucket of which contains the object
objectName - Name of the object which acl is related
entity - The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers
template - Supply an ObjectAccessControlsTemplate
generation - If present, selects a specific revision of this object
Returns:
ObjectAccessControls


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.