public static interface PermissionHolder.Identifier
PermissionHolders.| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_TYPE
|
static String |
USER_TYPE
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
getName()
Gets the
PermissionHolders generic name. |
@NonNull String |
getType()
Gets the type of the
PermissionHolder. |
static final String USER_TYPE
static final String GROUP_TYPE
@NonNull String getName()
PermissionHolders generic name.
The result of this method is guaranteed to be a unique identifier for distinct instances of the same type of object.
For Users, this method returns a string representation of
the users unique id.
For Groups, this method returns the group name.
The User.getUniqueId(), User.getUsername() and Group.getName() methods
define a "tighter" specification for obtaining object identifiers.
@NonNull String getType()
PermissionHolder.