From 541410f90c9cab7b403b606baaeeb141552c9668 Mon Sep 17 00:00:00 2001 From: remillet Date: Wed, 20 Sep 2017 10:14:06 -0700 Subject: [PATCH] CSPACE-6967: Corrected a problem where base authority class was accidentally deleting authorities. --- .../common/vocabulary/AuthorityResource.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/AuthorityResource.java b/services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/AuthorityResource.java index 15fa80f25..cbfe4f4ad 100644 --- a/services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/AuthorityResource.java +++ b/services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/AuthorityResource.java @@ -551,31 +551,6 @@ public abstract class AuthorityResource } return result.getBytes(); } - - /** - * Delete authority. - * - * @param csid the csid - * - * @return the response - */ - @Deprecated -// @DELETE - @Path("{csid}") - public Response old_deleteAuthority(@PathParam("csid") String csid) { - if (logger.isDebugEnabled()) { - logger.debug("deleteAuthority with csid=" + csid); - } - try { - ensureCSID(csid, ServiceMessages.DELETE_FAILED, "Authority.csid"); - ServiceContext ctx = createServiceContext(); - DocumentHandler handler = createDocumentHandler(ctx); - getRepositoryClient(ctx).delete(ctx, csid, handler); - return Response.status(HttpResponseCodes.SC_OK).build(); - } catch (Exception e) { - throw bigReThrow(e, ServiceMessages.DELETE_FAILED, csid); - } - } /** * Delete authority -- 2.47.3