public interface AuthorizationRegistry extends PermissionRegistry, RoleRegistry, SubjectRegistry
Modifier and Type | Interface and Description |
---|---|
static class |
AuthorizationRegistry.Implementation
A simple
AuthorizationRegistry default implementation that is comprised of delegate
PermissionRegistry , RoleRegistry and SubjectRegistry instances. |
Modifier and Type | Method and Description |
---|---|
static AuthorizationRegistry |
New(Collection<? extends Permission> permissions,
Collection<? extends Role> roles,
Collection<? extends Subject> subjects)
Creates a new
AuthorizationRegistry instance with the passed authorization entity instances as
the entries for the according sub-registries and an internally created exclusive synchronization instance
used for all sub-registries. |
static AuthorizationRegistry |
New(Collection<? extends Permission> permissions,
Collection<? extends Role> roles,
Collection<? extends Subject> subjects,
Object sharedLock)
Creates a new
AuthorizationRegistry instance with the passed authorization entity instances as
the entries for the according sub-registries and an internally created exclusive synchronization instance
used for all sub-registries. |
static AuthorizationRegistry |
New(PermissionRegistry permissionRegistry,
RoleRegistry roleRegistry,
SubjectRegistry subjectRegistry)
Creates a new
AuthorizationRegistry instance from the passed sub-registries. |
lockPermissionRegistry, New, New, New, New, permission, permission
lockRoleRegistry, New, New, New, New, role, roles
lockSubjectRegistry, New, New, New, New, subject, subjects
static AuthorizationRegistry New(PermissionRegistry permissionRegistry, RoleRegistry roleRegistry, SubjectRegistry subjectRegistry)
AuthorizationRegistry
instance from the passed sub-registries.permissionRegistry
- the PermissionRegistry
to be used.roleRegistry
- the RoleRegistry
to be used.subjectRegistry
- the SubjectRegistry
to be used.static AuthorizationRegistry New(Collection<? extends Permission> permissions, Collection<? extends Role> roles, Collection<? extends Subject> subjects)
AuthorizationRegistry
instance with the passed authorization entity instances as
the entries for the according sub-registries and an internally created exclusive synchronization instance
used for all sub-registries.permissions
- the Permission
instances to be registered internally.roles
- the Role
instances to be registered internally.subjects
- the Subject
instances to be registered internally.AuthorizationRegistry
instance.static AuthorizationRegistry New(Collection<? extends Permission> permissions, Collection<? extends Role> roles, Collection<? extends Subject> subjects, Object sharedLock)
AuthorizationRegistry
instance with the passed authorization entity instances as
the entries for the according sub-registries and an internally created exclusive synchronization instance
used for all sub-registries.permissions
- the Permission
instances to be registered internally.roles
- the Role
instances to be registered internally.subjects
- the Subject
instances to be registered internally.sharedLock
- the instance used for locking by all sub-registries.AuthorizationRegistry
instance.