public interface DynamicPermissionCheckHelper<T>
Dynamic permission check helper could be implemented by application to provide a fain grained authorization on instance level
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAssociated(T target,
Principal user)
Check if a target resource is associated with a principal.
|
List<? extends Permission> |
permissions()
Returns a list of permissions that this dynamic permission check helper could be used to check against the dynamic association.
|
List<? extends Permission> permissions()
Returns a list of permissions that this dynamic permission check helper could be used to check against the dynamic association.
If the helper returns an empty list then it means it could be used on any permission
Copyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.