]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-6967: Corrected a problem where base authority class was accidentally deleting...
authorremillet <remillet@yahoo.com>
Wed, 20 Sep 2017 17:14:06 +0000 (10:14 -0700)
committerremillet <remillet@yahoo.com>
Wed, 20 Sep 2017 17:14:06 +0000 (10:14 -0700)
services/authority/service/src/main/java/org/collectionspace/services/common/vocabulary/AuthorityResource.java

index 15fa80f258dc5e398c3dfcebc6461143307a3936..cbfe4f4adb430accc91e8668dba09ac5123b33a5 100644 (file)
@@ -551,31 +551,6 @@ public abstract class AuthorityResource<AuthCommon, AuthItemHandler>
         }
         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<PoxPayloadIn, PoxPayloadOut> ctx = createServiceContext();
-            DocumentHandler<?, AbstractCommonList, DocumentModel, DocumentModelList> 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