-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7967 from odttlnt/issue7857
Add framework clients to OMASs
- Loading branch information
Showing
55 changed files
with
1,653 additions
and
36 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
...src/main/java/org/odpi/openmetadata/accessservices/assetcatalog/ConnectedAssetClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
/* Copyright Contributors to the ODPi Egeria project. */ | ||
package org.odpi.openmetadata.accessservices.assetcatalog; | ||
|
||
import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException; | ||
import org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase; | ||
|
||
/** | ||
* ConnectedAssetClient manages the retrieval of connections, and the creation of resource connectors used to access the | ||
* content of data sources and services. | ||
*/ | ||
public class ConnectedAssetClient extends ConnectedAssetClientBase | ||
{ | ||
private final static String serviceURLMarker = "asset-catalog"; | ||
|
||
/** | ||
* Create a new client with no authentication embedded in the HTTP request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public ConnectedAssetClient(String serverName, | ||
String serverPlatformURLRoot) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot); | ||
} | ||
|
||
|
||
/** | ||
* Create a new client that passes userId and password in each HTTP request. This is the | ||
* userId/password of the calling server. The end user's userId is sent on each request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* @param serverUserId caller's userId embedded in all HTTP requests | ||
* @param serverPassword caller's userId embedded in all HTTP requests | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public ConnectedAssetClient(String serverName, | ||
String serverPlatformURLRoot, | ||
String serverUserId, | ||
String serverPassword) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot, serverUserId, serverPassword); | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
.../java/org/odpi/openmetadata/accessservices/assetconsumer/client/ConnectedAssetClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
/* Copyright Contributors to the ODPi Egeria project. */ | ||
package org.odpi.openmetadata.accessservices.assetconsumer.client; | ||
|
||
import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException; | ||
import org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase; | ||
|
||
/** | ||
* ConnectedAssetClient manages the retrieval of connections, and the creation of resource connectors used to access the | ||
* content of data sources and services. | ||
*/ | ||
public class ConnectedAssetClient extends ConnectedAssetClientBase | ||
{ | ||
private final static String serviceURLMarker = "asset-consumer"; | ||
|
||
/** | ||
* Create a new client with no authentication embedded in the HTTP request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public ConnectedAssetClient(String serverName, | ||
String serverPlatformURLRoot) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot); | ||
} | ||
|
||
|
||
/** | ||
* Create a new client that passes userId and password in each HTTP request. This is the | ||
* userId/password of the calling server. The end user's userId is sent on each request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* @param serverUserId caller's userId embedded in all HTTP requests | ||
* @param serverPassword caller's userId embedded in all HTTP requests | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public ConnectedAssetClient(String serverName, | ||
String serverPlatformURLRoot, | ||
String serverUserId, | ||
String serverPassword) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot, serverUserId, serverPassword); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...src/main/java/org/odpi/openmetadata/accessservices/assetlineage/ConnectedAssetClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
/* Copyright Contributors to the ODPi Egeria project. */ | ||
package org.odpi.openmetadata.accessservices.assetlineage; | ||
|
||
import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException; | ||
import org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase; | ||
|
||
/** | ||
* ConnectedAssetClient manages the retrieval of connections, and the creation of resource connectors used to access the | ||
* content of data sources and services. | ||
*/ | ||
public class ConnectedAssetClient extends ConnectedAssetClientBase | ||
{ | ||
private final static String serviceURLMarker = "community-profile"; | ||
|
||
/** | ||
* Create a new client with no authentication embedded in the HTTP request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public ConnectedAssetClient(String serverName, | ||
String serverPlatformURLRoot) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot); | ||
} | ||
|
||
|
||
/** | ||
* Create a new client that passes userId and password in each HTTP request. This is the | ||
* userId/password of the calling server. The end user's userId is sent on each request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* @param serverUserId caller's userId embedded in all HTTP requests | ||
* @param serverPassword caller's userId embedded in all HTTP requests | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public ConnectedAssetClient(String serverName, | ||
String serverPlatformURLRoot, | ||
String serverUserId, | ||
String serverPassword) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot, serverUserId, serverPassword); | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
.../main/java/org/odpi/openmetadata/accessservices/assetlineage/OpenMetadataStoreClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
/* Copyright Contributors to the ODPi Egeria project. */ | ||
package org.odpi.openmetadata.accessservices.assetlineage; | ||
|
||
import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException; | ||
import org.odpi.openmetadata.frameworkservices.gaf.client.OpenMetadataClientBase; | ||
|
||
/** | ||
* OpenMetadataClientBase provides an interface to the open metadata store. This is part of the Governance Action Framework (GAF) | ||
* and provides a comprehensive interface for working with all types of metadata, subject to the user's (and this OMAS's) security permissions. | ||
* The interface supports search, maintenance of metadata elements, classifications and relationships plus the ability to raise incident reports | ||
* and todos along with the ability to work with metadata valid values and translations. | ||
*/ | ||
public class OpenMetadataStoreClient extends OpenMetadataClientBase | ||
{ | ||
private final static String serviceURLMarker = "asset-lineage"; | ||
|
||
/** | ||
* Create a new client with no authentication embedded in the HTTP request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public OpenMetadataStoreClient(String serverName, | ||
String serverPlatformURLRoot) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot); | ||
} | ||
|
||
|
||
/** | ||
* Create a new client that passes userId and password in each HTTP request. This is the | ||
* userId/password of the calling server. The end user's userId is sent on each request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* @param serverUserId caller's userId embedded in all HTTP requests | ||
* @param serverPassword caller's password embedded in all HTTP requests | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public OpenMetadataStoreClient(String serverName, | ||
String serverPlatformURLRoot, | ||
String serverUserId, | ||
String serverPassword) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot, serverUserId, serverPassword); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...ain/java/org/odpi/openmetadata/accessservices/assetowner/client/ConnectedAssetClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
/* Copyright Contributors to the ODPi Egeria project. */ | ||
package org.odpi.openmetadata.accessservices.assetowner.client; | ||
|
||
import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException; | ||
import org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase; | ||
|
||
/** | ||
* ConnectedAssetClient manages the retrieval of connections, and the creation of resource connectors used to access the | ||
* content of data sources and services. | ||
*/ | ||
public class ConnectedAssetClient extends ConnectedAssetClientBase | ||
{ | ||
private final static String serviceURLMarker = "community-profile"; | ||
|
||
/** | ||
* Create a new client with no authentication embedded in the HTTP request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public ConnectedAssetClient(String serverName, | ||
String serverPlatformURLRoot) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot); | ||
} | ||
|
||
|
||
/** | ||
* Create a new client that passes userId and password in each HTTP request. This is the | ||
* userId/password of the calling server. The end user's userId is sent on each request. | ||
* | ||
* @param serverName name of the server to connect to | ||
* @param serverPlatformURLRoot the network address of the server running the OMAS REST services | ||
* @param serverUserId caller's userId embedded in all HTTP requests | ||
* @param serverPassword caller's userId embedded in all HTTP requests | ||
* | ||
* @throws InvalidParameterException there is a problem creating the client-side components to issue any | ||
* REST API calls. | ||
*/ | ||
public ConnectedAssetClient(String serverName, | ||
String serverPlatformURLRoot, | ||
String serverUserId, | ||
String serverPassword) throws InvalidParameterException | ||
{ | ||
super(serviceURLMarker, serverName, serverPlatformURLRoot, serverUserId, serverPassword); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.