Package net.luckperms.api.model
Interface PermissionHolder.Identifier
-
- Enclosing interface:
- PermissionHolder
public static interface PermissionHolder.IdentifierRepresents a way to identify distinctPermissionHolders.
-
-
Field Summary
Fields Modifier and Type Field Description static StringGROUP_TYPEstatic StringUSER_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull StringgetName()Gets thePermissionHolders generic name.@NonNull StringgetType()Gets the type of thePermissionHolder.
-
-
-
Field Detail
-
USER_TYPE
static final String USER_TYPE
- See Also:
- Constant Field Values
-
GROUP_TYPE
static final String GROUP_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@NonNull String getName()
Gets thePermissionHolders 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 astringrepresentation of the usersunique id.For
Groups, this method returns thegroup name.The
User.getUniqueId(),User.getUsername()andGroup.getName()methods define a "tighter" specification for obtaining object identifiers.- Returns:
- the identifier for this object. Either a uuid string or name.
-
getType
@NonNull String getType()
Gets the type of thePermissionHolder.- Returns:
- the type
-
-