org.jclouds.s3.domain
Class CanonicalUser
java.lang.Object
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:
CanonicalUser
public CanonicalUser(String id)
CanonicalUser
public CanonicalUser(String id,
String displayName)
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-2011 jclouds. All Rights Reserved.