Class TemplateManagerRESTServices

java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.templatemanager.server.TemplateManagerRESTServices

public class TemplateManagerRESTServices extends TokenController
The TemplateManagerRESTServices provides the server-side implementation of the Template Manager Open Metadata View Service (OMVS). This interface provides access to a person's profile, roles and network.
  • Constructor Details

    • TemplateManagerRESTServices

      public TemplateManagerRESTServices()
      Default constructor
  • Method Details

    • addTemplateClassification

      public VoidResponse addTemplateClassification(String serverName, String elementGUID, NewClassificationRequestBody requestBody)
      Classify/reclassify the element with the Template classification
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the metadata element to classify
      requestBody - properties for the request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem
    • removeTemplateClassification

      public VoidResponse removeTemplateClassification(String serverName, String elementGUID, DeleteClassificationRequestBody requestBody)
      Remove the Template classification from the element.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the metadata element to declassify
      requestBody - properties for the request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem
    • linkSourcedFrom

      public VoidResponse linkSourcedFrom(String serverName, String elementGUID, String templateGUID, NewRelationshipRequestBody requestBody)
      Create a relationship between two elements that show they represent the same "thing". If the relationship already exists, the properties are updated.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the metadata element to link
      templateGUID - identifier of the duplicate to link
      requestBody - properties for relationship request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem
    • detachSourcedFrom

      public VoidResponse detachSourcedFrom(String serverName, String elementGUID, String templateGUID, DeleteRelationshipRequestBody requestBody)
      Remove the PeerDuplicateLink relationship between an element and its duplicate.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the metadata element to update
      templateGUID - identifier of the duplicate to link
      requestBody - properties for relationship request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem
    • addTemplateSubstituteClassification

      public VoidResponse addTemplateSubstituteClassification(String serverName, String elementGUID, NewClassificationRequestBody requestBody)
      Classify/reclassify the element with the TemplateSubstitute classification.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the metadata element to classify
      requestBody - properties for the request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem
    • removeTemplateSubstituteClassification

      public VoidResponse removeTemplateSubstituteClassification(String serverName, String elementGUID, DeleteClassificationRequestBody requestBody)
      Remove the TemplateSubstitute classification from the element.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the metadata element to declassify
      requestBody - properties for the request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem
    • linkCatalogTemplate

      public VoidResponse linkCatalogTemplate(String serverName, String elementGUID, String templateGUID, NewRelationshipRequestBody requestBody)
      Create a CatalogTemplate relationship between an element and one of the source elements of its properties.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the element that was created with the values from a number of duplicate elements
      templateGUID - unique identifier of one of the source elements
      requestBody - properties for relationship request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem
    • detachCatalogTemplate

      public VoidResponse detachCatalogTemplate(String serverName, String elementGUID, String templateGUID, DeleteRelationshipRequestBody requestBody)
      Remove a CatalogTemplate relationship between an element and one of its source elements.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the element that was created with the values from a number of duplicate elements
      templateGUID - unique identifier of one of the source elements
      requestBody - properties for relationship request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem