public static final class DOFOperation.Filter.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Construct a new builder using the default filter.
|
Builder(DOFOperation.Filter filter)
Construct a new builder based on another filter.
|
Modifier and Type | Method and Description |
---|---|
DOFOperation.Filter.Builder |
allowByPermissions(DOFPermissionSet permissions)
Add a set of permissions to be allowed by the filter.
|
DOFOperation.Filter |
build()
Build a filter based on the current settings of the builder.
|
public Builder()
public Builder(DOFOperation.Filter filter)
filter
- The existing filter. Must not be null.public DOFOperation.Filter.Builder allowByPermissions(DOFPermissionSet permissions)
permissions
- The permissions to be allowed by the filter. Null is ignored.public DOFOperation.Filter build() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If build is called before permissions
have been added.