public class PermissionCheckBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected List<PermissionCheck> |
atomicChecks |
protected List<CompositePermissionCheck> |
compositeChecks |
protected boolean |
disjunctive |
protected PermissionCheckBuilder |
parent |
Constructor and Description |
---|
PermissionCheckBuilder() |
PermissionCheckBuilder(PermissionCheckBuilder parent) |
Modifier and Type | Method and Description |
---|---|
PermissionCheckBuilder |
atomicCheck(Resource resource,
String queryParam,
Permission permission) |
PermissionCheckBuilder |
atomicCheckForResourceId(Resource resource,
String resourceId,
Permission permission) |
CompositePermissionCheck |
build() |
PermissionCheckBuilder |
composite() |
PermissionCheckBuilder |
conjunctive() |
PermissionCheckBuilder |
disjunctive() |
PermissionCheckBuilder |
done() |
List<PermissionCheck> |
getAtomicChecks() |
boolean |
isPermissionDisabled(Permission permission) |
protected void |
validate() |
protected List<PermissionCheck> atomicChecks
protected List<CompositePermissionCheck> compositeChecks
protected boolean disjunctive
protected PermissionCheckBuilder parent
public PermissionCheckBuilder()
public PermissionCheckBuilder(PermissionCheckBuilder parent)
public PermissionCheckBuilder disjunctive()
public PermissionCheckBuilder conjunctive()
public PermissionCheckBuilder atomicCheck(Resource resource, String queryParam, Permission permission)
public PermissionCheckBuilder atomicCheckForResourceId(Resource resource, String resourceId, Permission permission)
public PermissionCheckBuilder composite()
public PermissionCheckBuilder done()
public CompositePermissionCheck build()
public List<PermissionCheck> getAtomicChecks()
protected void validate()
public boolean isPermissionDisabled(Permission permission)
Copyright © 2021. All rights reserved.