public class DataEngineImpl extends OCFRESTClient implements DataEngineClient
serverPlatformURLRoot| Constructor and Description |
|---|
DataEngineImpl(String serverName,
String serverPlatformRootURL)
Create a new client without authentication.
|
DataEngineImpl(String serverName,
String serverPlatformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLineageMappings(String userId,
List<LineageMapping> lineageMappings)
Add lineage mapping relationships between schema types
|
void |
addPortsToProcess(String userId,
List<String> portGUIDs,
String processGUID)
Add ports and process ports relationship to an existing port
|
String |
createExternalDataEngine(String userId,
SoftwareServerCapability softwareServerCapability)
Create or update the software server capability entity
|
String |
createExternalDataEngine(String userId,
String qualifiedName,
String name,
String description,
String type,
String version,
String patchLevel,
String source)
Create or update the software server capability entity
|
String |
createOrUpdatePortAlias(String userId,
PortAlias portAlias)
Create or update the port alias entity with a PortDelegation relationship
|
String |
createOrUpdatePortAlias(String userId,
String qualifiedName,
String displayName,
PortType portType,
String delegatesTo)
Create or update the port alias entity with a PortDelegation relationship
|
String |
createOrUpdatePortImplementation(String userId,
PortImplementation portImplementation)
Create or update the port implementation entity,with the corresponding schema type and port schema relationship
|
String |
createOrUpdatePortImplementation(String userId,
String qualifiedName,
String displayName,
PortType portType,
SchemaType schemaType)
Create or update the port implementation entity, with the corresponding schema type and port schema relationship.
|
String |
createOrUpdatePortImplementation(String userId,
String qualifiedName,
String displayName,
PortType portType,
SchemaType schemaType,
UpdateSemantic updateSemantic)
Create or update the port implementation entity, with the corresponding schema type and port schema relationship
|
String |
createOrUpdateProcess(String userId,
Process process)
Create or update the process, with all the ports, schema types and corresponding relationships
|
String |
createOrUpdateProcess(String userId,
String qualifiedName,
String processName,
String description,
String latestChange,
List<String> zoneMembership,
String displayName,
String formula,
String owner,
OwnerType ownerType,
List<PortImplementation> portImplementations,
List<PortAlias> portAliases,
List<LineageMapping> lineageMappings)
Create or update the process, with all the ports, schema types and corresponding relationships.
|
String |
createOrUpdateProcess(String userId,
String qualifiedName,
String processName,
String description,
String latestChange,
List<String> zoneMembership,
String displayName,
String formula,
String owner,
OwnerType ownerType,
List<PortImplementation> portImplementations,
List<PortAlias> portAliases,
List<LineageMapping> lineageMappings,
UpdateSemantic updateSemantic)
Create or update the process, with all the ports, schema types and corresponding relationships
|
List<String> |
createOrUpdateProcesses(String userId,
List<Process> processes)
Create or update the processes, with all the ports, schema types and corresponding relationships
|
String |
createOrUpdateSchemaType(String userId,
SchemaType schemaType)
Create or update the schema type entity, with the corresponding schema attributes and relationships
|
String |
createOrUpdateSchemaType(String userId,
String qualifiedName,
String displayName,
String author,
String encodingStandard,
String usage,
String versionNumber,
List<Attribute> attributeList)
Create or update the schema type entity, with the corresponding schema attributes and relationships
|
String |
getExternalSourceName() |
void |
setExternalSourceName(String externalSourceName) |
callAssetGetRESTCall, callAssetsGetRESTCall, callAssetsPostRESTCall, callConnectionGetRESTCall, callSchemaTypeGetRESTCall, callTagGetRESTCall, callTagListGetRESTCall, callTagListPostRESTCallcallCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callVoidPostRESTCallcallGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCallNoParamspublic DataEngineImpl(String serverName, String serverPlatformRootURL) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversInvalidParameterException - null URL or server namepublic DataEngineImpl(String serverName, String serverPlatformRootURL, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - null URL or server namepublic String getExternalSourceName()
public void setExternalSourceName(String externalSourceName)
public String createOrUpdateProcess(String userId, String qualifiedName, String processName, String description, String latestChange, List<String> zoneMembership, String displayName, String formula, String owner, OwnerType ownerType, List<PortImplementation> portImplementations, List<PortAlias> portAliases, List<LineageMapping> lineageMappings, UpdateSemantic updateSemantic) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException
DataEngineClientcreateOrUpdateProcess in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualifiedName name of the processprocessName - the name of the processdescription - the description of the processlatestChange - the description for the latest change done for the processzoneMembership - the list of zones of the processdisplayName - the display name of the processformula - the formula for the processowner - the name of the owner for this processownerType - the type of the owner for this processportImplementations - the list of port implementationsportAliases - the list of port aliaseslineageMappings - the list of lineage mappingsupdateSemantic - the update type for the processPropertyServerException - problem accessing the property serverInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestpublic String createOrUpdateProcess(String userId, String qualifiedName, String processName, String description, String latestChange, List<String> zoneMembership, String displayName, String formula, String owner, OwnerType ownerType, List<PortImplementation> portImplementations, List<PortAlias> portAliases, List<LineageMapping> lineageMappings) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException
DataEngineClientcreateOrUpdateProcess in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualifiedName name of the processprocessName - the name of the processdescription - the description of the processlatestChange - the description for the latest change done for the processzoneMembership - the list of zones of the processdisplayName - the display name of the processformula - the formula for the processowner - the name of the owner for this processownerType - the type of the owner for this processportImplementations - the list of port implementationsportAliases - the list of port aliaseslineageMappings - the list of lineage mappingsPropertyServerException - problem accessing the property serverInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestUpdateSemanticpublic String createOrUpdateProcess(String userId, Process process) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
DataEngineClientcreateOrUpdateProcess in interface DataEngineClientuserId - the name of the calling userprocess - the process beanInvalidParameterException - the bean properties are
invalidPropertyServerException - problem accessing the property serverUserNotAuthorizedException - user not authorized to issue this requestpublic List<String> createOrUpdateProcesses(String userId, List<Process> processes) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
DataEngineClientcreateOrUpdateProcesses in interface DataEngineClientuserId - the name of the calling userprocesses - list of processesInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverUserNotAuthorizedException - user not authorized to issue this requestpublic String createExternalDataEngine(String userId, String qualifiedName, String name, String description, String type, String version, String patchLevel, String source) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientcreateExternalDataEngine in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualifiedName name of the servername - the name of the serverdescription - the description of the servertype - the type of the serverversion - the version of the serverpatchLevel - the patch level of the serversource - the source of the serverInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createExternalDataEngine(String userId, SoftwareServerCapability softwareServerCapability) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientcreateExternalDataEngine in interface DataEngineClientuserId - the name of the calling usersoftwareServerCapability - the software server capability beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createOrUpdateSchemaType(String userId, String qualifiedName, String displayName, String author, String encodingStandard, String usage, String versionNumber, List<Attribute> attributeList) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
DataEngineClientcreateOrUpdateSchemaType in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualifiedName name of the schema typedisplayName - the display name of the schema typeauthor - the author of the schema typeencodingStandard - the encoding for the schema typeusage - the usage for the schema typeversionNumber - the version number for the schema typeattributeList - the list of attributes for the schema typeInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverUserNotAuthorizedException - user not authorized to issue this requestpublic String createOrUpdateSchemaType(String userId, SchemaType schemaType) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
DataEngineClientcreateOrUpdateSchemaType in interface DataEngineClientuserId - the name of the calling userschemaType - the schema type beanInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverUserNotAuthorizedException - user not authorized to issue this requestpublic String createOrUpdatePortImplementation(String userId, String qualifiedName, String displayName, PortType portType, SchemaType schemaType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientcreateOrUpdatePortImplementation in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualifiedName name of the portdisplayName - the display name of the portportType - the type of the portschemaType - the schema type attached to the port implementationInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverUpdateSemanticpublic String createOrUpdatePortImplementation(String userId, String qualifiedName, String displayName, PortType portType, SchemaType schemaType, UpdateSemantic updateSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientcreateOrUpdatePortImplementation in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualifiedName name of the portdisplayName - the display name of the portportType - the type of the portschemaType - the schema type attached to the port implementationupdateSemantic - the update type for the schema typeInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createOrUpdatePortImplementation(String userId, PortImplementation portImplementation) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientcreateOrUpdatePortImplementation in interface DataEngineClientuserId - the name of the calling userportImplementation - the port implementation beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createOrUpdatePortAlias(String userId, String qualifiedName, String displayName, PortType portType, String delegatesTo) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientcreateOrUpdatePortAlias in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualifiedName name of the portdisplayName - the display name of the portportType - the type of the portdelegatesTo - the qualified name of the delegated portInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createOrUpdatePortAlias(String userId, PortAlias portAlias) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientcreateOrUpdatePortAlias in interface DataEngineClientuserId - the name of the calling userportAlias - the port alias beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addLineageMappings(String userId, List<LineageMapping> lineageMappings) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientaddLineageMappings in interface DataEngineClientuserId - the name of the calling userlineageMappings - list of lineage mappingsInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addPortsToProcess(String userId, List<String> portGUIDs, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
DataEngineClientaddPortsToProcess in interface DataEngineClientuserId - the name of the calling userportGUIDs - the list of port GUIDsprocessGUID - the process GUYIDInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2019 ODPi. All rights reserved.