Package net.officefloor.web.security
Annotation Type HttpAccess
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface HttpAccess
Annotation
on aManagedFunction
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 Elements Modifier and Type Optional Element Description java.lang.String[]
ifAllRoles
Provides means to allow access if have ALL roles.java.lang.String[]
ifRole
Provides means to allow access if have role in any one of the configured roles.java.lang.String
withHttpSecurity
Provides qualifier of whichHttpSecurity
to use for access control.
-
-
-
Element Detail
-
withHttpSecurity
java.lang.String withHttpSecurity
Provides qualifier of whichHttpSecurity
to use for access control.- Returns:
- Qualifier of which
HttpSecurity
to 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
ManagedFunction
Method
.
- 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
ManagedFunction
Method
.
- Default:
- {}
-
-