Interface Service

    • Method Detail

      • attachPolicy

        void attachPolicy​(Policy policy)
                   throws GovernanceException
        Attach a policy artifact to a service artifact. Both the artifacts should be saved, before calling this method.
        Parameters:
        policy - the policy to attach.
        Throws:
        GovernanceException - if the operation failed.
      • detachPolicy

        void detachPolicy​(String policyId)
                   throws GovernanceException
        Detach a policy artifact from a service artifact. Both the artifacts should be saved, before calling this method.
        Parameters:
        policyId - the identifier of the policy to detach.
        Throws:
        GovernanceException - if the operation failed.
      • getAttachedPolicies

        Policy[] getAttachedPolicies()
                              throws GovernanceException
        Method to retrieve all policies attached to this service artifact.
        Returns:
        all policies attached to this service artifact.
        Throws:
        GovernanceException - if the operation failed.
      • attachSchema

        void attachSchema​(Schema schema)
                   throws GovernanceException
        Attach a schema artifact to a service artifact. Both the artifacts should be saved, before calling this method.
        Parameters:
        schema - the schema to attach.
        Throws:
        GovernanceException - if the operation failed.
      • detachSchema

        void detachSchema​(String schemaId)
                   throws GovernanceException
        Detach a schema artifact from a service artifact. Both the artifacts should be saved, before calling this method.
        Parameters:
        schemaId - the identifier of the schema to detach.
        Throws:
        GovernanceException - if the operation failed.
      • getAttachedSchemas

        Schema[] getAttachedSchemas()
                             throws GovernanceException
        Method to retrieve all schemas attached to this service artifact.
        Returns:
        all schemas attached to this service artifact.
        Throws:
        GovernanceException - if the operation failed.
      • attachWSDL

        void attachWSDL​(Wsdl wsdl)
                 throws GovernanceException
        Attach a WSDL artifact to a service artifact. Both the artifacts should be saved, before calling this method.
        Parameters:
        wsdl - the WSDL to attach.
        Throws:
        GovernanceException - if the operation failed.
      • detachWSDL

        void detachWSDL​(String wsdlId)
                 throws GovernanceException
        Detach a WSDL artifact from a service artifact. Both the artifacts should be saved, before calling this method.
        Parameters:
        wsdlId - the identifier of the WSDL to detach.
        Throws:
        GovernanceException - if the operation failed.
      • getAttachedWsdls

        Wsdl[] getAttachedWsdls()
                         throws GovernanceException
        Method to retrieve all WSDLs attached to this service artifact.
        Returns:
        all WSDLs attached to this service artifact.
        Throws:
        GovernanceException - if the operation failed.
      • attachEndpoint

        void attachEndpoint​(Endpoint endpoint)
                     throws GovernanceException
        Attach an endpoint artifact to a service artifact. Both the artifacts should be saved, before calling this method.
        Parameters:
        endpoint - the endpoint to attach.
        Throws:
        GovernanceException - if the operation failed.
      • detachEndpoint

        void detachEndpoint​(String endpointId)
                     throws GovernanceException
        Detach an endpoint artifact from a service artifact. Both the artifacts should be saved, before calling this method.
        Parameters:
        endpointId - the identifier of the endpoint to detach.
        Throws:
        GovernanceException - if the operation failed.
      • getAttachedEndpoints

        Endpoint[] getAttachedEndpoints()
                                 throws GovernanceException
        Method to retrieve all endpoints attached to this service artifact.
        Returns:
        all endpoints attached to this service artifact.
        Throws:
        GovernanceException - if the operation failed.
      • activate

        void activate()
               throws GovernanceException
        Deprecated.
        since active functionality is no longer used.
        Method to activate this service.
        Throws:
        GovernanceException - if the operation failed.
      • deactivate

        void deactivate()
                 throws GovernanceException
        Deprecated.
        since active functionality is no longer used.
        Method to deactivate this service.
        Throws:
        GovernanceException - if the operation failed.
      • isActive

        boolean isActive()
                  throws GovernanceException
        Deprecated.
        since active functionality is no longer used.
        Method to obtain whether this service is active or not.
        Returns:
        true if this service is active, and false if not.
        Throws:
        GovernanceException - if the operation failed.