Class AccessPredicate
- java.lang.Object
-
- uk.gov.gchq.gaffer.access.predicate.AccessPredicate
-
- All Implemented Interfaces:
Serializable
,BiPredicate<User,String>
- Direct Known Subclasses:
FederatedGraphAccessPredicate
,NamedViewWriteAccessPredicate
,NoAccessPredicate
,UnrestrictedAccessPredicate
public class AccessPredicate extends Object implements BiPredicate<User,String>, Serializable
ABiPredicate
which will first check if the user is an admin according to the provided admin role. If not it uses a predicate to determine if the user can access a resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessPredicate(String creatingUserId, List<String> auths)
AccessPredicate(Predicate<User> userPredicate)
AccessPredicate(User creatingUser, List<String> auths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Predicate<User>
getUserPredicate()
int
hashCode()
boolean
test(User user, String adminAuth)
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
-