public class AclAction extends Action<AclAction>
AclRules specify the roles and permissions that a user must have to access specific method/path combinations and can also specify input/output parameters that are either required or restricted
Rule.RuleMatcher| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<AclRule> |
aclRules |
configMap, configStr, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order| Constructor and Description |
|---|
AclAction() |
| Modifier and Type | Method and Description |
|---|---|
AclAction |
orRequireAllPerms(java.lang.String httpMethods,
java.lang.String includePaths,
java.lang.String permission1,
java.lang.String... permissionsN) |
AclAction |
orRequireAllRoles(java.lang.String httpMethods,
java.lang.String includePaths,
java.lang.String role1,
java.lang.String... rolesN) |
AclAction |
orRequireOnePerm(java.lang.String httpMethods,
java.lang.String includePaths,
java.lang.String permission1,
java.lang.String... permissionsN) |
AclAction |
orRequireOneRole(java.lang.String httpMethods,
java.lang.String includePaths,
java.lang.String role1,
java.lang.String... rolesN) |
void |
run(Request req,
Response resp)
Override this method with your custom business logic or override one of the
http method "doMETHOD" specific handlers.
|
AclAction |
withAclRules(AclRule... acls) |
checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludePaths, getConfig, getConfig, getConfigKeys, getDefaultIncludeMatch, getExcludeMatchers, getIncludeMatchers, getName, getOrder, match, matches, matches, toString, withConfig, withExcludeOn, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withIncludeOn, withName, withOrderprotected final java.util.List<AclRule> aclRules
public AclAction orRequireAllPerms(java.lang.String httpMethods, java.lang.String includePaths, java.lang.String permission1, java.lang.String... permissionsN)
public AclAction orRequireOnePerm(java.lang.String httpMethods, java.lang.String includePaths, java.lang.String permission1, java.lang.String... permissionsN)
public AclAction orRequireAllRoles(java.lang.String httpMethods, java.lang.String includePaths, java.lang.String role1, java.lang.String... rolesN)
public AclAction orRequireOneRole(java.lang.String httpMethods, java.lang.String includePaths, java.lang.String role1, java.lang.String... rolesN)
public void run(Request req, Response resp) throws ApiException
Actionrun in class Action<AclAction>req - the Request being servicedresp - the Reponse being generatedApiExceptionCopyright © 2021 Rocket Partners, LLC. All rights reserved.