Class DataEngineRESTServices
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.service.DataEngineRESTServices
-
public class DataEngineRESTServices extends Object
The DataEngineRESTServices provides the server-side implementation of the Data Engine Open Metadata Assess Service (OMAS). This service provide the functionality to create processes, ports with schema types and corresponding relationships.
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_WHILE_ADDING_LINEAGE_MAPPINGstatic StringEXCEPTION_WHILE_CREATING_PROCESSstatic StringEXCEPTION_WHILE_CREATING_PROCESS_HIERARCHY
-
Constructor Summary
Constructors Constructor Description DataEngineRESTServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLineageMappings(String userId, String serverName, List<LineageMapping> lineageMappings, FFDCResponseBase response, String externalSourceName)Create LineageMappings relationships between schema attributesVoidResponseaddLineageMappings(String userId, String serverName, LineageMappingsRequestBody lineageMappingsRequestBody)Create LineageMappings relationships between schema attributesGUIDResponseaddProcessHierarchy(String userId, String serverName, ProcessHierarchyRequestBody processHierarchyRequestBody)Add the provided ProcessHierarchy relationshipStringaddProcessHierarchyToProcess(String userId, String serverName, ProcessHierarchy processHierarchy, String externalSourceName)Add a a ProcessHierarchy relationship to the processStringcreateExternalDataEngine(String userId, String serverName, SoftwareServerCapability softwareServerCapability)Create the external data engine as software server capability entityGUIDResponsecreateExternalDataEngine(String serverName, String userId, DataEngineRegistrationRequestBody requestBody)Create the external data engine as software server capability entityvoiddeleteConnection(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)Delete the ConnectionVoidResponsedeleteConnection(String userId, String serverName, DeleteRequestBody requestBody)Delete the ConnectionvoiddeleteDatabase(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)Delete the Database with all the associated relational tablesVoidResponsedeleteDatabase(String userId, String serverName, DeleteRequestBody requestBody)Delete the Database with all the associated relational tablesvoiddeleteDataFile(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)Delete the Data File with all the associated Tabular ColumnsVoidResponsedeleteDataFile(String userId, String serverName, DeleteRequestBody requestBody)Delete the Data File with all the associated Tabular ColumnsvoiddeleteEndpoint(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)Delete the EndpointVoidResponsedeleteEndpoint(String userId, String serverName, DeleteRequestBody requestBody)Delete the EndpointvoiddeleteExternalDataEngine(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)Delete the external data engine.VoidResponsedeleteExternalDataEngine(String userId, String serverName, DeleteRequestBody requestBody)Delete the external data engine.voiddeleteFolder(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)Delete the File FolderVoidResponsedeleteFolder(String userId, String serverName, DeleteRequestBody requestBody)Delete the File FoldervoiddeletePort(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, String portType, DeleteSemantic deleteSemantic)Delete the Port with the associated schema type and relationshipsVoidResponsedeletePort(String userId, String serverName, DeleteRequestBody requestBody, String portType)Delete the Port with the associated schema type and relationshipsvoiddeleteProcess(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)VoidResponsedeleteProcess(String userId, String serverName, DeleteRequestBody requestBody)Delete a process, with the associated port implementations, port aliases and lineage mappingsvoiddeleteRelationalTable(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)Delete the Relational Table with all the associated Relational ColumnsVoidResponsedeleteRelationalTable(String userId, String serverName, DeleteRequestBody requestBody)Delete the Relational Table with all the associated Relational ColumnsvoiddeleteSchemaType(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic)Delete the SchemaType with schema attributes and corresponding relationshipsVoidResponsedeleteSchemaType(String userId, String serverName, DeleteRequestBody requestBody)Delete the SchemaType with schema attributes and corresponding relationshipsOptional<EntityDetail>getEntityDetails(String serverName, String userId, String qualifiedName, String typeName)Get the entity details of an entityOptional<String>getEntityGUID(String serverName, String userId, String qualifiedName, String typeName)Get the unique identifier of an entityGUIDResponsegetExternalDataEngine(String serverName, String userId, String qualifiedName)Get the unique identifier from a external data engine qualified nameConnectionResponsegetInTopicConnection(String serverName, String userId)Retrieve in topic connection details from the service instance hosting Data Engine access serviceVoidResponseupdateProcessStatus(String userId, String serverName, String processGUID, InstanceStatus instanceStatus, String externalSourceName)StringupsertDatabase(String userId, String serverName, Database database, String externalSourceName)Create or update the Database with corresponding associated schema type and relationshipGUIDResponseupsertDatabase(String userId, String serverName, DatabaseRequestBody databaseRequestBody)Create or update the Database with corresponding associated schema type and relationshipStringupsertDataFile(String userId, String serverName, DataFile file, String externalSourceName)Updates or inserts a DataFile or CSVFile, along with its schema, columns and folder hierarchyGUIDResponseupsertDataFile(String serverName, String userId, DataFileRequestBody dataFileRequestBody)Updates or inserts a DataFile or CSVFile, along with its schema, columns and folder hierarchyGUIDResponseupsertPortAlias(String userId, String serverName, PortAliasRequestBody portAliasRequestBody)Create or update the Port Alias with a PortDelegation relationshipStringupsertPortAliasWithDelegation(String userId, String serverName, PortAlias portAlias, String processGUID, String externalSourceName)Create or update a Port Alias with a PortDelegation relationshipStringupsertPortImplementation(String userId, String serverName, PortImplementation portImplementation, String processGUID, String externalSourceName)Create or update a Port Implementation with an associated SchemaTypeGUIDResponseupsertPortImplementation(String userId, String serverName, PortImplementationRequestBody portImplementationRequestBody)Create or update the Port Implementation with a PortSchema relationshipGUIDResponseupsertProcess(String userId, String serverName, Process process, String externalSourceName)Create the process with ports, schema types and lineage mappingsGUIDResponseupsertProcess(String userId, String serverName, ProcessRequestBody processRequestBody)Create or update the process with ports, schema types and lineage mappingsStringupsertRelationalTable(String userId, String serverName, String databaseQualifiedName, RelationalTable relationalTable, String externalSourceName)Create the Relational Table with Relational Columns and corresponding relationshipsGUIDResponseupsertRelationalTable(String userId, String serverName, RelationalTableRequestBody relationalTableRequestBody)Create the Relational Table with Relational Columns and corresponding relationshipsStringupsertSchemaType(String userId, String serverName, String portImplementationGUID, SchemaType schemaType, String externalSourceName)Create or update a SchemaTypeGUIDResponseupsertSchemaType(String userId, String serverName, SchemaTypeRequestBody schemaTypeRequestBody)Create the SchemaType with schema attributes and corresponding relationships
-
-
-
Field Detail
-
EXCEPTION_WHILE_ADDING_LINEAGE_MAPPING
public static final String EXCEPTION_WHILE_ADDING_LINEAGE_MAPPING
- See Also:
- Constant Field Values
-
EXCEPTION_WHILE_CREATING_PROCESS
public static final String EXCEPTION_WHILE_CREATING_PROCESS
- See Also:
- Constant Field Values
-
EXCEPTION_WHILE_CREATING_PROCESS_HIERARCHY
public static final String EXCEPTION_WHILE_CREATING_PROCESS_HIERARCHY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createExternalDataEngine
public GUIDResponse createExternalDataEngine(String serverName, String userId, DataEngineRegistrationRequestBody requestBody)
Create the external data engine as software server capability entity- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the server- Returns:
- the unique identifier (guid) of the created external data engine
-
getExternalDataEngine
public GUIDResponse getExternalDataEngine(String serverName, String userId, String qualifiedName)
Get the unique identifier from a external data engine qualified name- Parameters:
serverName- name of the service to route the request touserId- identifier of calling userqualifiedName- qualified name of the external data engine- Returns:
- the unique identifier from a software server capability definition for an external data engine
-
deleteExternalDataEngine
public VoidResponse deleteExternalDataEngine(String userId, String serverName, DeleteRequestBody requestBody)
Delete the external data engine. Not yet implemented, it will throw FunctionNotSupportedException if used- Parameters:
serverName- name of the service to route the request touserId- identifier of calling userrequestBody- properties of the external data engine- Returns:
- void response
-
deleteExternalDataEngine
public void deleteExternalDataEngine(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, FunctionNotSupportedException
Delete the external data engine. Not yet implemented, it will throw FunctionNotSupportedException if used- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the schema typequalifiedName- the qualified name of the schema typedeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.
-
getEntityGUID
public Optional<String> getEntityGUID(String serverName, String userId, String qualifiedName, String typeName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Get the unique identifier of an entity- Parameters:
serverName- name of the service to route the request touserId- identifier of calling userqualifiedName- qualified name of the porttypeName- the type name of the entity- Returns:
- the unique identifier of the entity or empty optional
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
getEntityDetails
public Optional<EntityDetail> getEntityDetails(String serverName, String userId, String qualifiedName, String typeName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Get the entity details of an entity- Parameters:
serverName- name of the service to route the request touserId- identifier of calling userqualifiedName- qualified name of the porttypeName- the type name of the entity- Returns:
- the entity details of the entity or empty optional
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
upsertSchemaType
public GUIDResponse upsertSchemaType(String userId, String serverName, SchemaTypeRequestBody schemaTypeRequestBody)
Create the SchemaType with schema attributes and corresponding relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userschemaTypeRequestBody- properties of the schema type- Returns:
- the unique identifier (guid) of the created schema type
-
deleteSchemaType
public VoidResponse deleteSchemaType(String userId, String serverName, DeleteRequestBody requestBody)
Delete the SchemaType with schema attributes and corresponding relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the schema type- Returns:
- void response
-
deleteSchemaType
public void deleteSchemaType(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, FunctionNotSupportedException, EntityNotDeletedException
Delete the SchemaType with schema attributes and corresponding relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the schema typequalifiedName- the qualified name of the schema typedeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.EntityNotDeletedException- the entity could not be deleted
-
upsertPortImplementation
public GUIDResponse upsertPortImplementation(String userId, String serverName, PortImplementationRequestBody portImplementationRequestBody)
Create or update the Port Implementation with a PortSchema relationship- Parameters:
serverName- name of server instance to calluserId- the name of the calling userportImplementationRequestBody- properties of the port- Returns:
- the unique identifier (guid) of the created port
-
upsertPortAlias
public GUIDResponse upsertPortAlias(String userId, String serverName, PortAliasRequestBody portAliasRequestBody)
Create or update the Port Alias with a PortDelegation relationship- Parameters:
serverName- name of server instance to calluserId- the name of the calling userportAliasRequestBody- properties of the port- Returns:
- the unique identifier (guid) of the created port
-
deletePort
public VoidResponse deletePort(String userId, String serverName, DeleteRequestBody requestBody, String portType)
Delete the Port with the associated schema type and relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the portportType- the type of the port- Returns:
- void response
-
deletePort
public void deletePort(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, String portType, DeleteSemantic deleteSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, FunctionNotSupportedException, EntityNotDeletedException
Delete the Port with the associated schema type and relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the portqualifiedName- the qualified name of the portportType- the port typedeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.EntityNotDeletedException- the entity could not be deleted
-
addProcessHierarchy
public GUIDResponse addProcessHierarchy(String userId, String serverName, ProcessHierarchyRequestBody processHierarchyRequestBody)
Add the provided ProcessHierarchy relationship- Parameters:
serverName- name of server instance to calluserId- the name of the calling userprocessHierarchyRequestBody- properties of the process hierarchy- Returns:
- the unique identifier (guid) of the child of the process hierarchy that was updated
-
upsertProcess
public GUIDResponse upsertProcess(String userId, String serverName, ProcessRequestBody processRequestBody)
Create or update the process with ports, schema types and lineage mappings- Parameters:
userId- the name of the calling userserverName- name of server instance to callprocessRequestBody- properties of the process- Returns:
- a list unique identifiers (GUIDs) of the created/updated process
-
deleteProcess
public VoidResponse deleteProcess(String userId, String serverName, DeleteRequestBody requestBody)
Delete a process, with the associated port implementations, port aliases and lineage mappings- Parameters:
userId- the name of the calling userserverName- name of server instance to callrequestBody- properties of the processes- Returns:
- void response
-
deleteProcess
public void deleteProcess(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, FunctionNotSupportedException, EntityNotDeletedException
-
upsertPortAliasWithDelegation
public String upsertPortAliasWithDelegation(String userId, String serverName, PortAlias portAlias, String processGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Create or update a Port Alias with a PortDelegation relationship- Parameters:
userId- the name of the calling userserverName- name of server instance to callportAlias- the port alias valuesprocessGUID- the unique identifier of the processexternalSourceName- the unique name of the external source- Returns:
- the unique identifier (guid) of the created port alias
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
addProcessHierarchyToProcess
public String addProcessHierarchyToProcess(String userId, String serverName, ProcessHierarchy processHierarchy, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Add a a ProcessHierarchy relationship to the process- Parameters:
userId- the name of the calling userserverName- name of server instance to callprocessHierarchy- the process hierarchy valuesexternalSourceName- the unique name of the external source- Returns:
- the unique identifier (guid) of the child of the process hierarchy that was updated
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
upsertPortImplementation
public String upsertPortImplementation(String userId, String serverName, PortImplementation portImplementation, String processGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, FunctionNotSupportedException
Create or update a Port Implementation with an associated SchemaType- Parameters:
userId- the name of the calling userserverName- name of server instance to callportImplementation- the port implementation valuesprocessGUID- the unique identifier of the processexternalSourceName- the unique name of the external source- Returns:
- the unique identifier (guid) of the created port alias
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.
-
createExternalDataEngine
public String createExternalDataEngine(String userId, String serverName, SoftwareServerCapability softwareServerCapability) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Create the external data engine as software server capability entity- Parameters:
userId- the name of the calling userserverName- name of server instance to callsoftwareServerCapability- the software server values- Returns:
- he unique identifier (guid) of the created external data engine
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
addLineageMappings
public void addLineageMappings(String userId, String serverName, List<LineageMapping> lineageMappings, FFDCResponseBase response, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Create LineageMappings relationships between schema attributes- Parameters:
userId- the name of the calling userserverName- name of server instance to calllineageMappings- the list of lineage mappings to be createdresponse- the response object that will capture the exceptions that might occur during parallel processingexternalSourceName- the unique name of the external source- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
addLineageMappings
public VoidResponse addLineageMappings(String userId, String serverName, LineageMappingsRequestBody lineageMappingsRequestBody)
Create LineageMappings relationships between schema attributes- Parameters:
userId- the name of the calling userserverName- ame of server instance to calllineageMappingsRequestBody- list of lineage mappings- Returns:
- void response
-
getInTopicConnection
public ConnectionResponse getInTopicConnection(String serverName, String userId)
Retrieve in topic connection details from the service instance hosting Data Engine access service- Parameters:
serverName- the name of server instance to calluserId- the name/identifier of the calling user- Returns:
- OCF API ConnectionResponse object describing the details for the input topic connection used or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException problem retrieving the discovery engine definition
-
upsertSchemaType
public String upsertSchemaType(String userId, String serverName, String portImplementationGUID, SchemaType schemaType, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create or update a SchemaType- Parameters:
userId- the name of the calling userserverName- name of server instance to callportImplementationGUID- the unique identifier of the port implementationschemaType- the schema type valuesexternalSourceName- the unique name of the external source- Returns:
- the unique identifier (guid) of the created schema type
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
upsertDatabase
public GUIDResponse upsertDatabase(String userId, String serverName, DatabaseRequestBody databaseRequestBody)
Create or update the Database with corresponding associated schema type and relationship- Parameters:
serverName- name of server instance to calluserId- the name of the calling userdatabaseRequestBody- properties of the database- Returns:
- the unique identifier (guid) of the created database
-
upsertDatabase
public String upsertDatabase(String userId, String serverName, Database database, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create or update the Database with corresponding associated schema type and relationship- Parameters:
userId- the name of the calling userserverName- name of server instance to calldatabase- the database valuesexternalSourceName- the unique name of the external source- Returns:
- the unique identifier (guid) of the created database
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
deleteDatabase
public VoidResponse deleteDatabase(String userId, String serverName, DeleteRequestBody requestBody)
Delete the Database with all the associated relational tables- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the database- Returns:
- void response
-
deleteDatabase
public void deleteDatabase(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, EntityNotDeletedException, FunctionNotSupportedException
Delete the Database with all the associated relational tables- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the databasequalifiedName- the qualified name of the databasedeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.EntityNotDeletedException- the entity could not be deleted
-
upsertRelationalTable
public GUIDResponse upsertRelationalTable(String userId, String serverName, RelationalTableRequestBody relationalTableRequestBody)
Create the Relational Table with Relational Columns and corresponding relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrelationalTableRequestBody- properties of the relational table- Returns:
- the unique identifier (guid) of the created relational table
-
upsertRelationalTable
public String upsertRelationalTable(String userId, String serverName, String databaseQualifiedName, RelationalTable relationalTable, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create the Relational Table with Relational Columns and corresponding relationships- Parameters:
userId- the name of the calling userserverName- name of server instance to calldatabaseQualifiedName- the unique name of the databaserelationalTable- the relational table valuesexternalSourceName- the unique name of the external source- Returns:
- the unique identifier (guid) of the created relational table
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
deleteRelationalTable
public VoidResponse deleteRelationalTable(String userId, String serverName, DeleteRequestBody requestBody)
Delete the Relational Table with all the associated Relational Columns- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the relational table- Returns:
- void response
-
deleteRelationalTable
public void deleteRelationalTable(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, EntityNotDeletedException, FunctionNotSupportedException
Delete the Relational Table with all the associated Relational Columns- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the relational tablequalifiedName- the qualified name of the relational tabledeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.EntityNotDeletedException- the entity could not be deleted
-
upsertDataFile
public GUIDResponse upsertDataFile(String serverName, String userId, DataFileRequestBody dataFileRequestBody)
Updates or inserts a DataFile or CSVFile, along with its schema, columns and folder hierarchy- Parameters:
userId- the name of the calling userserverName- name of server instance to calldataFileRequestBody- properties of the data file- Returns:
- the unique identifier (guid) of the created data file
-
upsertDataFile
public String upsertDataFile(String userId, String serverName, DataFile file, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Updates or inserts a DataFile or CSVFile, along with its schema, columns and folder hierarchy- Parameters:
userId- the name of the calling userserverName- name of server instance to callfile- the data file propertiesexternalSourceName- the unique name of the external source- Returns:
- the unique identifier (guid) of the created data file
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
deleteDataFile
public VoidResponse deleteDataFile(String userId, String serverName, DeleteRequestBody requestBody)
Delete the Data File with all the associated Tabular Columns- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the data file- Returns:
- void response
-
deleteDataFile
public void deleteDataFile(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, EntityNotDeletedException, UserNotAuthorizedException, FunctionNotSupportedException
Delete the Data File with all the associated Tabular Columns- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the data filequalifiedName- the qualified name of the data filedeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.EntityNotDeletedException- the entity could not be deleted
-
deleteFolder
public VoidResponse deleteFolder(String userId, String serverName, DeleteRequestBody requestBody)
Delete the File Folder- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the folder- Returns:
- void response
-
deleteFolder
public void deleteFolder(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, EntityNotDeletedException, FunctionNotSupportedException
Delete the File Folder- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the folderqualifiedName- the qualified name of the folderdeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this callEntityNotDeletedException- the entity could not be deleted
-
deleteConnection
public VoidResponse deleteConnection(String userId, String serverName, DeleteRequestBody requestBody)
Delete the Connection- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the connection- Returns:
- void response
-
deleteConnection
public void deleteConnection(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, EntityNotDeletedException, UserNotAuthorizedException, FunctionNotSupportedException
Delete the Connection- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the connectionqualifiedName- the qualified name of the connectiondeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.EntityNotDeletedException- the entity could not be deleted
-
deleteEndpoint
public VoidResponse deleteEndpoint(String userId, String serverName, DeleteRequestBody requestBody)
Delete the Endpoint- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the endpoint- Returns:
- void response
-
deleteEndpoint
public void deleteEndpoint(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, EntityNotDeletedException, UserNotAuthorizedException, FunctionNotSupportedException
Delete the Endpoint- Parameters:
serverName- name of server instance to calluserId- the name of the calling userexternalSourceName- the unique name of the external sourceguid- the unique identifier of the endpointqualifiedName- the qualified name of the endpointdeleteSemantic- the delete semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.EntityNotDeletedException- the entity could not be deleted
-
updateProcessStatus
public VoidResponse updateProcessStatus(String userId, String serverName, String processGUID, InstanceStatus instanceStatus, String externalSourceName)
-
upsertProcess
public GUIDResponse upsertProcess(String userId, String serverName, Process process, String externalSourceName)
Create the process with ports, schema types and lineage mappings- Parameters:
serverName- name of server instance to calluserId- the name of the calling userprocess- properties of the process- Returns:
- the unique identifier (guid) of the created process
-
-