Class CertificationManager
java.lang.Object
org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceProgramBaseClient
org.odpi.openmetadata.accessservices.governanceprogram.client.CertificationManager
- All Implemented Interfaces:
org.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface,org.odpi.openmetadata.accessservices.governanceprogram.api.RelatedElementsManagementInterface
public class CertificationManager
extends GovernanceProgramBaseClient
implements org.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface
CertificationManager is the java client for managing certification types and the certification of elements.
-
Constructor Summary
ConstructorsConstructorDescriptionCertificationManager(String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request.CertificationManager(String serverName, String serverPlatformURLRoot, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.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, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that passes userId and password in each HTTP request.CertificationManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) Create a new client that uses the supplied rest client. -
Method Summary
Modifier and TypeMethodDescriptioncertifyElement(String userId, String elementGUID, String certificationTypeGUID, org.odpi.openmetadata.accessservices.governanceprogram.properties.CertificationProperties properties) Link an element to a certification type and include details of the certification in the relationship properties.createCertificationType(String userId, org.odpi.openmetadata.accessservices.governanceprogram.properties.CertificationTypeProperties properties, org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceDefinitionStatus initialStatus) Create a description of the certification type.voiddecertifyElement(String userId, String certificationGUID) Remove the certification for an element.voiddeleteCertificationType(String userId, String certificationTypeGUID) Delete the properties of the certification type.List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.RelatedElement>getCertifications(String userId, String elementGUID, int startFrom, int pageSize) Return information about the certifications linked to an element.org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.CertificationTypeElementgetCertificationTypeByDocId(String userId, String documentIdentifier) Retrieve the certification type by its assigned unique document identifier.List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.CertificationTypeElement>getCertificationTypeByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize) Retrieve all the certification type definitions for a specific governance domain.org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.CertificationTypeElementgetCertificationTypeByGUID(String userId, String certificationTypeGUID) Retrieve the certification type by the unique identifier assigned by this service when it was created.List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.CertificationTypeElement>getCertificationTypesByTitle(String userId, String title, int startFrom, int pageSize) Retrieve all the certification types for a particular title.List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.RelatedElement>getCertifiedElements(String userId, String certificationTypeGUID, int startFrom, int pageSize) Return information about the elements linked to a certification.voidupdateCertification(String userId, String certificationGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceprogram.properties.CertificationProperties properties) Update the properties of a certification.voidupdateCertificationType(String userId, String certificationTypeGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceprogram.properties.CertificationTypeProperties properties) Update the properties of the certification type.Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceProgramBaseClient
clearAssignmentScope, clearGovernanceDefinitionScope, clearGovernanceResponsibilityAssignment, clearGovernedBy, clearMoreInformation, clearResource, clearStakeholder, getAssignedActors, getAssignedScopes, getDescriptiveElements, getGovernanceDefinitionScopes, getGovernanceDefinitionsForElement, getGovernedElements, getMoreInformation, getResourceList, getResponsibleRoles, getRoleResponsibilities, getScopedGovernanceDefinitions, getStakeholderCommissionedElements, getStakeholders, getSupportedByResource, removeReferenceable, setupAssignmentScope, setupGovernanceDefinitionScope, setupGovernanceResponsibilityAssignment, setupGovernedBy, setupMoreInformation, setupResource, setupStakeholder, updateGovernanceDefinitionStatus, updateRelationship
-
Constructor Details
-
CertificationManager
public CertificationManager(String serverName, String serverPlatformURLRoot) 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 toserverPlatformURLRoot- the network address of the server running the OMAS REST services- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- bad input parameters
-
CertificationManager
public CertificationManager(String serverName, String serverPlatformURLRoot, String userId, String password) 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 toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requests- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- bad input parameters
-
CertificationManager
public CertificationManager(String serverName, String serverPlatformURLRoot, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) 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 toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesmaxPageSize- pre-initialized parameter limitauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- bad input parameters
-
CertificationManager
public CertificationManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) 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 toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsmaxPageSize- pre-initialized parameter limitauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- bad input parameters
-
CertificationManager
public CertificationManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that uses the supplied rest client. This is typically used when called from another OMAG Server.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesrestClient- internal client for rest callsmaxPageSize- pre-initialized parameter limit- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- bad input parameters
-
-
Method Details
-
createCertificationType
public String createCertificationType(String userId, org.odpi.openmetadata.accessservices.governanceprogram.properties.CertificationTypeProperties properties, org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceDefinitionStatus initialStatus) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a description of the certification type.- Specified by:
createCertificationTypein interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling userproperties- certification propertiesinitialStatus- what is the initial status for the certification type - default value is DRAFT- Returns:
- unique identifier of new definition
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- documentIdentifier or userId is null; documentIdentifier is not uniqueorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
updateCertificationType
public void updateCertificationType(String userId, String certificationTypeGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceprogram.properties.CertificationTypeProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties of the certification type.- Specified by:
updateCertificationTypein interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling usercertificationTypeGUID- identifier of the governance definition to changeisMergeUpdate- are unspecified properties unchanged (true) or replaced with null?properties- certification properties- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- guid, documentIdentifier or userId is null; documentIdentifier is not uniqueorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
deleteCertificationType
public void deleteCertificationType(String userId, String certificationTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Delete the properties of the certification type.- Specified by:
deleteCertificationTypein interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling usercertificationTypeGUID- identifier of the governance definition to delete- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- guid or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getCertificationTypeByGUID
public org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.CertificationTypeElement getCertificationTypeByGUID(String userId, String certificationTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the certification type by the unique identifier assigned by this service when it was created.- Specified by:
getCertificationTypeByGUIDin interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling usercertificationTypeGUID- identifier of the governance definition to retrieve- Returns:
- properties of the certification type
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- guid or userId is null; guid is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getCertificationTypeByDocId
public org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.CertificationTypeElement getCertificationTypeByDocId(String userId, String documentIdentifier) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the certification type by its assigned unique document identifier.- Specified by:
getCertificationTypeByDocIdin interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling userdocumentIdentifier- identifier to search for- Returns:
- properties of the matching certification type
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- documentIdentifier or userId is null; documentIdentifier is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getCertificationTypesByTitle
public List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.CertificationTypeElement> getCertificationTypesByTitle(String userId, String title, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve all the certification types for a particular title. The title can include regEx wildcards.- Specified by:
getCertificationTypesByTitlein interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling usertitle- short description of the certificationstartFrom- where to start from in the list of definitionspageSize- max number of results to return in one call- Returns:
- list of matching certification types (null if no matching elements)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- title or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getCertificationTypeByDomainId
public List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.CertificationTypeElement> getCertificationTypeByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve all the certification type definitions for a specific governance domain.- Specified by:
getCertificationTypeByDomainIdin interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling userdomainIdentifier- identifier to search forstartFrom- where to start from in the list of definitionspageSize- max number of results to return in one call- Returns:
- properties of the matching certification type definitions
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- domainIdentifier or userId is null; domainIdentifier is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
certifyElement
public String certifyElement(String userId, String elementGUID, String certificationTypeGUID, org.odpi.openmetadata.accessservices.governanceprogram.properties.CertificationProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Link an element to a certification type and include details of the certification in the relationship properties.- Specified by:
certifyElementin interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the element being certifiedcertificationTypeGUID- unique identifier for the certification typeproperties- the properties of the certification- Returns:
- unique identifier of the new relationship
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
updateCertification
public void updateCertification(String userId, String certificationGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceprogram.properties.CertificationProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties of a certification.- Specified by:
updateCertificationin interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling usercertificationGUID- unique identifier of the certification relationship being updatedisMergeUpdate- should the supplied properties overlay the existing properties or replace themproperties- the properties of the certification- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
decertifyElement
public void decertifyElement(String userId, String certificationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the certification for an element.- Specified by:
decertifyElementin interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling usercertificationGUID- unique identifier of the certification relationship- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getCertifiedElements
public List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.RelatedElement> getCertifiedElements(String userId, String certificationTypeGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return information about the elements linked to a certification.- Specified by:
getCertifiedElementsin interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling usercertificationTypeGUID- unique identifier for the certificationstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- properties of the certification
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- qualifiedName or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getCertifications
public List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.RelatedElement> getCertifications(String userId, String elementGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return information about the certifications linked to an element.- Specified by:
getCertificationsin interfaceorg.odpi.openmetadata.accessservices.governanceprogram.api.CertificationManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier for the certificationstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- properties of the certification
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- qualifiedName or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-