Class GraphDelegate
- java.lang.Object
-
- uk.gov.gchq.gaffer.operation.export.graph.handler.GraphDelegate
-
- Direct Known Subclasses:
AuthorisedGraphForExportDelegate
,GraphForExportDelegate
public class GraphDelegate extends Object
Delegation class used to create a graph from the various combinations of settings.- graphId
- storeProperties and/or parentPropertiesId
- schema and/or parentSchemaIds
- See Also:
ExportToOtherGraphHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphDelegate.BaseBuilder<BUILDER extends GraphDelegate.BaseBuilder>
static class
GraphDelegate.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
CANNOT_EXPORT_TO_THE_SAME_GRAPH_S
static String
CANT_BOTH_BE_NULL
static String
GRAPH_ID
static String
GRAPH_ID_S_CANNOT_BE_CREATED_WITHOUT_DEFINED_KNOWN_S
static String
GRAPH_LIBRARY_CANNOT_BE_FOUND_WITH_GRAPHID_S
static String
GRAPH_S_ALREADY_EXISTS_SO_YOU_CANNOT_USE_A_DIFFERENT_S_DO_NOT_SET_THE_S_FIELD
static String
PARENT_SCHEMA_IDS
static String
PARENT_STORE_PROPERTIES_ID
static String
S_CANNOT_BE_USED_WITHOUT_A_GRAPH_LIBRARY
static String
S_MUST_BE_SPECIFIED_WITH_S
static String
SCHEMA_COULD_NOT_BE_FOUND_IN_THE_GRAPH_LIBRARY_WITH_ID_S
static String
SCHEMA_ID
static String
SCHEMA_STRING
static String
STORE_GRAPH_LIBRARY_IS_NULL
static String
STORE_PROPERTIES_COULD_NOT_BE_FOUND_IN_THE_GRAPH_LIBRARY_WITH_ID_S
static String
STORE_PROPERTIES_ID
static String
STORE_PROPERTIES_STRING
static String
USER_IS_NOT_AUTHORISED_TO_EXPORT_USING_S_S
-
Constructor Summary
Constructors Constructor Description GraphDelegate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Graph
createGraph(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
Graph
createGraphInstance(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
Graph
createGraphInstance(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId, GraphHook... hooks)
GraphSerialisable
createGraphSerialisable(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
GraphSerialisable
createGraphSerialisable(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId, GraphHook... hooks)
static void
validate(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
static void
validate(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId, Pair<Schema,StoreProperties> existingGraphPair)
void
validateGraph(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
void
validateGraph(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId, Pair<Schema,StoreProperties> existingGraphPair)
-
-
-
Field Detail
-
SCHEMA_STRING
public static final String SCHEMA_STRING
-
STORE_PROPERTIES_STRING
public static final String STORE_PROPERTIES_STRING
-
SCHEMA_COULD_NOT_BE_FOUND_IN_THE_GRAPH_LIBRARY_WITH_ID_S
public static final String SCHEMA_COULD_NOT_BE_FOUND_IN_THE_GRAPH_LIBRARY_WITH_ID_S
- See Also:
- Constant Field Values
-
GRAPH_ID_S_CANNOT_BE_CREATED_WITHOUT_DEFINED_KNOWN_S
public static final String GRAPH_ID_S_CANNOT_BE_CREATED_WITHOUT_DEFINED_KNOWN_S
- See Also:
- Constant Field Values
-
STORE_PROPERTIES_COULD_NOT_BE_FOUND_IN_THE_GRAPH_LIBRARY_WITH_ID_S
public static final String STORE_PROPERTIES_COULD_NOT_BE_FOUND_IN_THE_GRAPH_LIBRARY_WITH_ID_S
- See Also:
- Constant Field Values
-
S_CANNOT_BE_USED_WITHOUT_A_GRAPH_LIBRARY
public static final String S_CANNOT_BE_USED_WITHOUT_A_GRAPH_LIBRARY
- See Also:
- Constant Field Values
-
CANNOT_EXPORT_TO_THE_SAME_GRAPH_S
public static final String CANNOT_EXPORT_TO_THE_SAME_GRAPH_S
- See Also:
- Constant Field Values
-
STORE_GRAPH_LIBRARY_IS_NULL
public static final String STORE_GRAPH_LIBRARY_IS_NULL
- See Also:
- Constant Field Values
-
USER_IS_NOT_AUTHORISED_TO_EXPORT_USING_S_S
public static final String USER_IS_NOT_AUTHORISED_TO_EXPORT_USING_S_S
- See Also:
- Constant Field Values
-
GRAPH_S_ALREADY_EXISTS_SO_YOU_CANNOT_USE_A_DIFFERENT_S_DO_NOT_SET_THE_S_FIELD
public static final String GRAPH_S_ALREADY_EXISTS_SO_YOU_CANNOT_USE_A_DIFFERENT_S_DO_NOT_SET_THE_S_FIELD
- See Also:
- Constant Field Values
-
GRAPH_LIBRARY_CANNOT_BE_FOUND_WITH_GRAPHID_S
public static final String GRAPH_LIBRARY_CANNOT_BE_FOUND_WITH_GRAPHID_S
- See Also:
- Constant Field Values
-
S_MUST_BE_SPECIFIED_WITH_S
public static final String S_MUST_BE_SPECIFIED_WITH_S
- See Also:
- Constant Field Values
-
PARENT_SCHEMA_IDS
public static final String PARENT_SCHEMA_IDS
- See Also:
- Constant Field Values
-
PARENT_STORE_PROPERTIES_ID
public static final String PARENT_STORE_PROPERTIES_ID
- See Also:
- Constant Field Values
-
STORE_PROPERTIES_ID
public static final String STORE_PROPERTIES_ID
- See Also:
- Constant Field Values
-
SCHEMA_ID
public static final String SCHEMA_ID
- See Also:
- Constant Field Values
-
GRAPH_ID
public static final String GRAPH_ID
- See Also:
- Constant Field Values
-
CANT_BOTH_BE_NULL
public static final String CANT_BOTH_BE_NULL
- See Also:
- Constant Field Values
-
-
Method Detail
-
createGraph
public static Graph createGraph(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
-
createGraphSerialisable
public GraphSerialisable createGraphSerialisable(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
-
createGraphInstance
public Graph createGraphInstance(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
-
createGraphSerialisable
public GraphSerialisable createGraphSerialisable(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId, GraphHook... hooks)
-
createGraphInstance
public Graph createGraphInstance(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId, GraphHook... hooks)
-
validate
public static void validate(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
-
validateGraph
public void validateGraph(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId)
-
validate
public static void validate(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId, Pair<Schema,StoreProperties> existingGraphPair)
-
validateGraph
public void validateGraph(Store store, String graphId, Schema schema, StoreProperties storeProperties, List<String> parentSchemaIds, String parentStorePropertiesId, Pair<Schema,StoreProperties> existingGraphPair)
-
-