Class CertificationHandler<B>


public class CertificationHandler<B> extends GovernanceDefinitionHandler<B>
CertificationHandler manages Certification objects. It runs server-side in the OMAG Server Platform and retrieves Certification entities through the OMRSRepositoryConnector.
  • Constructor Details

    • CertificationHandler

      public CertificationHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
      Construct the handler information needed to interact with the repository services
      Parameters:
      converter - specific converter for this bean class
      beanClass - name of bean class that is represented by the generic class B
      serviceName - name of this service
      serverName - name of the local server
      invalidParameterHandler - handler for managing parameter errors
      repositoryHandler - manages calls to the repository services
      repositoryHelper - provides utilities for manipulating the repository services objects
      localServerUserId - userId for this server
      securityVerifier - open metadata security services verifier
      supportedZones - list of zones that the access service is allowed to serve Asset instances from.
      defaultZones - list of zones that the access service should set in all new Asset instances.
      publishZones - list of zones that the access service sets up in published Asset instances.
      auditLog - destination for audit log events.
  • Method Details

    • getCertifications

      public List<B> getCertifications(String userId, String parentGUID, String parentGUIDParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
      Return the Certifications attached to a referenceable entity.
      Parameters:
      userId - calling user
      parentGUID - identifier for the entity that the feedback is attached to
      parentGUIDParameterName - parameter name for the parentGUID
      startFrom - where to start from in the list
      pageSize - maximum number of results that can be returned
      forLineage - return elements marked with the Memento classification?
      forDuplicateProcessing - do not merge elements marked as duplicates?
      effectiveTime - the time that the retrieved elements must be effective for (null for any time, new Date() for now)
      methodName - calling method
      Returns:
      unique identifier of the object or null
      Throws:
      InvalidParameterException - the input properties are invalid
      UserNotAuthorizedException - user not authorized to issue this request
      PropertyServerException - problem accessing the property server
    • getCertifications

      public List<B> getCertifications(String userId, String parentGUID, String parentGUIDParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
      Return the Certifications attached to a referenceable entity.
      Parameters:
      userId - calling user
      parentGUID - identifier for the entity that the feedback is attached to
      parentGUIDParameterName - parameter name for the parentGUID
      serviceSupportedZones - supported zones for calling service
      startFrom - where to start from in the list
      pageSize - maximum number of results that can be returned
      forLineage - return elements marked with the Memento classification?
      forDuplicateProcessing - do not merge elements marked as duplicates?
      effectiveTime - the time that the retrieved elements must be effective for (null for any time, new Date() for now)
      methodName - calling method
      Returns:
      unique identifier of the object or null
      Throws:
      InvalidParameterException - the input properties are invalid
      UserNotAuthorizedException - user not authorized to issue this request
      PropertyServerException - problem accessing the property server
    • certifyElement

      public String certifyElement(String userId, String externalSourceGUID, String externalSourceName, String elementGUID, String elementGUIDParameterName, String elementTypeName, String certificationTypeGUID, String certificationTypeGUIDParameterName, String certificationTypeGUIDTypeName, String certificateGUID, Date start, Date end, String conditions, String certifiedBy, String certifiedByTypeName, String certifiedByPropertyName, String custodian, String custodianTypeName, String custodianPropertyName, String recipient, String recipientTypeName, String recipientPropertyName, String notes, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
      Create a link between a certification type and an element that has achieved the certification.
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software capability entity that represented the external source - null for local
      externalSourceName - name of the software capability entity that represented the external source
      elementGUID - unique identifier of the element
      elementGUIDParameterName - parameter supplying the elementGUID
      elementTypeName - typename of super-definition
      certificationTypeGUID - unique identifier of the certification type
      certificationTypeGUIDParameterName - parameter supplying certificationTypeGUID
      certificationTypeGUIDTypeName - type name of the certificationTypeGUID
      certificateGUID - unique identifier of the certificate (maybe from an external system)
      start - when did the certification start
      end - when will the certification end
      conditions - any conditions added to the certification
      certifiedBy - unique name/identifier of the element for the person/organization certifying the element
      certifiedByTypeName - type of the certifiedBy element
      certifiedByPropertyName - property name for the unique identifier from the certifiedBy element
      custodian - unique name/identifier of the element for the person/organization responsible for maintaining the certification status
      custodianTypeName - type of the custodian element
      custodianPropertyName - property name for the unique identifier from the custodian element
      recipient - unique name/identifier of the element for the person/organization receiving the certification
      recipientTypeName - type of the recipient element
      recipientPropertyName - property name for the unique identifier from the recipient element
      notes - additional information, endorsements etc
      effectiveFrom - starting time for this relationship (null for all time)
      effectiveTo - ending time for this relationship (null for all time)
      forLineage - the request is to support lineage retrieval this means entities with the Memento classification can be returned
      forDuplicateProcessing - the request is for duplicate processing and so must not deduplicate
      effectiveTime - the time that the retrieved elements must be effective for (null for any time, new Date() for now)
      methodName - calling method
      Returns:
      guid of certification relationship
      Throws:
      InvalidParameterException - one of the parameters is invalid
      UserNotAuthorizedException - the user is not authorized to issue this request
      PropertyServerException - there is a problem reported in the open metadata server(s)
    • updateCertification

      public void updateCertification(String userId, String externalSourceGUID, String externalSourceName, String certificationGUID, String certificationGUIDParameterName, String certificateGUID, Date start, Date end, String conditions, String certifiedBy, String certifiedByTypeName, String certifiedByPropertyName, String custodian, String custodianTypeName, String custodianPropertyName, String recipient, String recipientTypeName, String recipientPropertyName, String notes, boolean isMergeUpdate, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
      Update the certification relationship.
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software capability entity that represented the external source - null for local
      externalSourceName - name of the software capability entity that represented the external source
      certificationGUID - unique identifier for the relationship
      certificationGUIDParameterName - parameter
      certificateGUID - unique identifier of the certificate (maybe from an external system)
      start - when did the certification start
      end - when will the certification end
      conditions - any conditions added to the certification
      certifiedBy - unique name/identifier of the element for the person/organization certifying the element
      certifiedByTypeName - type of the certifiedBy element
      certifiedByPropertyName - property name for the unique identifier from the certifiedBy element
      custodian - unique name/identifier of the element for the person/organization responsible for maintaining the certification status
      custodianTypeName - type of the custodian element
      custodianPropertyName - property name for the unique identifier from the custodian element
      recipient - unique name/identifier of the element for the person/organization receiving the certification
      recipientTypeName - type of the recipient element
      recipientPropertyName - property name for the unique identifier from the recipient element
      notes - additional information, endorsements etc
      isMergeUpdate - are unspecified properties unchanged (true) or replaced with null?
      effectiveFrom - starting time for this relationship (null for all time)
      effectiveTo - ending time for this relationship (null for all time)
      forLineage - the request is to support lineage retrieval this means entities with the Memento classification can be returned
      forDuplicateProcessing - the request is for duplicate processing and so must not deduplicate
      effectiveTime - the time that the retrieved elements must be effective for (null for any time, new Date() for now)
      methodName - calling method
      Throws:
      InvalidParameterException - one of the parameters is invalid
      UserNotAuthorizedException - the user is not authorized to issue this request
      PropertyServerException - there is a problem reported in the open metadata server(s)
    • decertifyElement

      public void decertifyElement(String userId, String externalSourceGUID, String externalSourceName, String certificationGUID, String certificationGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
      Remove a relationship between two definitions.
      Parameters:
      externalSourceGUID - guid of the software capability entity that represented the external source - null for local
      externalSourceName - name of the software capability entity that represented the external source
      userId - calling user
      certificationGUID - unique identifier of the certification relationship
      certificationGUIDParameterName - parameter supplying certificationGUID
      forLineage - the request is to support lineage retrieval this means entities with the Memento classification can be returned
      forDuplicateProcessing - the request is for duplicate processing and so must not deduplicate
      effectiveTime - the time that the retrieved elements must be effective for (null for any time, new Date() for now)
      methodName - calling method
      Throws:
      InvalidParameterException - one of the parameters is invalid
      UserNotAuthorizedException - the user is not authorized to issue this request
      PropertyServerException - there is a problem reported in the open metadata server(s)