public class Grantee
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Grantee.GRANT_TYPE |
Modifier and Type | Field and Description |
---|---|
static Grantee |
OTHER
Static instance that represents the special group 'other'
|
Constructor and Description |
---|
Grantee(java.lang.String name,
Grantee.GRANT_TYPE type)
Creates a new grantee.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Checks to see if a Grantee is equal to another.
|
java.lang.String |
getName()
Gets the grantee's name
|
Grantee.GRANT_TYPE |
getType()
Gets the grantee's type.
|
int |
hashCode()
Returns a hash code for the Grantee.
|
public static final Grantee OTHER
public Grantee(java.lang.String name, Grantee.GRANT_TYPE type)
name
- the name of the user or grouptype
- the type of grantee, e.g. USER or GROUP. Use the enum in
this class to specify the type of granteepublic java.lang.String getName()
public Grantee.GRANT_TYPE getType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object