public class PlatformServicesClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AuditLog |
auditLog |
protected InvalidParameterHandler |
invalidParameterHandler |
protected String |
platformName |
protected String |
platformRootURL |
| Constructor and Description |
|---|
PlatformServicesClient(String platformName,
String platformRootURL)
Create a new client with no authentication embedded in the HTTP request.
|
PlatformServicesClient(String platformName,
String platformRootURL,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
PlatformServicesClient(String platformName,
String platformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
PlatformServicesClient(String platformName,
String platformRootURL,
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 |
|---|---|
List<RegisteredOMAGService> |
getAccessServices(String userId)
Retrieve a list of the access services registered on the platform
|
List<String> |
getActiveServers(String userId)
Retrieve a list of the active servers on the platform
|
List<String> |
getActiveServices(String userId,
String serverName)
Retrieve a list of the active services on a server
|
List<RegisteredOMAGService> |
getCommonServices(String userId)
Retrieve a list of the common services registered on the platform
|
List<RegisteredOMAGService> |
getGovernanceServices(String userId)
Retrieve a list of the governance services registered on the platform
|
List<String> |
getKnownServers(String userId)
Retrieve a list of the known servers on the platform
|
String |
getPlatformOrigin(String userId)
Retrieve the platform origin
|
ServerStatus |
getServerStatus(String userId,
String serverName)
Retrieve the server status
|
List<RegisteredOMAGService> |
getViewServices(String userId)
Retrieve a list of the access services registered on the platform
|
protected String platformName
protected String platformRootURL
protected AuditLog auditLog
protected InvalidParameterHandler invalidParameterHandler
public PlatformServicesClient(String platformName, String platformRootURL, AuditLog auditLog) throws InvalidParameterException
platformName - name of the platform to connect toplatformRootURL - the network address of the server running the OMAG PlatformauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public PlatformServicesClient(String platformName, String platformRootURL) throws InvalidParameterException
platformName - name of the platform to connect toplatformRootURL - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public PlatformServicesClient(String platformName, String platformRootURL, String userId, String password, AuditLog auditLog) throws InvalidParameterException
platformName - name of the platform to connect toplatformRootURL - the network address of the platformuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public PlatformServicesClient(String platformName, String platformRootURL, String userId, String password) throws InvalidParameterException
platformName - name of the server to connect toplatformRootURL - the network address of the platformuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public String getPlatformOrigin(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public ServerStatus getServerStatus(String userId, String serverName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userserverName - the name of the serverInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<String> getActiveServices(String userId, String serverName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userserverName - name of the serverInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<String> getActiveServers(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<String> getKnownServers(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<RegisteredOMAGService> getAccessServices(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<RegisteredOMAGService> getViewServices(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<RegisteredOMAGService> getGovernanceServices(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<RegisteredOMAGService> getCommonServices(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2020 ODPi. All rights reserved.