Class FederatedGraphStorage
- java.lang.Object
-
- uk.gov.gchq.gaffer.federatedstore.FederatedGraphStorage
-
@Deprecated public class FederatedGraphStorage extends Object
Deprecated.Will be removed in 2.4.0.
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCESS_IS_NULLDeprecated.static StringERROR_ADDING_GRAPH_TO_CACHEDeprecated.static StringGRAPH_IDS_NOT_VISIBLEDeprecated.static StringUSER_IS_ATTEMPTING_TO_OVERWRITEDeprecated.
-
Constructor Summary
Constructors Constructor Description FederatedGraphStorage(String suffixFederatedStoreCacheName)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanchangeGraphAccess(String graphId, FederatedAccess newFederatedAccess, User requestingUser)Deprecated.booleanchangeGraphAccess(String graphId, FederatedAccess newFederatedAccess, User requestingUser, String adminAuth)Deprecated.booleanchangeGraphId(String graphId, String newGraphId, User requestingUser)Deprecated.booleanchangeGraphId(String graphId, String newGraphId, User requestingUser, String adminAuth)Deprecated.Collection<GraphSerialisable>get(User user, List<String> graphIds)Deprecated.returns all graphs objects matching the given graphIds, that is visible to the user.List<GraphSerialisable>get(User user, List<String> graphIds, String adminAuth)Deprecated.returns all graphs objects matching the given graphIds, that is visible to the user.Collection<GraphSerialisable>getAll(User user)Deprecated.Returns all graph object that are visible for the given user.List<String>getAllIds(User user)Deprecated.Returns all the graphIds that are visible for the given user.List<String>getAllIds(User user, String adminAuth)Deprecated.voidput(Collection<GraphSerialisable> graphs, FederatedAccess access)Deprecated.places a collections of graphs into storage, protected by the given access.voidput(GraphSerialisable graph, FederatedAccess access)Deprecated.places a graph into storage, protected by the given access.booleanremove(String graphId, User user, boolean removeCache)Deprecated.Removes a graph from storage and returns the success.voidsetGraphLibrary(GraphLibrary graphLibrary)Deprecated.
-
-
-
Field Detail
-
ERROR_ADDING_GRAPH_TO_CACHE
public static final String ERROR_ADDING_GRAPH_TO_CACHE
Deprecated.- See Also:
- Constant Field Values
-
USER_IS_ATTEMPTING_TO_OVERWRITE
public static final String USER_IS_ATTEMPTING_TO_OVERWRITE
Deprecated.- See Also:
- Constant Field Values
-
ACCESS_IS_NULL
public static final String ACCESS_IS_NULL
Deprecated.- See Also:
- Constant Field Values
-
GRAPH_IDS_NOT_VISIBLE
public static final String GRAPH_IDS_NOT_VISIBLE
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FederatedGraphStorage
public FederatedGraphStorage(String suffixFederatedStoreCacheName)
Deprecated.
-
-
Method Detail
-
put
public void put(Collection<GraphSerialisable> graphs, FederatedAccess access) throws StorageException
Deprecated.places a collections of graphs into storage, protected by the given access.- Parameters:
graphs- the graphs to add to the storage.access- access required to for the graphs, can't be null- Throws:
StorageException- if unable to put arguments into storage- See Also:
put(GraphSerialisable, FederatedAccess)
-
put
public void put(GraphSerialisable graph, FederatedAccess access) throws StorageException
Deprecated.places a graph into storage, protected by the given access.GraphId can't already exist, otherwise
OverwritingExceptionis thrown.Access can't be null otherwise
IllegalArgumentExceptionis thrown- Parameters:
graph- the graph to add to the storage.access- access required to for the graph.- Throws:
StorageException- if unable to put arguments into storage
-
getAllIds
public List<String> getAllIds(User user)
Deprecated.Returns all the graphIds that are visible for the given user.- Parameters:
user- to match visibility against.- Returns:
- visible graphIds.
-
getAll
public Collection<GraphSerialisable> getAll(User user)
Deprecated.Returns all graph object that are visible for the given user.- Parameters:
user- to match visibility against.- Returns:
- visible graphs
-
remove
public boolean remove(String graphId, User user, boolean removeCache)
Deprecated.Removes a graph from storage and returns the success. The given user must have visibility of the graph to be able to remove it.- Parameters:
graphId- the graphId to remove.user- to match visibility against.removeCache- to remove associated caches with this graph.- Returns:
- if a graph was removed.
- See Also:
isValidToView(User, FederatedAccess)
-
get
public Collection<GraphSerialisable> get(User user, List<String> graphIds)
Deprecated.returns all graphs objects matching the given graphIds, that is visible to the user.- Parameters:
user- to match visibility against.graphIds- the graphIds to get graphs for.- Returns:
- visible graphs from the given graphIds.
-
get
public List<GraphSerialisable> get(User user, List<String> graphIds, String adminAuth)
Deprecated.returns all graphs objects matching the given graphIds, that is visible to the user.- Parameters:
user- to match visibility against.graphIds- the graphIds to get graphs for. List is used because it preserves order.adminAuth- adminAuths role- Returns:
- visible graphs from the given graphIds.
-
setGraphLibrary
public void setGraphLibrary(GraphLibrary graphLibrary)
Deprecated.
-
changeGraphAccess
public boolean changeGraphAccess(String graphId, FederatedAccess newFederatedAccess, User requestingUser) throws StorageException
Deprecated.- Throws:
StorageException
-
changeGraphAccess
public boolean changeGraphAccess(String graphId, FederatedAccess newFederatedAccess, User requestingUser, String adminAuth) throws StorageException
Deprecated.- Throws:
StorageException
-
changeGraphId
public boolean changeGraphId(String graphId, String newGraphId, User requestingUser) throws StorageException
Deprecated.- Throws:
StorageException
-
changeGraphId
public boolean changeGraphId(String graphId, String newGraphId, User requestingUser, String adminAuth) throws StorageException
Deprecated.- Throws:
StorageException
-
-