public class CertificationManager extends Object implements CertificationManagementInterface
| Constructor and Description |
|---|
CertificationManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
CertificationManager(String serverName,
String serverPlatformURLRoot,
GovernanceProgramRESTClient restClient,
int maxPageSize)
Create a new client that uses the supplied rest client.
|
CertificationManager(String serverName,
String serverPlatformURLRoot,
int maxPageSize,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
CertificationManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
CertificationManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
int maxPageSize,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
certifyElement(String userId,
String elementGUID,
String certificationTypeGUID,
CertificationProperties properties)
Link an element to a certification type and include details of the certification in the relationship properties.
|
String |
createCertificationType(String userId,
CertificationTypeProperties properties)
Create a description of the certification type.
|
void |
decertifyElement(String userId,
String elementGUID,
String certificationTypeGUID,
String certificateId)
Remove the certification for an element.
|
void |
deleteCertificationType(String userId,
String certificationTypeGUID)
Delete the properties of the certification type.
|
CertificationTypeElement |
getCertificationTypeByDocId(String userId,
String documentIdentifier)
Retrieve the certification type by its assigned unique document identifier.
|
List<CertificationTypeElement> |
getCertificationTypeByDomainId(String userId,
int domainIdentifier,
int startFrom,
int pageSize)
Retrieve all of the certification type definitions for a specific governance domain.
|
CertificationTypeElement |
getCertificationTypeByGUID(String userId,
String certificationTypeGUID)
Retrieve the certification type by the unique identifier assigned by this service when it was created.
|
List<CertificationTypeElement> |
getCertificationTypesByTitle(String userId,
String title,
int startFrom,
int pageSize)
Retrieve all of the certification types for a particular title.
|
void |
updateCertification(String userId,
String elementGUID,
String certificationTypeGUID,
boolean isMergeUpdate,
CertificationProperties properties)
Update the properties of a certification.
|
void |
updateCertificationType(String userId,
String certificationTypeGUID,
boolean isMergeUpdate,
CertificationTypeProperties properties)
Update the properties of the certification type.
|
public CertificationManager(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 CertificationManager(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 CertificationManager(String serverName, String serverPlatformURLRoot, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - bad input parameterspublic CertificationManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, 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 requestsmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - bad input parameterspublic CertificationManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - internal client for rest callsmaxPageSize - pre-initialized parameter limitInvalidParameterException - bad input parameterspublic String createCertificationType(String userId, CertificationTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createCertificationType in interface CertificationManagementInterfaceuserId - calling userproperties - certification propertiesInvalidParameterException - documentIdentifier or userId is null; documentIdentifier is not uniquePropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateCertificationType(String userId, String certificationTypeGUID, boolean isMergeUpdate, CertificationTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateCertificationType in interface CertificationManagementInterfaceuserId - calling usercertificationTypeGUID - identifier of the governance definition to changeisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?properties - certification propertiesInvalidParameterException - guid, documentIdentifier or userId is null; documentIdentifier is not uniquePropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void deleteCertificationType(String userId, String certificationTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteCertificationType in interface CertificationManagementInterfaceuserId - calling usercertificationTypeGUID - identifier of the governance definition to deleteInvalidParameterException - guid or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic CertificationTypeElement getCertificationTypeByGUID(String userId, String certificationTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getCertificationTypeByGUID in interface CertificationManagementInterfaceuserId - calling usercertificationTypeGUID - identifier of the governance definition to retrieveInvalidParameterException - guid or userId is null; guid is not recognizedPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic CertificationTypeElement getCertificationTypeByDocId(String userId, String documentIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getCertificationTypeByDocId in interface CertificationManagementInterfaceuserId - calling userdocumentIdentifier - identifier to search forInvalidParameterException - documentIdentifier or userId is null; documentIdentifier is not recognizedPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<CertificationTypeElement> getCertificationTypesByTitle(String userId, String title, int startFrom, int pageSize) throws UserNotAuthorizedException, InvalidParameterException, PropertyServerException
getCertificationTypesByTitle in interface CertificationManagementInterfaceuserId - calling usertitle - short description of the rolestartFrom - where to start from in the list of definitionspageSize - max number of results to return in one callInvalidParameterException - title or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<CertificationTypeElement> getCertificationTypeByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getCertificationTypeByDomainId in interface CertificationManagementInterfaceuserId - calling userdomainIdentifier - identifier to search forstartFrom - where to start from in the list of definitionspageSize - max number of results to return in one callInvalidParameterException - domainIdentifier or userId is null; domainIdentifier is not recognizedPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void certifyElement(String userId, String elementGUID, String certificationTypeGUID, CertificationProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
certifyElement in interface CertificationManagementInterfaceuserId - calling userelementGUID - unique identifier of the element being certifiedcertificationTypeGUID - unique identifier for the certification typeproperties - the properties of the certificationInvalidParameterException - one of the properties is invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateCertification(String userId, String elementGUID, String certificationTypeGUID, boolean isMergeUpdate, CertificationProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateCertification in interface CertificationManagementInterfaceuserId - calling userelementGUID - unique identifier of the element being certifiedcertificationTypeGUID - unique identifier for the certification typeisMergeUpdate - should the supplied properties overlay the existing properties or replace themproperties - the properties of the certificationInvalidParameterException - one of the properties is invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void decertifyElement(String userId, String elementGUID, String certificationTypeGUID, String certificateId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
decertifyElement in interface CertificationManagementInterfaceuserId - calling userelementGUID - unique identifier of the element being certifiedcertificationTypeGUID - unique identifier for the certification typecertificateId - optional unique identifier from the certification authority - it is used to disambiguate the certifications for the element.InvalidParameterException - one of the properties is invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.