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(String identifier)
Constructs a grantee with the given canonical ID.
|
UserByIdGrantee(String identifier,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName() |
void |
setName(String name) |
String |
toString() |
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
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(String identifier)
identifier - public String getName()
public void setName(String name)
public com.jamesmurty.utils.XMLBuilder toXMLBuilder()
throws TransformerException,
ParserConfigurationException,
FactoryConfigurationError
toXMLBuilder in interface GranteeInterfacetoXMLBuilder in class CanonicalGranteeTransformerExceptionParserConfigurationExceptionFactoryConfigurationErrorpublic boolean equals(Object obj)
equals in class CanonicalGranteepublic String toString()
toString in class CanonicalGrantee