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 |
---|---|
String |
getName() |
void |
setName(String name) |
String |
toString() |
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
equals, getDisplayName, getIdentifier, hashCode, setDisplayName, setIdentifier, toXml
public 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
- Canonical IDpublic String getName()
public void setName(String name)
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws TransformerException, ParserConfigurationException, FactoryConfigurationError
toXMLBuilder
in interface GranteeInterface
toXMLBuilder
in class CanonicalGrantee
TransformerException
ParserConfigurationException
FactoryConfigurationError
public String toString()
toString
in class CanonicalGrantee
Copyright © 2006–2018. All rights reserved.