public abstract class Principal extends Object implements Comparable<Principal>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAMESPACE |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Principal other)
Sorts by 1) namespace, 2) user or group, 3) name.
|
boolean |
equals(Object other) |
String |
getName() |
String |
getNamespace() |
int |
hashCode() |
abstract boolean |
isGroup() |
abstract boolean |
isUser() |
String |
toString() |
public static final String DEFAULT_NAMESPACE
public String getName()
public String getNamespace()
public abstract boolean isUser()
public abstract boolean isGroup()
public int compareTo(Principal other)
compareTo
in interface Comparable<Principal>