public class MetadataHighwayServicesClient extends Object implements AuditLoggingComponent
| Constructor and Description |
|---|
MetadataHighwayServicesClient(String serverName,
String restURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
MetadataHighwayServicesClient(String serverName,
String restURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
List<CohortDescription> |
getCohortDescriptions(String userId)
Returns the descriptions of all cohorts the server is a member of.
|
MemberRegistration |
getLocalRegistration(String serverName,
String userId,
String cohortName)
Returns the registration of the local server in the specified cohort
|
List<MemberRegistration> |
getRemoteRegistrations(String serverName,
String userId,
String cohortName)
Returns the remote member registrations seen by the local server in the specified cohort
|
void |
setAuditLog(AuditLog auditLog)
Receive an audit log object that can be used to record audit log messages.
|
protected AuditLog auditLog
public MetadataHighwayServicesClient(String serverName, String restURLRoot) throws InvalidParameterException
serverName - the name of the remote serverrestURLRoot - the network address of the server running the repository services. This is of the form
serverURLroot + "/servers/" + serverName.InvalidParameterException - bad input parameterspublic MetadataHighwayServicesClient(String serverName, String restURLRoot, String userId, String password) throws InvalidParameterException
serverName - the name of the remote serverrestURLRoot - the network address of the server running the repository services. This is of the form
serverURLroot + "/servers/" + serverName.userId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - bad input parameterspublic void setAuditLog(AuditLog auditLog)
setAuditLog in interface AuditLoggingComponentauditLog - audit log objectpublic List<CohortDescription> getCohortDescriptions(String userId) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
userId - calling userInvalidParameterException - one of the supplied parameters caused a problemRepositoryErrorException - there is a problem communicating with the remote server.UserNotAuthorizedException - the user is not authorized to perform the operation requestedpublic MemberRegistration getLocalRegistration(String serverName, String userId, String cohortName) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
serverName - the name of the serveruserId - calling usercohortName - the name of the cohortInvalidParameterException - one of the supplied parameters caused a problemRepositoryErrorException - there is a problem communicating with the remote server.UserNotAuthorizedException - the user is not authorized to perform the operation requestedpublic List<MemberRegistration> getRemoteRegistrations(String serverName, String userId, String cohortName) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
serverName - the name of the serveruserId - calling usercohortName - the name of the cohortInvalidParameterException - one of the supplied parameters caused a problemRepositoryErrorException - there is a problem communicating with the remote server.UserNotAuthorizedException - the user is not authorized to perform the operation requestedCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.