Class AuditableDiscoveryService

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, OpenDiscoveryService
Direct Known Subclasses:
CSVDiscoveryService, DuplicateSuspectDiscoveryService

public abstract class AuditableDiscoveryService extends DiscoveryService
AuditableDiscoveryService is a base class for discovery services that wish to use the audit log.
  • Constructor Details

    • AuditableDiscoveryService

      public AuditableDiscoveryService()
  • Method Details

    • logNoAsset

      protected void logNoAsset(String assetGUID, String methodName) throws ConnectorCheckedException
      Log that no asset has been returned to the discovery service. It is unable to proceed without this basic information.
      Parameters:
      assetGUID - the unique identifier of the asset from the discovery context
      methodName - calling method
      Throws:
      ConnectorCheckedException - resulting exception
    • logWrongTypeOfAsset

      protected void logWrongTypeOfAsset(String assetGUID, String assetType, String supportedAssetType, String methodName) throws ConnectorCheckedException
      Log that the discovery service can not process the type of asset it has been passed.
      Parameters:
      assetGUID - identifier of the asset
      assetType - type of the asset
      supportedAssetType - supported asset types
      methodName - calling method
      Throws:
      ConnectorCheckedException - resulting exception
    • getAssetTypeName

      protected String getAssetTypeName(AssetUniverse asset, String methodName) throws ConnectorCheckedException
      Return the type name for the asset. An exception is thrown if the type name is not available.
      Parameters:
      asset - asset universe
      methodName - calling method
      Returns:
      asset's type name
      Throws:
      ConnectorCheckedException - resulting exception
    • getNetworkAddresses

      protected List<String> getNetworkAddresses(AssetUniverse asset)
      Return the network address of this asset.
      Parameters:
      asset - asset to extract address from
      Returns:
      the list of network addresses