@FunctionalInterface public interface PermissionProvider
Permission
instances.
For details, see providePermission(Resource, Integer)
.Modifier and Type | Method and Description |
---|---|
default Permission |
providePermission(Resource resource)
Provides a permission for the passed
Resource instance and a factor of 0. |
Permission |
providePermission(Resource resource,
Integer factor)
Provides a suitable
Permission instance for the passed Resource instance and
factor value. |
Permission providePermission(Resource resource, Integer factor)
Permission
instance for the passed Resource
instance and
factor value. Providing means to either return a fitting instance or create a new one.resource
- the Resource
instance to be associated.factor
- the factor of the access to the passed Resource
instance.Permission
instance satisfiying the specified values.default Permission providePermission(Resource resource)
Resource
instance and a factor of 0.resource
- the Resource
instance to be associated.Permission
instance associated with the passed Resource
instance.providePermission(Resource, Integer)