java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.client.CommunityProfileBaseClient
org.odpi.openmetadata.accessservices.communityprofile.client.MetadataSourceClient
All Implemented Interfaces:
org.odpi.openmetadata.accessservices.communityprofile.api.MetadataSourceInterface, org.odpi.openmetadata.accessservices.communityprofile.api.RelatedElementsManagementInterface

public class MetadataSourceClient extends CommunityProfileBaseClient implements org.odpi.openmetadata.accessservices.communityprofile.api.MetadataSourceInterface
MetadataSourceClient is the client for setting up the SoftwareServerCapabilities that represent metadata sources that supply information relating to people and organizations. It is used by the Organization Integrator OMIS to create the metadata source. It can also be used to properly classify the metadata source entity to clarify whether it is a:
  • User Profile Manager - authoritative source of profile (people and organizations) information.
  • User Access Directory - authoritative source of user identity information.
  • Master Data Manager - authoritative source of profile (people and organizations) information aggregated and managed from many systems.
  • Constructor Details

    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, int maxPageSize) 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
      maxPageSize - maximum value allowed for page size
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - bad input parameters
    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) 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
      auditLog - logging destination
      maxPageSize - maximum value allowed for page size
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) 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
      maxPageSize - maximum value allowed for page size
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - bad input parameters
    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) 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
      auditLog - logging destination
      maxPageSize - maximum value allowed for page size
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - bad input parameters
    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, CommunityProfileRESTClient restClient, int maxPageSize) 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
      restClient - pre-initialized REST client
      maxPageSize - pre-initialized parameter limit
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem with the information about the remote OMAS
  • Method Details

    • createMetadataSource

      public String createMetadataSource(String userId, org.odpi.openmetadata.accessservices.communityprofile.properties.MetadataSourceProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create information about the metadata source that is providing user profile information.
      Specified by:
      createMetadataSource in interface org.odpi.openmetadata.accessservices.communityprofile.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      properties - description of the metadata source
      Returns:
      unique identifier of the user profile manager's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • getMetadataSourceGUID

      public String getMetadataSourceGUID(String userId, String qualifiedName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the unique identifier of the software server capability that describes a metadata source. This could be a user profile manager, user access directory and/or a master data manager.
      Specified by:
      getMetadataSourceGUID in interface org.odpi.openmetadata.accessservices.communityprofile.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      qualifiedName - unique name of the metadata source
      Returns:
      unique identifier of the integration daemon's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • getMetadataSource

      public org.odpi.openmetadata.accessservices.communityprofile.metadataelements.MetadataSourceElement getMetadataSource(String userId, String metadataSourceGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the properties of the software server capability that describes a metadata source. This could be a user profile manager, user access directory and/or a master data manager.
      Specified by:
      getMetadataSource in interface org.odpi.openmetadata.accessservices.communityprofile.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      metadataSourceGUID - unique identifier of the metadata source
      Returns:
      unique identifier of the integration daemon's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • addUserProfileManagerClassification

      public void addUserProfileManagerClassification(String userId, String metadataSourceGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Update classification of the metadata source as being capable if managing user profiles.
      Specified by:
      addUserProfileManagerClassification in interface org.odpi.openmetadata.accessservices.communityprofile.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      metadataSourceGUID - unique identifier of the metadata source
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • addUserAccessDirectoryClassification

      public void addUserAccessDirectoryClassification(String userId, String metadataSourceGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Update classification of the metadata source that is providing a user access directory information such as the groups and access rights of a userId.
      Specified by:
      addUserAccessDirectoryClassification in interface org.odpi.openmetadata.accessservices.communityprofile.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      metadataSourceGUID - unique identifier of the metadata source
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • addMasterDataManagerClassification

      public void addMasterDataManagerClassification(String userId, String metadataSourceGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Update classification of the metadata source that is a master data manager for user profile information.
      Specified by:
      addMasterDataManagerClassification in interface org.odpi.openmetadata.accessservices.communityprofile.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      metadataSourceGUID - unique identifier of the metadata source
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server