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