Class TemplateManagerRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.templatemanager.server.TemplateManagerRESTServices
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTemplateClassification(String serverName, String elementGUID, NewClassificationRequestBody requestBody) Classify/reclassify the element with the Template classificationaddTemplateSubstituteClassification(String serverName, String elementGUID, NewClassificationRequestBody requestBody) Classify/reclassify the element with the TemplateSubstitute classification.detachCatalogTemplate(String serverName, String elementGUID, String templateGUID, DeleteRelationshipRequestBody requestBody) Remove a CatalogTemplate relationship between an element and one of its source elements.detachSourcedFrom(String serverName, String elementGUID, String templateGUID, DeleteRelationshipRequestBody requestBody) Remove the PeerDuplicateLink relationship between an element and its duplicate.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.linkSourcedFrom(String serverName, String elementGUID, String templateGUID, NewRelationshipRequestBody requestBody) Create a relationship between two elements that show they represent the same "thing".removeTemplateClassification(String serverName, String elementGUID, DeleteClassificationRequestBody requestBody) Remove the Template classification from the element.removeTemplateSubstituteClassification(String serverName, String elementGUID, DeleteClassificationRequestBody requestBody) Remove the TemplateSubstitute classification from the element.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
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 toelementGUID- unique identifier of the metadata element to classifyrequestBody- 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 toelementGUID- unique identifier of the metadata element to declassifyrequestBody- 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 toelementGUID- unique identifier of the metadata element to linktemplateGUID- identifier of the duplicate to linkrequestBody- 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 toelementGUID- unique identifier of the metadata element to updatetemplateGUID- identifier of the duplicate to linkrequestBody- 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 toelementGUID- unique identifier of the metadata element to classifyrequestBody- 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 toelementGUID- unique identifier of the metadata element to declassifyrequestBody- 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 toelementGUID- unique identifier of the element that was created with the values from a number of duplicate elementstemplateGUID- unique identifier of one of the source elementsrequestBody- 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 toelementGUID- unique identifier of the element that was created with the values from a number of duplicate elementstemplateGUID- unique identifier of one of the source elementsrequestBody- 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
-