public class MappingRuleMatchers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MappingRuleMatchers.AndMatcher
AndMatcher is a basic boolean matcher which takes multiple other
matcher as it's arguments, and on match it checks if all of them are true.
|
static class |
MappingRuleMatchers.MatchAllMatcher
MatchAllMatcher is a matcher which matches everything.
|
static class |
MappingRuleMatchers.OrMatcher
OrMatcher is a basic boolean matcher which takes multiple other
matcher as its arguments, and on match it checks if any of them are true.
|
static class |
MappingRuleMatchers.UserGroupMatcher
The GroupMatcher will check if any of the user's groups match the provided
group name.
|
static class |
MappingRuleMatchers.VariableMatcher
VariableMatcher will check if a provided variable's value matches the
provided value.
|
Modifier and Type | Method and Description |
---|---|
static MappingRuleMatcher |
createAllMatcher()
Convenience method to create a matcher that matches all
|
static MappingRuleMatcher |
createApplicationNameMatcher(String name)
Convenience method to create a variable matcher which matches against the
submitted application's name.
|
static MappingRuleMatcher |
createUserGroupMatcher(String groupName)
Convenience method to create a group matcher which matches against the
groups of the user.
|
static MappingRuleMatcher |
createUserGroupMatcher(String userName,
String groupName)
Convenience method to create a composite matcher which matches against the
user's user name and the user's primary group.
|
static MappingRuleMatcher |
createUserMatcher(String userName)
Convenience method to create a variable matcher which matches against the
username.
|
public static MappingRuleMatcher createUserMatcher(String userName)
userName
- The username to be matchedpublic static MappingRuleMatcher createUserGroupMatcher(String groupName)
groupName
- The groupName to be matchedpublic static MappingRuleMatcher createUserGroupMatcher(String userName, String groupName)
userName
- The username to be matchedgroupName
- The groupName to be matchedpublic static MappingRuleMatcher createApplicationNameMatcher(String name)
name
- The name to be matchedpublic static MappingRuleMatcher createAllMatcher()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.