From: remillet Date: Wed, 20 Sep 2017 17:14:06 +0000 (-0700) Subject: CSPACE-6967: Corrected a problem where base authority class was accidentally deleting... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=541410f90c9cab7b403b606baaeeb141552c9668;p=tmp%2Fjakarta-migration.git CSPACE-6967: Corrected a problem where base authority class was accidentally deleting authorities. --- 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