Package io.manebot.security
Interface GrantedPermission
-
- All Known Implementing Classes:
Permission
public interface GrantedPermission
-
-
Method Summary
Modifier and Type Method Description java.util.DategetDate()Gets the date this permission was granted.EntitygetEntity()Gets the entity that this granted permission is associated with.GrantgetGrant()Gets the grant that is explicitly defined by this permission.UsergetGranter()Gets the user that granted this permission.PermissiongetPermission()Gets the permission node that this granted permission refers to.voidremove()Removes this granted permission
-
-
-
Method Detail
-
getEntity
Entity getEntity()
Gets the entity that this granted permission is associated with.- Returns:
- Entity instance.
-
getPermission
Permission getPermission()
Gets the permission node that this granted permission refers to.- Returns:
-
getGrant
Grant getGrant()
Gets the grant that is explicitly defined by this permission.- Returns:
- Grant instance.
-
getGranter
User getGranter()
Gets the user that granted this permission.- Returns:
- User instance.
-
getDate
java.util.Date getDate()
Gets the date this permission was granted.- Returns:
- Date instance.
-
remove
void remove() throws java.lang.SecurityExceptionRemoves this granted permission- Throws:
java.lang.SecurityException- ifa security violation is detected attempting to remove this permission.
-
-