java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
All Implemented Interfaces:
org.odpi.openmetadata.accessservices.assetowner.api.AssetClassificationInterface, org.odpi.openmetadata.accessservices.assetowner.api.AssetCollectionInterface, org.odpi.openmetadata.accessservices.assetowner.api.AssetConnectionManagementInterface, org.odpi.openmetadata.accessservices.assetowner.api.AssetDecommissioningInterface, org.odpi.openmetadata.accessservices.assetowner.api.AssetKnowledgeInterface, org.odpi.openmetadata.accessservices.assetowner.api.AssetOnboardingCSVFileInterface, org.odpi.openmetadata.accessservices.assetowner.api.AssetOnboardingInterface, org.odpi.openmetadata.accessservices.assetowner.api.AssetReviewInterface, org.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface, org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.api.ConnectorFactoryInterface

public class CSVFileAssetOwner extends AssetOwner implements org.odpi.openmetadata.accessservices.assetowner.api.AssetOnboardingCSVFileInterface
CSVFileAssetOwner provides specialist methods for working with CSV files.
  • Constructor Details

    • CSVFileAssetOwner

      public CSVFileAssetOwner(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • CSVFileAssetOwner

      public CSVFileAssetOwner(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • CSVFileAssetOwner

      public CSVFileAssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • CSVFileAssetOwner

      public CSVFileAssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • CSVFileAssetOwner

      public CSVFileAssetOwner(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient restClient, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      restClient - client that issues the REST API calls
      maxPageSize - maximum number of results supported by this server
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
  • Method Details

    • addCSVFileToCatalog

      public List<String> addCSVFileToCatalog(String userId, String displayName, String description, String fullPath) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Add a simple asset description linked to a connection object for a CSV file.
      Specified by:
      addCSVFileToCatalog in interface org.odpi.openmetadata.accessservices.assetowner.api.AssetOnboardingCSVFileInterface
      Parameters:
      userId - calling user (assumed to be the owner)
      displayName - display name for the file in the catalog
      description - description of the file in the catalog
      fullPath - 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:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - full path or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • addCSVFileToCatalog

      public List<String> addCSVFileToCatalog(String userId, String displayName, String description, String fullPath, List<String> columnHeaders, Character delimiterCharacter, Character quoteCharacter) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Add a simple asset description linked to a connection object for a CSV file.
      Specified by:
      addCSVFileToCatalog in interface org.odpi.openmetadata.accessservices.assetowner.api.AssetOnboardingCSVFileInterface
      Parameters:
      userId - calling user (assumed to be the owner)
      displayName - display name for the file in the catalog
      description - description of the file in the catalog
      fullPath - full path of the file - used to access the file through the connector
      columnHeaders - does the first line of the file contain the column names. If not pass the list of column headers.
      delimiterCharacter - what is the delimiter character - null for default of comma
      quoteCharacter - what is the character to group a field that contains delimiter characters
      Returns:
      list of GUIDs from the top level to the root of the pathname
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - full path or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem