From 6c343474c539d2f862c88e815ea0a94cda48766f Mon Sep 17 00:00:00 2001 From: David Radley Date: Thu, 1 Jul 2021 12:15:23 +0100 Subject: [PATCH] #5399 add deprecation tags for Gradle Signed-off-by: David Radley --- ...TermIsATypeOfRelationshipDeprecatedMapper.java | 3 ++- .../SubjectAreaRelationshipRESTServices.java | 15 ++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/TermIsATypeOfRelationshipDeprecatedMapper.java b/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/TermIsATypeOfRelationshipDeprecatedMapper.java index 1d21c89fe7d..091996bf80f 100644 --- a/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/TermIsATypeOfRelationshipDeprecatedMapper.java +++ b/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/TermIsATypeOfRelationshipDeprecatedMapper.java @@ -14,8 +14,9 @@ /** * Mapping methods to map between the termISATypeOFRelationship and the equivalent omrs Relationship. * - * @deprecated use IsATypeOfRelationship not TermISATypeOFRelationship + * @Deprecated use IsATypeOfRelationship not TermISATypeOFRelationship */ +@Deprecated @SubjectAreaMapper public class TermIsATypeOfRelationshipDeprecatedMapper extends RelationshipMapper { private static final String TERM_ISA_TYPE_OF_DEPRECATED_RELATIONSHIP = "TermISATypeOFRelationship"; diff --git a/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/services/SubjectAreaRelationshipRESTServices.java b/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/services/SubjectAreaRelationshipRESTServices.java index e615af9f98d..1fbb3a19c5f 100644 --- a/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/services/SubjectAreaRelationshipRESTServices.java +++ b/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/services/SubjectAreaRelationshipRESTServices.java @@ -1334,7 +1334,7 @@ public SubjectAreaOMASAPIResponse restoreIsARelationship(String serverName, /** * Create a IsATypeOfDeprecated relationship, which is an inheritance relationship between two spine objects. *

- * @deprecated IsATypeOfDeprecated is deprecated; move your instances to use IsATypeOf instead. + * @Deprecated IsATypeOfDeprecated is deprecated; move your instances to use IsATypeOf instead. * @param serverName serverName under which this request is performed, this is used in multi tenanting to identify the tenant * @param userId userId under which the request is performed * @param IsATypeOfDeprecated the IsaTypeOf relationship @@ -1350,6 +1350,7 @@ public SubjectAreaOMASAPIResponse restoreIsARelationship(String serverName, *

  • FunctionNotSupportedException Function not supported.
  • * */ + @Deprecated public SubjectAreaOMASAPIResponse createIsATypeOfDeprecated(String serverName, String userId, IsATypeOfDeprecated IsATypeOfDeprecated) { String restAPIName = "createIsATypeOfDeprecated"; return createRelationship(serverName, restAPIName, userId, TermIsATypeOfRelationshipDeprecatedMapper.class, IsATypeOfDeprecated); @@ -1357,7 +1358,7 @@ public SubjectAreaOMASAPIResponse createIsATypeOfDeprecated /** * Get a IsATypeOfDeprecated relationship, which is an inheritance relationship between two spine objects. - * @deprecated IsATypeOfRelationship it is deprecated; move your instances to use IsATypeOf instead. + * @Deprecated IsATypeOfRelationship it is deprecated; move your instances to use IsATypeOf instead. * @param serverName serverName under which this request is performed, this is used in multi tenanting to identify the tenant * @param userId unique identifier for requesting user, under which the request is performed * @param guid guid of the IsATypeOfDeprecated relationship to get @@ -1370,6 +1371,7 @@ public SubjectAreaOMASAPIResponse createIsATypeOfDeprecated *
  • UnrecognizedGUIDException the supplied guid was not recognised
  • * */ + @Deprecated public SubjectAreaOMASAPIResponse getIsATypeOfDeprecated(String serverName, String userId, String guid) { String restAPIName = "getIsATypeOfDeprecated"; return getRelationship(serverName, restAPIName, userId, TermIsATypeOfRelationshipDeprecatedMapper.class, guid); @@ -1378,7 +1380,7 @@ public SubjectAreaOMASAPIResponse getIsATypeOfDeprecated(St /** * Update a IsaTypeOf relationship, which is an inheritance relationship between two spine objects. *

    - * @deprecated IsATypeOfRelationship it is deprecated; move your instances to use IsATypeOf instead. + * @Deprecated IsATypeOfRelationship it is deprecated; move your instances to use IsATypeOf instead. * @param serverName serverName under which this request is performed, this is used in multi tenanting to identify the tenant * @param userId userId under which the request is performed * @param guid unique identifier of the relationship @@ -1396,6 +1398,7 @@ public SubjectAreaOMASAPIResponse getIsATypeOfDeprecated(St *

  • FunctionNotSupportedException Function not supported.
  • * */ + @Deprecated public SubjectAreaOMASAPIResponse updateIsATypeOfDeprecated(String serverName, String userId, String guid, IsATypeOfDeprecated IsATypeOfDeprecated, boolean isReplace) { String restAPIName = "updateIsATypeOfDeprecated"; return updateRelationship(serverName, restAPIName, userId, guid, TermIsATypeOfRelationshipDeprecatedMapper.class, IsATypeOfDeprecated, isReplace); @@ -1403,7 +1406,7 @@ public SubjectAreaOMASAPIResponse updateIsATypeOfDeprecated /** * Delete a IsaTypeOf relationship, which is an inheritance relationship between two spine objects. - * @deprecated IsATypeOfRelationship it is deprecated; move your instances to use IsATypeOf instead. + * @Deprecated IsATypeOfRelationship it is deprecated; move your instances to use IsATypeOf instead. * @param serverName serverName under which this request is performed, this is used in multi tenanting to identify the tenant * @param userId unique identifier for requesting user, under which the request is performed * @param guid guid of the IsaTypeOf relationship to delete @@ -1420,6 +1423,7 @@ public SubjectAreaOMASAPIResponse updateIsATypeOfDeprecated *
  • EntityNotPurgedException a hard delete was issued but the relationship was not purged
  • * */ + @Deprecated public SubjectAreaOMASAPIResponse deleteIsATypeOfDeprecatedRelationship(String serverName, String userId, String guid, Boolean isPurge) { String restAPIName = "deleteIsATypeOfDeprecatedRelationship"; return deleteRelationship(serverName, restAPIName, userId, TermIsATypeOfRelationshipDeprecatedMapper.class, guid, isPurge); @@ -1430,7 +1434,7 @@ public SubjectAreaOMASAPIResponse deleteIsATypeOfDeprecated *

    * Restore allows the deleted relationship to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored. * - * @deprecated IsATypeOfRelationship it is deprecated; move your instances to use IsATypeOf instead. + * @Deprecated IsATypeOfRelationship it is deprecated; move your instances to use IsATypeOf instead. * @param serverName serverName under which this request is performed, this is used in multi tenanting to identify the tenant * @param userId unique identifier for requesting user, under which the request is performed * @param guid guid of the relationship to restore @@ -1446,6 +1450,7 @@ public SubjectAreaOMASAPIResponse deleteIsATypeOfDeprecated *

  • EntityNotPurgedException a hard delete was issued but the relationship was not purged
  • * */ + @Deprecated public SubjectAreaOMASAPIResponse restoreIsATypeOfDeprecated(String serverName, String userId, String guid) { String restAPIName = "restoreIsATypeOfDeprecated"; return restoreRelationship(serverName, restAPIName, userId, TermIsATypeOfRelationshipDeprecatedMapper.class, guid);