Package org.jets3t.service.acl
Class GroupGrantee
java.lang.Object
org.jets3t.service.acl.GroupGrantee
- All Implemented Interfaces:
GranteeInterface
- Direct Known Subclasses:
AllAuthenticatedUsersGrantee,AllUsersGrantee,GroupByDomainGrantee,GroupByEmailAddressGrantee,GroupByIdGrantee
Represents a Group grantee.
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
- Author:
- James Murty
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupGranteeThe group of all users, represented in S3 by the URI: http://acs.amazonaws.com/groups/global/AllUsersstatic final GroupGranteeThe group of authenticated users, represented in S3 by the URI: http://acs.amazonaws.com/groups/global/AuthenticatedUsersstatic final GroupGranteeThe group of Bucket Log delivery users, represented in S3 by the URI: http://acs.amazonaws.com/groups/s3/LogDelivery -
Constructor Summary
ConstructorsConstructorDescriptionGroupGrantee(String groupUri) Constructs a group grantee object using the given group URI as an identifier. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the group grantee's URI.inthashCode()voidsetIdentifier(String uri) Set the group grantee's URI.toString()toXml()com.jamesmurty.utils.XMLBuilder
-
Field Details
-
ALL_USERS
The group of all users, represented in S3 by the URI: http://acs.amazonaws.com/groups/global/AllUsers -
AUTHENTICATED_USERS
The group of authenticated users, represented in S3 by the URI: http://acs.amazonaws.com/groups/global/AuthenticatedUsers -
LOG_DELIVERY
The group of Bucket Log delivery users, represented in S3 by the URI: http://acs.amazonaws.com/groups/s3/LogDelivery
-
-
Constructor Details
-
GroupGrantee
public GroupGrantee() -
GroupGrantee
Constructs a group grantee object using the given group URI as an identifier.Note: All possible group types are available as public static variables from this class, so this constructor should rarely be necessary.
- Parameters:
groupUri-
-
-
Method Details
-
toXml
public String toXml() throws TransformerException, ParserConfigurationException, FactoryConfigurationError- Specified by:
toXmlin interfaceGranteeInterface- Returns:
- the grantee represented in an XML fragment compatible with the S3 REST interface.
- Throws:
TransformerExceptionParserConfigurationExceptionFactoryConfigurationError
-
toXMLBuilder
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws TransformerException, ParserConfigurationException, FactoryConfigurationError- Specified by:
toXMLBuilderin interfaceGranteeInterface- Throws:
TransformerExceptionParserConfigurationExceptionFactoryConfigurationError
-
setIdentifier
Set the group grantee's URI.- Specified by:
setIdentifierin interfaceGranteeInterface
-
getIdentifier
Returns the group grantee's URI.- Specified by:
getIdentifierin interfaceGranteeInterface
-
toString
-
equals
-
hashCode
public int hashCode()
-