Class OperatingPlatformHandler<B>


  • public class OperatingPlatformHandler<B>
    extends OpenMetadataAPIGenericHandler<B>
    OperatingPlatformHandler provides the exchange of metadata about operating platforms between the repository and the OMAS. Supports external elements and effectivity dates.
    • Constructor Detail

      • OperatingPlatformHandler

        public OperatingPlatformHandler​(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 operating platform handler with information needed to work with B objects.
        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 operating platforms that the access service is allowed to serve B instances from.
        defaultZones - list of operating platforms that the access service should set in all new B instances.
        publishZones - list of operating platforms that the access service sets up in published B instances.
        auditLog - destination for audit log events.
    • Method Detail

      • createOperatingPlatform

        public void createOperatingPlatform​(String userId,
                                            String externalSourceGUID,
                                            String externalSourceName,
                                            String qualifiedName,
                                            String name,
                                            String description,
                                            String operatingSystem,
                                            int byteOrdering,
                                            Map<String,​String> additionalProperties,
                                            String suppliedTypeName,
                                            Map<String,​Object> extendedProperties,
                                            Date effectiveFrom,
                                            Date effectiveTo,
                                            String methodName)
                                     throws InvalidParameterException,
                                            UserNotAuthorizedException,
                                            PropertyServerException
        Create a definition of a operating platform.
        Parameters:
        userId - calling user
        externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
        externalSourceName - name of the software server capability entity that represented the external source
        qualifiedName - unique name for the operating platform - used in other configuration
        name - short display name for the operating platform
        description - description of the operating platform
        operatingSystem - the operating system running on this platform
        byteOrdering - the identifier of the endianness
        additionalProperties - additional properties for a operating platform
        suppliedTypeName - type of operatingPlatform
        extendedProperties - properties for a operating platform subtype
        effectiveFrom - starting time for this relationship (null for all time)
        effectiveTo - ending time for this relationship (null for all time)
        methodName - calling method
        Throws:
        InvalidParameterException - qualifiedName or userId is null
        PropertyServerException - problem accessing property server
        UserNotAuthorizedException - security access problem
      • updateOperatingPlatform

        public void updateOperatingPlatform​(String userId,
                                            String externalSourceGUID,
                                            String externalSourceName,
                                            String operatingPlatformGUID,
                                            String operatingPlatformGUIDParameterName,
                                            String qualifiedName,
                                            String name,
                                            String description,
                                            String operatingSystem,
                                            int byteOrdering,
                                            Map<String,​String> additionalProperties,
                                            String suppliedTypeName,
                                            Map<String,​Object> extendedProperties,
                                            boolean isMergeUpdate,
                                            Date effectiveFrom,
                                            Date effectiveTo,
                                            String methodName)
                                     throws InvalidParameterException,
                                            UserNotAuthorizedException,
                                            PropertyServerException
        Update the operating platform.
        Parameters:
        userId - calling user
        externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
        externalSourceName - name of the software server capability entity that represented the external source
        operatingPlatformGUID - unique identifier of the operating platform to update
        operatingPlatformGUIDParameterName - parameter passing the operatingPlatformGUID
        qualifiedName - unique name for the operating platform - used in other configuration
        name - short display name for the operating platform
        description - description of the governance operating platform
        operatingSystem - name of the operating system running on the platform
        byteOrdering - byte ordering used by the hardware
        additionalProperties - additional properties for a governance operatingPlatform
        suppliedTypeName - name of sub type or null
        extendedProperties - properties for a governance operatingPlatform subtype
        isMergeUpdate - should the properties be merged with existing properties or replace the existing properties?
        effectiveFrom - starting time for this relationship (null for all time)
        effectiveTo - ending time for this relationship (null for all time)
        methodName - calling method
        Throws:
        InvalidParameterException - qualifiedName or userId is null
        PropertyServerException - problem accessing property server
        UserNotAuthorizedException - security access problem
      • setupHostOperatingPlatform

        public void setupHostOperatingPlatform​(String userId,
                                               String externalSourceGUID,
                                               String externalSourceName,
                                               String hostGUID,
                                               String hostGUIDParameterName,
                                               String operatingPlatformGUID,
                                               String operatingPlatformGUIDParameterName,
                                               Date effectiveFrom,
                                               Date effectiveTo,
                                               String methodName)
                                        throws InvalidParameterException,
                                               UserNotAuthorizedException,
                                               PropertyServerException
        Create a relationship between a host and an operating platform.
        Parameters:
        userId - calling user
        externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
        externalSourceName - name of the software server capability entity that represented the external source
        hostGUID - unique identifier of the host
        hostGUIDParameterName - parameter supplying the hostGUID
        operatingPlatformGUID - unique identifier of the operating platform
        operatingPlatformGUIDParameterName - parameter supplying the operatingPlatformGUID
        effectiveFrom - starting time for this relationship (null for all time)
        effectiveTo - ending time for this relationship (null for all time)
        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)
      • clearNestedOperatingPlatform

        public void clearNestedOperatingPlatform​(String userId,
                                                 String externalSourceGUID,
                                                 String externalSourceName,
                                                 String hostGUID,
                                                 String hostGUIDParameterName,
                                                 String operatingPlatformGUID,
                                                 String operatingPlatformGUIDParameterName,
                                                 Date effectiveTime,
                                                 String methodName)
                                          throws InvalidParameterException,
                                                 UserNotAuthorizedException,
                                                 PropertyServerException
        Remove a relationship between a host and an operating platform..
        Parameters:
        userId - calling user
        externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
        externalSourceName - name of the software server capability entity that represented the external source
        hostGUID - unique identifier of the host
        hostGUIDParameterName - parameter supplying the hostGUID
        operatingPlatformGUID - unique identifier of the operating platform
        operatingPlatformGUIDParameterName - parameter supplying the operatingPlatformGUID
        effectiveTime - the time that the retrieved elements must be effective for
        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)
      • removeOperatingPlatform

        public void removeOperatingPlatform​(String userId,
                                            String externalSourceGUID,
                                            String externalSourceName,
                                            String operatingPlatformGUID,
                                            String operatingPlatformGUIDParameterName,
                                            String methodName)
                                     throws InvalidParameterException,
                                            UserNotAuthorizedException,
                                            PropertyServerException
        Remove the metadata element representing a operatingPlatform.
        Parameters:
        userId - calling user
        externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
        externalSourceName - name of the software server capability entity that represented the external source
        operatingPlatformGUID - unique identifier of the metadata element to remove
        operatingPlatformGUIDParameterName - parameter supplying the operatingPlatformGUID
        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)