Class DefaultUserPredicate
- java.lang.Object
-
- uk.gov.gchq.koryphe.predicate.KoryphePredicate<User>
-
- uk.gov.gchq.gaffer.access.predicate.user.DefaultUserPredicate
-
- All Implemented Interfaces:
Serializable
,Predicate<User>
- Direct Known Subclasses:
FederatedGraphReadUserPredicate
,FederatedGraphWriteUserPredicate
,NamedViewWriteUserPredicate
public class DefaultUserPredicate extends uk.gov.gchq.koryphe.predicate.KoryphePredicate<User> implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultUserPredicate(String creatingUserId, List<String> auths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<String>
getAuths()
String
getCreatingUserId()
int
hashCode()
boolean
hasPermission(User user)
boolean
isResourceCreator(User user)
boolean
test(User user)
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classuk.gov.gchq.koryphe.predicate.KoryphePredicate<User>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classuk.gov.gchq.koryphe.predicate.KoryphePredicate<User>
-
getCreatingUserId
public String getCreatingUserId()
-
isResourceCreator
public boolean isResourceCreator(User user)
-
hasPermission
public boolean hasPermission(User user)
-
-