@RunWithCustomExecutor @Test public void deleteOK() throws Exception { VitamThreadUtils.getVitamSession().setTenantId(TENANT_ID); when(mock.delete()).thenReturn(Response.status(Response.Status.NO_CONTENT).build()); assertTrue(client.delete("idStrategy", DataCategory.OBJECT, "idObject")); VitamThreadUtils.getVitamSession().setTenantId(TENANT_ID); assertTrue(client.delete("idStrategy", DataCategory.UNIT, "idUnits")); VitamThreadUtils.getVitamSession().setTenantId(TENANT_ID); assertTrue(client.delete("idStrategy", DataCategory.LOGBOOK, "idLogbooks")); VitamThreadUtils.getVitamSession().setTenantId(TENANT_ID); assertTrue(client.delete("idStrategy", DataCategory.OBJECTGROUP, "idObjectGroups")); }
@Override public boolean delete(String strategyId, DataCategory type, String guid) throws StorageServerClientException { return delete(strategyId, type, guid, new ArrayList<>()); }
StorageClientRest extends DefaultClient implements StorageClient { @Override public boolean delete(String strategyId, DataCategory type, String guid) throws StorageServerClientException { return delete(strategyId, type, guid, new ArrayList<>()); } }
StorageClientRest extends DefaultClient implements StorageClient { @Override public boolean delete(String strategyId, DataCategory type, String guid) throws StorageServerClientException { return delete(strategyId, type, guid, new ArrayList<>()); } StorageClientRest(StorageClientFactory factory); }
StorageClientRest extends DefaultClient implements StorageClient { @Override public boolean delete(String strategyId, DataCategory type, String guid) throws StorageServerClientException { return delete(strategyId, type, guid, new ArrayList<>()); } StorageClientRest(StorageClientFactory factory); @Override JsonNode getStorageInformation(String strategyId); @Override List<String> getOffers(String strategyId); @Override StoredInfoResult storeFileFromWorkspace(String strategyId, DataCategory type, String guid,
        ObjectDescription description); @Override BulkObjectStoreResponse bulkStoreFilesFromWorkspace(String strategyId,
        BulkObjectStoreRequest bulkObjectStoreRequest); @Override boolean existsContainer(String strategyId); @Override Map<String, Boolean> exists(String strategyId, DataCategory type, String guid, List<String> offerIds); @Override JsonNode getInformation(String strategyId, DataCategory type, String guid, List<String> offerIds,
        boolean noCache); @Override RequestResponse<BatchObjectInformationResponse> getBatchObjectInformation(String strategyId,
        DataCategory type, Collection<String> offerIds,
        Collection<String> objectIds); @Override boolean delete(String strategyId, DataCategory type, String guid); @Override boolean delete(String strategyId, DataCategory type, String guid, List<String> offerIds); @Override Response getContainerAsync(String strategyId, String guid, DataCategory type, AccessLogInfoModel logInfo); @Override CloseableIterator<ObjectEntry> listContainer(String strategyId, DataCategory type); @Override RequestResponseOK storageAccessLogBackup(); @Override RequestResponseOK storageLogBackup(); @Override RequestResponseOK storageLogTraceability(); @Override RequestResponseOK copyObjectToOneOfferAnother(String objectId, DataCategory category, String source,
        String destination, String strategyId); @Override RequestResponseOK create(String strategyId, String objectId, DataCategory category, InputStream inputStream,
        Long inputStreamSize,
        List<String> offerIds); @Override RequestResponse<OfferLog> getOfferLogs(String strategyId, DataCategory type, Long offset, int limit,
        Order order); @Override RequestResponse<StorageStrategy> getStorageStrategies(); }
StorageClientRest extends DefaultClient implements StorageClient { @Override public boolean delete(String strategyId, DataCategory type, String guid) throws StorageServerClientException { return delete(strategyId, type, guid, new ArrayList<>()); } StorageClientRest(StorageClientFactory factory); @Override JsonNode getStorageInformation(String strategyId); @Override List<String> getOffers(String strategyId); @Override StoredInfoResult storeFileFromWorkspace(String strategyId, DataCategory type, String guid,
        ObjectDescription description); @Override BulkObjectStoreResponse bulkStoreFilesFromWorkspace(String strategyId,
        BulkObjectStoreRequest bulkObjectStoreRequest); @Override boolean existsContainer(String strategyId); @Override Map<String, Boolean> exists(String strategyId, DataCategory type, String guid, List<String> offerIds); @Override JsonNode getInformation(String strategyId, DataCategory type, String guid, List<String> offerIds,
        boolean noCache); @Override RequestResponse<BatchObjectInformationResponse> getBatchObjectInformation(String strategyId,
        DataCategory type, Collection<String> offerIds,
        Collection<String> objectIds); @Override boolean delete(String strategyId, DataCategory type, String guid); @Override boolean delete(String strategyId, DataCategory type, String guid, List<String> offerIds); @Override Response getContainerAsync(String strategyId, String guid, DataCategory type, AccessLogInfoModel logInfo); @Override CloseableIterator<ObjectEntry> listContainer(String strategyId, DataCategory type); @Override RequestResponseOK storageAccessLogBackup(); @Override RequestResponseOK storageLogBackup(); @Override RequestResponseOK storageLogTraceability(); @Override RequestResponseOK copyObjectToOneOfferAnother(String objectId, DataCategory category, String source,
        String destination, String strategyId); @Override RequestResponseOK create(String strategyId, String objectId, DataCategory category, InputStream inputStream,
        Long inputStreamSize,
        List<String> offerIds); @Override RequestResponse<OfferLog> getOfferLogs(String strategyId, DataCategory type, Long offset, int limit,
        Order order); @Override RequestResponse<StorageStrategy> getStorageStrategies();  }