Package de.xima.fc.security.access
Class ListedResourceAccessControl.ListedResourceAccessControlBuilder
- java.lang.Object
-
- de.xima.fc.security.access.ListedResourceAccessControl.ListedResourceAccessControlBuilder
-
- Enclosing class:
- ListedResourceAccessControl
public static final class ListedResourceAccessControl.ListedResourceAccessControlBuilder extends Object
Simple builder for configuring aListedResourceAccessControl
instance.- Since:
- 7.0.10
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ListedResourceAccessControlBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListedResourceAccessControl.ListedResourceAccessControlBuilder
addBlacklisted(IResourceMatcher matcher)
Adds a new matcher to the list of matchers for blacklisted resources.ListedResourceAccessControl.ListedResourceAccessControlBuilder
addWhitelisted(IResourceMatcher matcher)
Adds a new matcher to the list of matchers for whitelisted resources.ListedResourceAccessControl
build()
-
-
-
Method Detail
-
addBlacklisted
public ListedResourceAccessControl.ListedResourceAccessControlBuilder addBlacklisted(IResourceMatcher matcher)
Adds a new matcher to the list of matchers for blacklisted resources.- Parameters:
matcher
- Matcher to add to the blacklist resources.- Returns:
- This builder instance for chaining method calls.
-
addWhitelisted
public ListedResourceAccessControl.ListedResourceAccessControlBuilder addWhitelisted(IResourceMatcher matcher)
Adds a new matcher to the list of matchers for whitelisted resources.- Parameters:
matcher
- Matcher to add to the whitelist resources.- Returns:
- This builder instance for chaining method calls.
-
build
public ListedResourceAccessControl build()
- Returns:
- A new resource access control check with the current blacklist and whitelist configuration.
-
-