public class MetadataSourceClient extends Object implements MetadataSourceInterface
| Constructor and Description |
|---|
MetadataSourceClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
MetadataSourceClient(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
MetadataSourceClient(String serverName,
String serverPlatformURLRoot,
CommunityProfileRESTClient restClient,
int maxPageSize)
Create a new client that passes userId and password in each HTTP request.
|
MetadataSourceClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
MetadataSourceClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMasterDataManagerClassification(String userId,
String metadataSourceGUID)
Update classification of the metadata source that is a master data manager for user profile information.
|
void |
addUserAccessDirectoryClassification(String userId,
String metadataSourceGUID)
Update classification of the metadata source that is providing a user access directory information
such as the groups and access rights of a user Id.
|
void |
addUserProfileManagerClassification(String userId,
String metadataSourceGUID)
Update classification of the metadata source as being capable if managing user profiles.
|
String |
createMetadataSource(String userId,
MetadataSourceProperties properties)
Create information about the metadata source that is providing user profile information.
|
MetadataSourceElement |
getMetadataSource(String userId,
String metadataSourceGUID)
Retrieve the properties of the software server capability that describes a metadata source.
|
String |
getMetadataSourceGUID(String userId,
String qualifiedName)
Retrieve the unique identifier of the software server capability that describes a metadata source.
|
public MetadataSourceClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - bad input parameterspublic MetadataSourceClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
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 requestsInvalidParameterException - bad input parameterspublic MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
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 destinationInvalidParameterException - bad input parameterspublic MetadataSourceClient(String serverName, String serverPlatformURLRoot, CommunityProfileRESTClient restClient, int maxPageSize) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - pre-initialized REST clientmaxPageSize - pre-initialized parameter limitInvalidParameterException - there is a problem with the information about the remote OMASpublic String createMetadataSource(String userId, MetadataSourceProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createMetadataSource in interface MetadataSourceInterfaceuserId - calling userproperties - description of the metadata sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String getMetadataSourceGUID(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getMetadataSourceGUID in interface MetadataSourceInterfaceuserId - calling userqualifiedName - unique name of the metadata sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic MetadataSourceElement getMetadataSource(String userId, String metadataSourceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getMetadataSource in interface MetadataSourceInterfaceuserId - calling usermetadataSourceGUID - unique identifier of the metadata sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addUserProfileManagerClassification(String userId, String metadataSourceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addUserProfileManagerClassification in interface MetadataSourceInterfaceuserId - calling usermetadataSourceGUID - unique identifier of the metadata sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addUserAccessDirectoryClassification(String userId, String metadataSourceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addUserAccessDirectoryClassification in interface MetadataSourceInterfaceuserId - calling usermetadataSourceGUID - unique identifier of the metadata sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addMasterDataManagerClassification(String userId, String metadataSourceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addMasterDataManagerClassification in interface MetadataSourceInterfaceuserId - calling usermetadataSourceGUID - unique identifier of the metadata sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.