Class CertificationHandler<B>


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

      • 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 Detail

      • getCertifications

        public List<B> getCertifications​(String userId,
                                         String parentGUID,
                                         String parentGUIDParameterName,
                                         int startFrom,
                                         int pageSize,
                                         Date effectiveTime,
                                         String methodName)
                                  throws InvalidParameterException,
                                         PropertyServerException,
                                         UserNotAuthorizedException
        Return the Certifications attached to an 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
        effectiveTime - the time that the retrieved elements must be effective for
        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,
                                         Date effectiveTime,
                                         String methodName)
                                  throws InvalidParameterException,
                                         PropertyServerException,
                                         UserNotAuthorizedException
        Return the Certifications attached to an 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
        effectiveTime - the time that the retrieved elements must be effective for
        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