Package 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
-
-
Constructor Summary
Constructors Constructor Description UserByIdGrantee()
Default constructor.UserByIdGrantee(String identifier)
Constructs a grantee with the given canonical ID.UserByIdGrantee(String identifier, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getName()
void
setName(String name)
String
toString()
com.jamesmurty.utils.XMLBuilder
toXMLBuilder()
-
Methods inherited from class org.jets3t.service.acl.CanonicalGrantee
getDisplayName, getIdentifier, hashCode, setDisplayName, setIdentifier, toXml
-
-
-
-
Constructor Detail
-
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(String identifier)
Constructs a grantee with the given canonical ID.- Parameters:
identifier
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
toXMLBuilder
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws TransformerException, ParserConfigurationException, FactoryConfigurationError
- Specified by:
toXMLBuilder
in interfaceGranteeInterface
- Overrides:
toXMLBuilder
in classCanonicalGrantee
- Throws:
TransformerException
ParserConfigurationException
FactoryConfigurationError
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classCanonicalGrantee
-
toString
public String toString()
- Overrides:
toString
in classCanonicalGrantee
-
-