public class CanonicalGrantee extends java.lang.Object implements GranteeInterface
Canonical grantees may have an associated Display Name, which is a human-friendly name that Amazon has linked to the canonical ID (eg the user's login name).
Constructor and Description |
---|
CanonicalGrantee()
Default constructor.
|
CanonicalGrantee(java.lang.String identifier)
Constructs a grantee with the given canonical ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDisplayName() |
java.lang.String |
getIdentifier() |
int |
hashCode() |
void |
setDisplayName(java.lang.String displayName) |
void |
setIdentifier(java.lang.String id) |
java.lang.String |
toString() |
java.lang.String |
toXml() |
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
public CanonicalGrantee()
Warning! If created with this constructor this class will not represent a valid grantee until the identifier is set.
public CanonicalGrantee(java.lang.String identifier)
identifier
- Canonical IDpublic java.lang.String toXml() throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, javax.xml.parsers.FactoryConfigurationError
toXml
in interface GranteeInterface
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, javax.xml.parsers.FactoryConfigurationError
toXMLBuilder
in interface GranteeInterface
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
public void setIdentifier(java.lang.String id)
setIdentifier
in interface GranteeInterface
public java.lang.String getIdentifier()
getIdentifier
in interface GranteeInterface
public void setDisplayName(java.lang.String displayName)
public java.lang.String getDisplayName()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object