Skip to content

Commit

Permalink
odpi#5399 add deprecation tags for Gradle
Browse files Browse the repository at this point in the history
Signed-off-by: David Radley <david_radley@uk.ibm.com>
  • Loading branch information
davidradl committed Jul 1, 2021
1 parent 020630c commit 6c34347
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<IsATypeOfDeprecated> {
private static final String TERM_ISA_TYPE_OF_DEPRECATED_RELATIONSHIP = "TermISATypeOFRelationship";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ public SubjectAreaOMASAPIResponse<IsA> restoreIsARelationship(String serverName,
/**
* Create a IsATypeOfDeprecated relationship, which is an inheritance relationship between two spine objects.
* <p>
* @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
Expand All @@ -1350,14 +1350,15 @@ public SubjectAreaOMASAPIResponse<IsA> restoreIsARelationship(String serverName,
* <li> FunctionNotSupportedException Function not supported.</li>
* </ul>
*/
@Deprecated
public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> createIsATypeOfDeprecated(String serverName, String userId, IsATypeOfDeprecated IsATypeOfDeprecated) {
String restAPIName = "createIsATypeOfDeprecated";
return createRelationship(serverName, restAPIName, userId, TermIsATypeOfRelationshipDeprecatedMapper.class, IsATypeOfDeprecated);
}

/**
* 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
Expand All @@ -1370,6 +1371,7 @@ public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> createIsATypeOfDeprecated
* <li> UnrecognizedGUIDException the supplied guid was not recognised</li>
* </ul>
*/
@Deprecated
public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> getIsATypeOfDeprecated(String serverName, String userId, String guid) {
String restAPIName = "getIsATypeOfDeprecated";
return getRelationship(serverName, restAPIName, userId, TermIsATypeOfRelationshipDeprecatedMapper.class, guid);
Expand All @@ -1378,7 +1380,7 @@ public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> getIsATypeOfDeprecated(St
/**
* Update a IsaTypeOf relationship, which is an inheritance relationship between two spine objects.
* <p>
* @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
Expand All @@ -1396,14 +1398,15 @@ public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> getIsATypeOfDeprecated(St
* <li> FunctionNotSupportedException Function not supported.</li>
* </ul>
*/
@Deprecated
public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> updateIsATypeOfDeprecated(String serverName, String userId, String guid, IsATypeOfDeprecated IsATypeOfDeprecated, boolean isReplace) {
String restAPIName = "updateIsATypeOfDeprecated";
return updateRelationship(serverName, restAPIName, userId, guid, TermIsATypeOfRelationshipDeprecatedMapper.class, IsATypeOfDeprecated, isReplace);
}

/**
* 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
Expand All @@ -1420,6 +1423,7 @@ public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> updateIsATypeOfDeprecated
* <li> EntityNotPurgedException a hard delete was issued but the relationship was not purged</li>
* </ul>
*/
@Deprecated
public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> deleteIsATypeOfDeprecatedRelationship(String serverName, String userId, String guid, Boolean isPurge) {
String restAPIName = "deleteIsATypeOfDeprecatedRelationship";
return deleteRelationship(serverName, restAPIName, userId, TermIsATypeOfRelationshipDeprecatedMapper.class, guid, isPurge);
Expand All @@ -1430,7 +1434,7 @@ public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> deleteIsATypeOfDeprecated
* <p>
* 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
Expand All @@ -1446,6 +1450,7 @@ public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> deleteIsATypeOfDeprecated
* <li> EntityNotPurgedException a hard delete was issued but the relationship was not purged</li>
* </ul>
*/
@Deprecated
public SubjectAreaOMASAPIResponse<IsATypeOfDeprecated> restoreIsATypeOfDeprecated(String serverName, String userId, String guid) {
String restAPIName = "restoreIsATypeOfDeprecated";
return restoreRelationship(serverName, restAPIName, userId, TermIsATypeOfRelationshipDeprecatedMapper.class, guid);
Expand Down

0 comments on commit 6c34347

Please sign in to comment.