public class AccessControlPermission extends AccessControl
AccessControlPermission represents an atomic permission of the application. Each operation (use-case)
should have its own permission. These operations are secured referencing the
ID of the permission. We do this by annotating the operation method
with security.RolesAllowed (from JSR 250). Please do not get confused by the name
security.RolesAllowed as we are not assigning roles (see also AccessControlGroup)
but permissions instead. We want to use Java standards (such as
security.RolesAllowed) where suitable but assigning the allowed roles to a method would end
up in unmaintainable system configurations if your application reaches a certain complexity.AccessControlGroups (resp. roles) have to contain the permission
directly or indirectly.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
UID for serialization.
|
| Constructor and Description |
|---|
AccessControlPermission()
The constructor.
|
AccessControlPermission(String id)
The constructor.
|
private static final long serialVersionUID
Copyright © 2014–2016 OASP-Team. All rights reserved.