Class FederatedAccess
- java.lang.Object
-
- uk.gov.gchq.gaffer.federatedstore.FederatedAccess
-
- All Implemented Interfaces:
AccessControlledResource
@Deprecated public class FederatedAccess extends Object implements AccessControlledResource
Deprecated.Will be replaced by a GraphAccess class in 2.4.0.Conditions required for aUser
to have access to a graph within theFederatedStore
viaFederatedAccess
FederatedAccess truth table User Ops AccessHook Ops User added graph hasAccess? 'A' 'A' n/a T 'A','B' 'A' n/a T 'A' 'A','B' n/a T 'A' 'B' F F 'A' 'B' T T n/a null
T T n/a null
F F n/a empty
T T n/a empty
F F
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FederatedAccess.Builder
Deprecated.
-
Field Summary
-
Fields inherited from interface uk.gov.gchq.gaffer.access.AccessControlledResource
DONT_CHECK_ADMIN_AUTH
-
-
Constructor Summary
Constructors Constructor Description FederatedAccess(Set<String> graphAuths, String owningUserId)
Deprecated.FederatedAccess(Set<String> graphAuths, String owningUserId, boolean isPublic)
Deprecated.FederatedAccess(Set<String> graphAuths, String owningUserId, boolean isPublic, AccessPredicate readAccessPredicate, AccessPredicate writeAccessPredicate)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AccessPredicate
deserialisePredicate(String predicateJson)
Deprecated.boolean
equals(Object o)
Deprecated.Set<String>
getGraphAuths()
Deprecated.AccessPredicate
getOrDefaultReadAccessPredicate()
Deprecated.AccessPredicate
getOrDefaultWriteAccessPredicate()
Deprecated.String
getOwningUserId()
Deprecated.AccessPredicate
getReadAccessPredicate()
Deprecated.ResourceType
getResourceType()
Deprecated.AccessPredicate
getWriteAccessPredicate()
Deprecated.int
hashCode()
Deprecated.boolean
hasReadAccess(User user, String adminAuth)
Deprecated.boolean
hasWriteAccess(User user, String adminAuth)
Deprecated.boolean
isPublic()
Deprecated.static String
serialisePredicate(AccessPredicate accessPredicate)
Deprecated.String
toString()
Deprecated.-
Methods inherited from interface uk.gov.gchq.gaffer.access.AccessControlledResource
hasReadAccess, hasWriteAccess
-
-
-
-
Constructor Detail
-
FederatedAccess
public FederatedAccess(Set<String> graphAuths, String owningUserId, boolean isPublic)
Deprecated.
-
FederatedAccess
public FederatedAccess(Set<String> graphAuths, String owningUserId, boolean isPublic, AccessPredicate readAccessPredicate, AccessPredicate writeAccessPredicate)
Deprecated.
-
-
Method Detail
-
getOwningUserId
public String getOwningUserId()
Deprecated.
-
isPublic
public boolean isPublic()
Deprecated.
-
getResourceType
public ResourceType getResourceType()
Deprecated.- Specified by:
getResourceType
in interfaceAccessControlledResource
-
hasReadAccess
public boolean hasReadAccess(User user, String adminAuth)
Deprecated.- Specified by:
hasReadAccess
in interfaceAccessControlledResource
-
hasWriteAccess
public boolean hasWriteAccess(User user, String adminAuth)
Deprecated.- Specified by:
hasWriteAccess
in interfaceAccessControlledResource
-
deserialisePredicate
public static AccessPredicate deserialisePredicate(String predicateJson)
Deprecated.
-
serialisePredicate
public static String serialisePredicate(AccessPredicate accessPredicate)
Deprecated.
-
getReadAccessPredicate
public AccessPredicate getReadAccessPredicate()
Deprecated.
-
getWriteAccessPredicate
public AccessPredicate getWriteAccessPredicate()
Deprecated.
-
getOrDefaultReadAccessPredicate
public AccessPredicate getOrDefaultReadAccessPredicate()
Deprecated.
-
getOrDefaultWriteAccessPredicate
public AccessPredicate getOrDefaultWriteAccessPredicate()
Deprecated.
-
-