Class AccessControlConfig
- java.lang.Object
-
- com.devonfw.module.security.common.base.accesscontrol.AbstractAccessControlProvider
-
- com.devonfw.module.security.common.base.accesscontrol.AccessControlConfig
-
- All Implemented Interfaces:
AccessControlProvider
public abstract class AccessControlConfig extends AbstractAccessControlProvider
AbstractAccessControlProviderfor static configuration ofAccessControlSchema. Instead of maintaining it as XML file you can directly configure it as code and therefore define and reference constants in annotations such asRolesAllowed.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description AccessControlConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AccessControlGroupgroup(String groupId, AccessControlGroup inherit, String... permissionIds)Creates a newAccessControlGroupfor static configuration of access controls.protected AccessControlGroupgroup(String groupId, String... permissionIds)Creates a newAccessControlGroupfor static configuration of access controls.protected AccessControlGroupgroup(String groupId, List<AccessControlGroup> inherits, String... permissionIds)Creates a newAccessControlGroupfor static configuration of access controls.protected AccessControlPermissionpermission(String id)Creates a newAccessControlPermissionfor static configuration of access controls.-
Methods inherited from class com.devonfw.module.security.common.base.accesscontrol.AbstractAccessControlProvider
addAccessControl, checkForCyclicDependencies, collectAccessControlIds, collectAccessControls, collectAccessControls, collectPermissionIds, collectPermissionNodes, getAccessControl, initialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.devonfw.module.security.common.api.accesscontrol.AccessControlProvider
expandPermissions
-
-
-
-
Method Detail
-
permission
protected AccessControlPermission permission(String id)
Creates a newAccessControlPermissionfor static configuration of access controls.- Parameters:
id-IDofAccessControlPermissionto get or create.- Returns:
- the existing
AccessControlPermissionfor the givenIDor a newly created and registeredAccessControlPermission.
-
group
protected AccessControlGroup group(String groupId, String... permissionIds)
Creates a newAccessControlGroupfor static configuration of access controls.- Parameters:
groupId-IDofAccessControlGroupto create.permissionIds-IDs of thepermissionstouse.- Returns:
- the newly created and registered
AccessControlGroup.
-
group
protected AccessControlGroup group(String groupId, AccessControlGroup inherit, String... permissionIds)
Creates a newAccessControlGroupfor static configuration of access controls.- Parameters:
groupId-IDofAccessControlGroupto create.inherit- singleAccessControlGrouptoinherit.permissionIds-IDs of thepermissionstouse.- Returns:
- the newly created and registered
AccessControlGroup.
-
group
protected AccessControlGroup group(String groupId, List<AccessControlGroup> inherits, String... permissionIds)
Creates a newAccessControlGroupfor static configuration of access controls.- Parameters:
groupId-IDofAccessControlGroupto create.inherits-ListofAccessControlGrouptoinherit.permissionIds-IDs of thepermissionstouse.- Returns:
- the newly created and registered
AccessControlGroup.
-
-