Package net.officefloor.web.security
Annotation Type HttpAccess
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface HttpAccessAnnotationon aManagedFunctionMethodto 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 Elements Modifier and Type Optional Element Description java.lang.String[]ifAllRolesProvides means to allow access if have ALL roles.java.lang.String[]ifRoleProvides means to allow access if have role in any one of the configured roles.java.lang.StringwithHttpSecurityProvides qualifier of whichHttpSecurityto use for access control.
-
-
-
Element Detail
-
withHttpSecurity
java.lang.String withHttpSecurity
Provides qualifier of whichHttpSecurityto use for access control.- Returns:
- Qualifier of which
HttpSecurityto use for access control. Leaving blank allows any configuredHttpSecurity.
- Default:
- ""
-
-
-
ifRole
java.lang.String[] ifRole
Provides 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
java.lang.String[] ifAllRoles
Provides means to allow access if have ALL roles.- Returns:
- All roles that must be supported for access to the
ManagedFunctionMethod.
- Default:
- {}
-
-