Package net.officefloor.web.security
Annotation Interface HttpAccess
Annotation on a ManagedFunction Method to control
access.
Should no meta-data be provided on this Annotation, then access is
granted if authenticated to any role.
- Author:
- Daniel Sagenschneider
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Provides means to allow access if have ALL roles.String[]Provides means to allow access if have role in any one of the configured roles.Provides qualifier of whichHttpSecurityto use for access control.
-
Element Details
-
withHttpSecurity
String withHttpSecurityProvides qualifier of whichHttpSecurityto use for access control.- Returns:
- Qualifier of which
HttpSecurityto use for access control. Leaving blank allows any configuredHttpSecurity.
- Default:
- ""
-
ifRole
String[] ifRoleProvides means to allow access if have role in any one of the configured roles.- Returns:
- Multiple roles that must support at least one for access to the
ManagedFunctionMethod.
- Default:
- {}
-
ifAllRoles
String[] ifAllRolesProvides means to allow access if have ALL roles.- Returns:
- All roles that must be supported for access to the
ManagedFunctionMethod.
- Default:
- {}
-