public class RootPermission extends PermissionModule
log, main
Modifier and Type | Method and Description |
---|---|
boolean |
canCheckPermission(Permission permission)
returns true if able to check permissions
|
void |
checkPermission(Permission permission,
AddOnModel addon)
Checks if the given addOn is allowed to access the requested service and registers them if not yet registered.
|
getSecurityManager, isRegistered, registerAddOn, registerOrThrow
debug, debug, error, error, fatal, fatal, getID, getMain
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOwner
public boolean canCheckPermission(Permission permission)
canCheckPermission
in class PermissionModule
permission
- the permission to checkpublic void checkPermission(Permission permission, AddOnModel addon) throws IzouPermissionException
checkPermission
in class PermissionModule
permission
- the Permission to checkaddon
- the identifiable to checkIzouPermissionException
- thrown if the addOn is not allowed to access its requested serviceCopyright © 2016. All rights reserved.