| Package | Description |
|---|---|
| org.osgl.aaa | |
| org.osgl.aaa.impl |
| Modifier and Type | Field and Description |
|---|---|
static org.osgl.Lang.F1<Principal,org.osgl.util.C.List<Permission>> |
Principal.F.ALL_PERMISSION_GETTER |
static org.osgl.Lang.Predicate<Permission> |
Permission.F.IS_DYNAMIC |
static org.osgl.Lang.Predicate<Permission> |
Permission.F.IS_STATIC |
static org.osgl.Lang.F1<Role,org.osgl.util.C.List<Permission>> |
Role.F.PERMISSION_GETTER |
static org.osgl.Lang.F1<Principal,org.osgl.util.C.List<Permission>> |
Principal.F.PERMISSION_GETTER |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<Permission> |
AAA.allPermissions()
Returns all
permissions |
Iterable<Permission> |
AAAContext.allPermissions()
Returns all
permissions |
Iterable<Permission> |
AAAPersistentService.allPermissions()
Returns all
permissions |
static List<Permission> |
Principal.F.allPermissionsOf(Principal principal) |
Collection<Permission> |
AuthorizationService.getAllPermissions(Principal principal,
AAAContext context)
Returns
permissions
granted to the principal direclty plus all permissions granted to all roles granted to the principal |
List<Permission> |
Role.getPermissions()
Returns a list of permissions associated with this role.
|
List<Permission> |
Principal.getPermissions()
Returns permissions been granted to the principal
|
Collection<Permission> |
AuthorizationService.getPermissions(Principal principal,
AAAContext context)
Returns
permissions granted to the principal directly |
Collection<Permission> |
AuthorizationService.getPermissions(Role role,
AAAContext context)
Returns all
permissions of a Role role |
Set<Permission> |
Permission.implied()
Return permissions that are implied by this permission.
|
List<? extends Permission> |
DynamicPermissionCheckHelper.permissions()
Returns a list of permissions that this dynamic permission check helper could be used to check against the dynamic association.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AAA.hasPermission(Object guardedResource,
Permission permission)
Check if current user has permission specified on target resource specified
|
boolean |
AAAContext.hasPermission(Object guardedResource,
Permission permission) |
static boolean |
AAA.hasPermission(Object guardedResource,
Permission permission,
boolean allowSystem)
Check if the current principal has permission specified on the target object.
|
boolean |
AAAContext.hasPermission(Object guardedResource,
Permission permission,
boolean allowSystem) |
static boolean |
AAA.hasPermission(Object guardedResource,
Permission permission,
boolean allowSystem,
AAAContext context)
Check if the current principal has permission specified on the guarded target resource.
|
static boolean |
AAA.hasPermission(Object guardedResource,
Principal principal,
Permission permission)
Check if a user has permission specified on a target
|
static boolean |
AAA.hasPermission(Object guardedResource,
Principal principal,
Permission permission,
AAAContext context)
Check if the principal specified has permission specified on the target.
|
static boolean |
AAA.hasPermission(Permission permission)
Check if current user has permission specified on target resource specified (implicitly)
|
boolean |
AAAContext.hasPermission(Permission permission) |
boolean |
Role.hasPermission(Permission permission)
Check if the role contains a permission.
|
boolean |
AAAContext.hasPermission(Permission permissionName,
boolean allowSystem) |
boolean |
AAAContext.hasPermission(Principal principal,
Permission permission) |
static boolean |
AAA.hasPermissionOrPrivilege(Object guardedResource,
Permission permission,
Privilege privilege) |
boolean |
AAAContext.hasPermissionOrPrivilege(Object GuardedResource,
Permission permission,
Privilege privilege) |
static boolean |
AAA.hasPermissionOrPrivilege(Object guardedResource,
Permission permission,
Privilege privilege,
AAAContext context) |
static boolean |
AAA.hasPermissionOrPrivilege(Object guardedResource,
Permission permission,
Privilege privilege,
boolean allowSystem) |
boolean |
AAAContext.hasPermissionOrPrivilege(Object GuardedResource,
Permission permission,
Privilege privilege,
boolean allowSystem) |
static boolean |
AAA.hasPermissionOrPrivilege(Object guardedResource,
Permission permission,
Privilege privilege,
boolean allowSystem,
AAAContext context) |
static boolean |
AAA.hasPermissionOrPrivilege(Object guardedResource,
Principal principal,
Permission permission,
Privilege privilege,
AAAContext context) |
static boolean |
AAA.hasPermissionOrPrivilege(Permission permission,
Privilege privilege) |
boolean |
AAAContext.hasPermissionOrPrivilege(Permission permission,
Privilege privilege) |
static boolean |
AAA.hasPermissionOrPrivilege(Permission permission,
Privilege privilege,
AAAContext context) |
boolean |
AAAContext.hasPermissionOrPrivilege(Permission permission,
Privilege privilege,
boolean allowSystem) |
static boolean |
AAA.hasPermissionOrPrivilege(Permission permission,
Privilege privilege,
boolean allowSystem,
AAAContext context) |
static void |
AAA.requirePermission(Object guardedResource,
Permission permission)
Authorize by permission.
|
void |
AAAContext.requirePermission(Object guardedResource,
Permission permission) |
static void |
AAA.requirePermission(Object guardedResource,
Permission permission,
AAAContext context)
Authorize by permission.
|
static void |
AAA.requirePermission(Object guardedResource,
Permission permission,
boolean allowSystem)
Authorize by permission.
|
void |
AAAContext.requirePermission(Object guardedResource,
Permission permission,
boolean allowSystem) |
static void |
AAA.requirePermission(Object guardedResource,
Permission permission,
boolean allowSystem,
AAAContext context)
Authorize by permission.
|
static void |
AAA.requirePermission(Object guardedResource,
Principal principal,
Permission permission,
AAAContext context)
Authorize by permission.
|
static void |
AAA.requirePermission(Permission permission)
Authorize by permission.
|
void |
AAAContext.requirePermission(Permission permission) |
static void |
AAA.requirePermission(Permission permission,
AAAContext context)
Authorize by permission.
|
static void |
AAA.requirePermission(Permission permission,
boolean allowSystem)
Authorize by permission.
|
void |
AAAContext.requirePermission(Permission permissionName,
boolean allowSystem) |
static void |
AAA.requirePermission(Permission permission,
boolean allowSystem,
AAAContext context)
Authorize by permission.
|
void |
AAAContext.requirePermission(Principal principal,
Permission permission) |
static void |
AAA.requirePermissionOrPrivilege(Object guardedResource,
Permission permission,
Privilege privilege) |
void |
AAAContext.requirePermissionOrPrivilege(Object GuardedResource,
Permission permission,
Privilege privilege) |
static void |
AAA.requirePermissionOrPrivilege(Object guardedResource,
Permission permission,
Privilege privilege,
AAAContext context) |
static void |
AAA.requirePermissionOrPrivilege(Object guardedResource,
Permission permission,
Privilege privilege,
boolean allowSystem) |
void |
AAAContext.requirePermissionOrPrivilege(Object GuardedResource,
Permission permission,
Privilege privilege,
boolean allowSystem) |
static void |
AAA.requirePermissionOrPrivilege(Object guardedResource,
Permission permission,
Privilege privilege,
boolean allowSystem,
AAAContext context) |
static void |
AAA.requirePermissionOrPrivilege(Object guardedResource,
Principal user,
Permission permission,
Privilege privilege,
AAAContext context) |
static void |
AAA.requirePermissionOrPrivilege(Permission permission,
Privilege privilege) |
void |
AAAContext.requirePermissionOrPrivilege(Permission permission,
Privilege privilege) |
static void |
AAA.requirePermissionOrPrivilege(Permission permission,
Privilege privilege,
AAAContext context) |
void |
AAAContext.requirePermissionOrPrivilege(Permission permission,
Privilege privilege,
boolean allowSystem) |
static void |
AAA.requirePermissionOrPrivilege(Permission permission,
Privilege privilege,
boolean allowSystem,
AAAContext context) |
| Modifier and Type | Method and Description |
|---|---|
static org.osgl.Lang.Visitor<Principal> |
Principal.F.allPermissionVisitor(org.osgl.Lang.Visitor<Permission> visitor) |
static org.osgl.Lang.Visitor<Role> |
Role.F.permissionVisitor(org.osgl.Lang.Visitor<Permission> visitor) |
static org.osgl.Lang.Visitor<Principal> |
Principal.F.permissionVisitor(org.osgl.Lang.Visitor<Permission> visitor) |
| Modifier and Type | Field and Description |
|---|---|
static org.osgl.Lang.Func1<Permission,Iterable<Permission>> |
SimplePrincipal.EXPAND_PERMISSION |
static org.osgl.Lang.Func1<Permission,Iterable<Permission>> |
SimplePrincipal.EXPAND_PERMISSION |
protected org.osgl.util.C.List<Permission> |
SimplePermission.Builder.implied |
protected org.osgl.util.C.List<Permission> |
SimpleRole.Builder.perms |
| Modifier and Type | Method and Description |
|---|---|
Permission |
SimplePermission.Builder.toPermission() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Permission> |
SimpleAuthorizationService.getAllPermissions(Principal principal,
AAAContext context) |
Set<Permission> |
SimplePermission.getImplied() |
List<Permission> |
SimpleRole.getPermissions() |
org.osgl.util.C.List<Permission> |
SimplePrincipal.getPermissions() |
Collection<Permission> |
SimpleAuthorizationService.getPermissions(Principal principal,
AAAContext context) |
Collection<Permission> |
SimpleAuthorizationService.getPermissions(Role role,
AAAContext context) |
Set<Permission> |
SimplePermission.implied() |
| Modifier and Type | Method and Description |
|---|---|
SimplePermission.Builder |
SimplePermission.Builder.addImplied(Permission perm) |
SimpleRole.Builder |
SimpleRole.Builder.grantPermission(Permission perm) |
SimplePrincipal.Builder |
SimplePrincipal.Builder.grantPermission(Permission perm) |
boolean |
SimpleRole.hasPermission(Permission permission) |
| Constructor and Description |
|---|
SimplePermission(String name,
Collection<? extends Permission> implied) |
SimplePermission(String name,
Collection<? extends Permission> implied,
boolean dynamic) |
SimplePrincipal(String name,
Privilege privilege,
Collection<? extends Role> roles,
Collection<? extends Permission> perms)
Construct a principal by name, privilege, list of roles and list of permissions
|
SimpleRole(String name,
List<? extends Permission> perms)
Construct a role by name and given list of permissions
|
Copyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.