org.jets3t.service.acl.gs
Class UserByIdGrantee
java.lang.Object
org.jets3t.service.acl.CanonicalGrantee
org.jets3t.service.acl.gs.UserByIdGrantee
- All Implemented Interfaces:
- GranteeInterface
public class UserByIdGrantee
- extends CanonicalGrantee
Represents a grantee identified by their canonical Google ID, which is something along the lines
of a Google-internal ID specific to a user. For example, Google can map a grantee identified
by an email address to a canonical ID.
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).
- Author:
- Google Developers
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UserByIdGrantee
public UserByIdGrantee()
- Default constructor.
Warning! If created with this constructor this class will not
represent a valid grantee until the identifier is set.
UserByIdGrantee
public UserByIdGrantee(java.lang.String identifier)
- Constructs a grantee with the given canonical ID.
- Parameters:
identifier
-
UserByIdGrantee
public UserByIdGrantee(java.lang.String identifier,
java.lang.String name)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
toXMLBuilder
public com.jamesmurty.utils.XMLBuilder toXMLBuilder()
throws javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
javax.xml.parsers.FactoryConfigurationError
- Specified by:
toXMLBuilder
in interface GranteeInterface
- Overrides:
toXMLBuilder
in class CanonicalGrantee
- Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class CanonicalGrantee
toString
public java.lang.String toString()
- Overrides:
toString
in class CanonicalGrantee