Class AvroFileAssetOwner
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
-
- org.odpi.openmetadata.accessservices.assetowner.client.AssetOwner
-
- org.odpi.openmetadata.accessservices.assetowner.client.AvroFileAssetOwner
-
- All Implemented Interfaces:
AssetClassificationInterface,AssetConnectionManagementInterface,AssetDecommissioningInterface,AssetKnowledgeInterface,AssetOnboardingAvroFileInterface,AssetOnboardingInterface,AssetReviewInterface,ConnectorFactoryInterface
public class AvroFileAssetOwner extends AssetOwner implements AssetOnboardingAvroFileInterface
AvroFileAssetOwner provides specialist methods for working with Avro files. This includes accessing the file and attempting to read the schema to catalog its internal structure. The file is opened client-side so that the metadata server does not need access to the file contents.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.accessservices.assetowner.client.AssetOwner
restClient
-
Fields inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
auditLog, invalidParameterHandler, nullRequestBody, serverName, serverPlatformURLRoot
-
-
Constructor Summary
Constructors Constructor Description AvroFileAssetOwner(String serverName, String serverPlatformURLRoot)Create a new client with no authentication embedded in the HTTP request.AvroFileAssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password)Create a new client that passes userId and password in each HTTP request.AvroFileAssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog)Create a new client that passes userId and password in each HTTP request.AvroFileAssetOwner(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient restClient, int maxPageSize, AuditLog auditLog)Create a new client that is going to be used in an OMAG Server (view service or integration service typically).AvroFileAssetOwner(String serverName, String serverPlatformURLRoot, AuditLog auditLog)Create a new client with no authentication embedded in the HTTP request and an audit log.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>addAvroFileToCatalog(String userId, String displayName, String description, String fullPath)Add a simple asset description linked to a connection object for a Avro file.-
Methods inherited from class org.odpi.openmetadata.accessservices.assetowner.client.AssetOwner
addAssetOrigin, addAssetToCatalog, addAssetToCatalog, addAssetToCatalogUsingTemplate, addCombinedSchemaToAsset, addConnectionToAsset, addSchemaAttribute, addSchemaAttributes, addSchemaTypeToAsset, addSecurityTags, addSemanticAssignment, addTemplateClassification, attachSchemaTypeToAsset, clearAssetConnection, clearConnectorType, clearEmbeddedConnection, clearEndpoint, createConnection, createConnectionFromTemplate, createEndpoint, createEndpointFromTemplate, deleteAsset, deleteAssetSchemaType, detachSchemaTypeFromAsset, findAssets, findConnections, findConnectorTypes, findEndpoints, getAssetProperties, getAssetsByName, getAssetSummary, getConnectionByGUID, getConnectionsByName, getConnectorToAsset, getConnectorTypeByGUID, getConnectorTypesByName, getDiscoveryAnalysisReports, getDiscoveryReportAnnotations, getEndpointByGUID, getEndpointsByName, getExtendedAnnotations, getTypesOfAnnotation, getTypesOfAnnotationWithDescriptions, getTypesOfAsset, getTypesOfAssetWithDescriptions, publishAsset, removeAssetOrigin, removeConnection, removeEndpoint, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, scanConnections, setupAssetConnection, setupConnectorType, setupEmbeddedConnection, setupEndpoint, updateAssetOwner, updateAssetOwner, updateAssetZones, updateConnection, updateEndpoint, withdrawAsset
-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
getAssetForConnection, getAssetProperties, getAssetSummary, getConnectionByGUID, getConnectionByName, getConnectionForAsset, getConnectorByConnection, getConnectorByGUID, getConnectorByName, getConnectorForAsset, getConnectorForConnection
-
-
-
-
Constructor Detail
-
AvroFileAssetOwner
public AvroFileAssetOwner(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
Create a new client with no authentication embedded in the HTTP request and an audit log.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversauditLog- logging destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AvroFileAssetOwner
public AvroFileAssetOwner(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servers- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AvroFileAssetOwner
public AvroFileAssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
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. There is also an audit log destination.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- 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 requestsauditLog- logging destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AvroFileAssetOwner
public AvroFileAssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
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.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- 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 requests- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AvroFileAssetOwner
public AvroFileAssetOwner(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
Create a new client that is going to be used in an OMAG Server (view service or integration service typically).- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversrestClient- client that issues the REST API callsmaxPageSize- maximum number of results supported by this serverauditLog- logging destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Detail
-
addAvroFileToCatalog
public List<String> addAvroFileToCatalog(String userId, String displayName, String description, String fullPath) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Add a simple asset description linked to a connection object for a Avro file.- Specified by:
addAvroFileToCatalogin interfaceAssetOnboardingAvroFileInterface- Parameters:
userId- calling user (assumed to be the owner)displayName- display name for the file in the catalogdescription- description of the file in the catalogfullPath- full path of the file - used to access the file through the connector- Returns:
- list of GUIDs from the top level to the root of the pathname
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
-