Package io.manebot.entity
Interface EntityType
-
- All Known Subinterfaces:
Conversation,User,UserGroup
- All Known Implementing Classes:
Conversation,Group,User
public interface EntityType
-
-
Method Summary
Modifier and Type Method Description default voidcheckPermission(Permission permission)default voidcheckPermission(Permission permission, Grant fallback)default voidcheckPermission(java.lang.String node)default voidcheckPermission(java.lang.String node, Grant fallback)EntitygetEntity()Gets the entity associated with this object.default booleanhasPermission(Permission permission)Finds if this entity has a specific permissiondefault booleanhasPermission(Permission permission, Grant fallback)Finds if this entity has a specific permissiondefault booleanhasPermission(java.lang.String node)Finds if this entity has a specific permission nodedefault booleanhasPermission(java.lang.String node, Grant fallback)Finds if this entity has a specific permission
-
-
-
Method Detail
-
getEntity
Entity getEntity()
Gets the entity associated with this object.- Returns:
- Associated entity.
-
hasPermission
default boolean hasPermission(java.lang.String node)
Finds if this entity has a specific permission node- Parameters:
node- permission node to check for.- Returns:
- true if the permission node is granted, false otherwise.
-
hasPermission
default boolean hasPermission(Permission permission)
Finds if this entity has a specific permission- Parameters:
permission- Permission to check for.- Returns:
- true if the permission is granted, false otherwise.
-
hasPermission
default boolean hasPermission(java.lang.String node, Grant fallback)Finds if this entity has a specific permission- Parameters:
node- Permission node to check for.- Returns:
- true if the permission is granted, false otherwise.
-
hasPermission
default boolean hasPermission(Permission permission, Grant fallback)
Finds if this entity has a specific permission- Parameters:
permission- Permission to check for.- Returns:
- true if the permission is granted, false otherwise.
-
checkPermission
default void checkPermission(Permission permission) throws java.lang.SecurityException
- Throws:
java.lang.SecurityException
-
checkPermission
default void checkPermission(java.lang.String node) throws java.lang.SecurityException- Throws:
java.lang.SecurityException
-
checkPermission
default void checkPermission(Permission permission, Grant fallback) throws java.lang.SecurityException
- Throws:
java.lang.SecurityException
-
checkPermission
default void checkPermission(java.lang.String node, Grant fallback) throws java.lang.SecurityException- Throws:
java.lang.SecurityException
-
-