@Override @Delete public Representation delete() { final String topicName = (String) getRequest().getAttributes().get("topicName"); if (_autoTopicWhitelistingManager != null) { _autoTopicWhitelistingManager.addIntoBlacklist(topicName); } if (!_helixMirrorMakerManager.isTopicExisted(topicName)) { getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND); return new StringRepresentation( String.format("Failed to delete not existed topic: %s", topicName)); } try { _helixMirrorMakerManager.deleteTopicInMirrorMaker(topicName); return new StringRepresentation( String.format("Successfully finished delete topic: %s", topicName)); } catch (Exception e) { getResponse().setStatus(Status.SERVER_ERROR_INTERNAL); LOGGER.error("Failed to delete topic: {}, with exception: {}", topicName, e); return new StringRepresentation( String.format("Failed to delete topic: %s, with exception: %s", topicName, e)); } }
/** * Deletes the identified account by setting its value to null. */ @Delete void remove();
/** * Deletes the identified account by setting its value to null. */ @Delete void remove();
/** * Remove this resource, using the parameter ontologyUri and the optional parameter * managedOntologyVersionUri to specify which ontology, or versions of the ontology to delete. * * This wraps the REST version in OntologyResource which uses also HTTP DELETE. */ @Delete void deleteOntologyByDelete(Representation entity, Variant variant) throws ResourceException;
/** * Remove this resource, using the parameter ontologyUri and the optional parameter * managedOntologyVersionUri to specify which ontology, or versions of the ontology to delete. */ @Delete void deleteOntology() throws ResourceException;
/** * Deletes the identified account by setting its value to null. */ @Delete void remove();
/** * Deletes the identified account by setting its value to null. */ @Delete void remove();
/** * Handles DELETE requests to delete an existing user. * * @param entity * @return * @throws ResourceException */ @Delete Representation deleteUser(Representation entity) throws ResourceException;
/** * Remove this resource. */ @Delete void deleteAnnotation() throws ResourceException;
/** * Deletes the identified account by setting its value to null. */ @Delete void remove();
@Delete("form|json:json") public Representation restDelete(final Representation request) throws Exception { return handleRequestWithPayload(HttpMethod.DELETE, request); }
/** * Handle DELETE requests. */ @Delete public void removeItem() { if (item != null) { // Remove the item from the list. getItems().remove(item.getName()); } // Tells the client that the request has been successfully fulfilled. setStatus(Status.SUCCESS_NO_CONTENT); }
/** * Handle DELETE requests. */ @Delete public void removeItem() { if (item != null) { // Remove the item from the list. getItems().remove(item.getName()); } // Tells the client that the request has been successfully fulfilled. setStatus(Status.SUCCESS_NO_CONTENT); }
@Delete public void removeAssociationRole() { getController(RoleController.class).remove(resolve()); } }
@Delete public void removeTopic() { getController(TopicController.class).remove(resolve()); store.commit(); } }
@Delete public void removeTopicName() { getController(TopicNameController.class).remove(resolve()); store.commit(); } }
@Delete public void removeVariantName() { getController(VariantNameController.class).remove(resolve()); store.commit(); } }
@Delete public void removeTopicMap() { store.close(); getController(TopicMapController.class).remove(getTopicMapReference()); }
@Delete public void removeOccurrence() { getController(OccurrenceController.class).remove(resolve()); store.commit(); } }
/** * Remove this resource. */ @Delete public void removeUser() throws ResourceException { getObjectsFacade().deleteUser(this.user); getResponse().redirectSeeOther( getRequest().getResourceRef().getParentRef()); }