Package io.inversion.action.security
Class AclRule
- All Implemented Interfaces:
Comparable<AclRule>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanFields inherited from class io.inversion.Rule
configMap, configStr, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AclRulegetRoles()booleanisAllow()booleanbooleanbooleanisInfo()static AclRulerequireAllPerms(String methods, String includePaths, String permission1, String... permissionsN) static AclRulerequireAllRoles(String methods, String includePaths, String role1, String... rolesN) static AclRulerequireOnePerm(String methods, String includePaths, String permission1, String... permissionsN) static AclRulerequireOneRole(String methods, String includePaths, String role1, String... rolesN) booleanruleMatches(Request req) withAllow(boolean allow) withAllPermissionsMustMatch(boolean allPermissionsMustMatch) withAllRolesMustMatch(boolean allRolesMustMatch) withInfo(boolean info) withPermissions(String... permissions) Methods inherited from class io.inversion.Rule
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, withOrder
-
Field Details
-
permissions
-
roles
-
allow
protected boolean allow -
info
protected boolean info -
allRolesMustMatch
protected boolean allRolesMustMatch -
allPermissionsMustMatch
protected boolean allPermissionsMustMatch
-
-
Constructor Details
-
AclRule
public AclRule() -
AclRule
-
-
Method Details
-
allowAll
-
requireAllPerms
-
requireOnePerm
-
requireAllRoles
-
requireOneRole
-
ruleMatches
-
getRoles
-
withRoles
-
getPermissions
-
withPermissions
-
isAllow
public boolean isAllow() -
withAllow
-
isInfo
public boolean isInfo() -
withInfo
-
isAllRolesMustMatch
public boolean isAllRolesMustMatch() -
withAllRolesMustMatch
-
isAllPermissionsMustMatch
public boolean isAllPermissionsMustMatch() -
withAllPermissionsMustMatch
-