public class GroupGrantee extends java.lang.Object implements GranteeInterface
Only three groups are available in S3:
ALL_USERS: The general public
AUTHENTICATED_USERS: Authenticated Amazon S3 users
LOG_DELIVERY: Amazon's S3 Log Delivery group, who deliver bucket log files
| Modifier and Type | Field and Description |
|---|---|
static GroupGrantee |
ALL_USERS
The group of all users, represented in S3 by the URI:
http://acs.amazonaws.com/groups/global/AllUsers
|
static GroupGrantee |
AUTHENTICATED_USERS
The group of authenticated users, represented in S3 by the URI:
http://acs.amazonaws.com/groups/global/AuthenticatedUsers
|
static GroupGrantee |
LOG_DELIVERY
The group of Bucket Log delivery users, represented in S3 by the URI:
http://acs.amazonaws.com/groups/s3/LogDelivery
|
| Constructor and Description |
|---|
GroupGrantee() |
GroupGrantee(java.lang.String groupUri)
Constructs a group grantee object using the given group URI as an identifier.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIdentifier()
Returns the group grantee's URI.
|
int |
hashCode() |
void |
setIdentifier(java.lang.String uri)
Set the group grantee's URI.
|
java.lang.String |
toString() |
java.lang.String |
toXml() |
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
public static final GroupGrantee ALL_USERS
public static final GroupGrantee AUTHENTICATED_USERS
public static final GroupGrantee LOG_DELIVERY
public GroupGrantee()
public GroupGrantee(java.lang.String groupUri)
Note: All possible group types are available as public static variables from this class, so this constructor should rarely be necessary.
groupUri - public java.lang.String toXml()
throws javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
javax.xml.parsers.FactoryConfigurationError
toXml in interface GranteeInterfacejavax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionjavax.xml.parsers.FactoryConfigurationErrorpublic com.jamesmurty.utils.XMLBuilder toXMLBuilder()
throws javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
javax.xml.parsers.FactoryConfigurationError
toXMLBuilder in interface GranteeInterfacejavax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionjavax.xml.parsers.FactoryConfigurationErrorpublic void setIdentifier(java.lang.String uri)
setIdentifier in interface GranteeInterfacepublic java.lang.String getIdentifier()
getIdentifier in interface GranteeInterfacepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object