Package org.uberfire.security.authz
Interface AuthorizationCheck<C extends AuthorizationCheck>
-
- All Known Subinterfaces:
PermissionCheck,ResourceCheck<C>
- All Known Implementing Classes:
PermissionCheckImpl,ResourceCheckImpl
public interface AuthorizationCheck<C extends AuthorizationCheck>A security check executed over a resource or permission.(See the
AuthorizationManagercheckmethods)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cdenied(org.uberfire.mvp.Command onDenied)Specifies the command instance to execute in case the check result is denied.Cgranted(org.uberfire.mvp.Command onGranted)Specifies the command instance to execute in case the check result is granted.booleanresult()Get the check result value
-
-
-
Method Detail
-
granted
C granted(org.uberfire.mvp.Command onGranted)
Specifies the command instance to execute in case the check result is granted.- Parameters:
onGranted- The command to execute
-
denied
C denied(org.uberfire.mvp.Command onDenied)
Specifies the command instance to execute in case the check result is denied.- Parameters:
onDenied- The command to execute
-
result
boolean result()
Get the check result value- Returns:
- true if granted, false otherwise
-
-