Class GraphAccess
- java.lang.Object
-
- uk.gov.gchq.gaffer.federated.simple.access.GraphAccess
-
- All Implemented Interfaces:
AccessControlledResource
public class GraphAccess extends Object implements AccessControlledResource
Access control for a Graph that as been added through a federated store.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphAccess.Builder
-
Field Summary
-
Fields inherited from interface uk.gov.gchq.gaffer.access.AccessControlledResource
DONT_CHECK_ADMIN_AUTH
-
-
Constructor Summary
Constructors Constructor Description GraphAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOwner()
AccessPredicate
getReadAccessPredicate()
ResourceType
getResourceType()
AccessPredicate
getWriteAccessPredicate()
boolean
hasReadAccess(User user, String adminAuth)
boolean
hasWriteAccess(User user, String adminAuth)
boolean
isPublic()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.access.AccessControlledResource
hasReadAccess, hasWriteAccess
-
-
-
-
Method Detail
-
isPublic
public boolean isPublic()
-
getOwner
public String getOwner()
-
getReadAccessPredicate
public AccessPredicate getReadAccessPredicate()
-
getWriteAccessPredicate
public AccessPredicate getWriteAccessPredicate()
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceType
in interfaceAccessControlledResource
-
hasReadAccess
public boolean hasReadAccess(User user, String adminAuth)
- Specified by:
hasReadAccess
in interfaceAccessControlledResource
-
hasWriteAccess
public boolean hasWriteAccess(User user, String adminAuth)
- Specified by:
hasWriteAccess
in interfaceAccessControlledResource
-
-