org.jclouds.s3.domain
Class CanonicalUser

java.lang.Object
  extended by org.jclouds.s3.domain.CanonicalUser

public class CanonicalUser
extends Object

Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object. The owner of a bucket or object cannot be changed. However, if the object is overwritten by another user (deleted and rewritten), the new object will have a new owner.

Author:
Adrian Cole
See Also:

Constructor Summary
CanonicalUser(String id)
           
CanonicalUser(String id, String displayName)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDisplayName()
          read-only as is maintained by Amazon.
 String getId()
          To locate the CanonicalUser ID for a user, the user must perform the BaseAsyncBlobStore.list(String) and retrieve BucketMetadata.getOwner()
 int hashCode()
           
 void setDisplayName(String displayName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CanonicalUser

public CanonicalUser(String id)

CanonicalUser

public CanonicalUser(String id,
                     String displayName)
Method Detail

getId

public String getId()
To locate the CanonicalUser ID for a user, the user must perform the BaseAsyncBlobStore.list(String) and retrieve BucketMetadata.getOwner()


getDisplayName

public String getDisplayName()
read-only as is maintained by Amazon.


setDisplayName

public void setDisplayName(String displayName)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.