/**
 * Hub Common
 *
 * Copyright (C) 2017 Black Duck Software, Inc.
 * http://www.blackducksoftware.com/
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package com.blackducksoftware.integration.hub.api.bom;

import com.blackducksoftware.integration.exception.IntegrationException;
import com.blackducksoftware.integration.hub.api.item.MetaService;
import com.blackducksoftware.integration.hub.model.view.IssueView;
import com.blackducksoftware.integration.hub.request.HubRequest;
import com.blackducksoftware.integration.hub.rest.RestConnection;
import com.blackducksoftware.integration.hub.service.HubResponseService;

import okhttp3.Response;

public class BomComponentIssueRequestService extends HubResponseService {

    private final MetaService metaService;

    public BomComponentIssueRequestService(final RestConnection restConnection, final MetaService metaService) {
        super(restConnection);
        this.metaService = metaService;
    }

    public String createIssue(final IssueView issueItem, final String url) throws IntegrationException {
        final HubRequest request = getHubRequestFactory().createRequest(url);
        try (Response response = request.executePost(getGson().toJson(issueItem))) {
            return response.header("location");
        }
    }

    public void updateIssue(final IssueView issueItem, final String url) throws IntegrationException {
        final HubRequest request = getHubRequestFactory().createRequest(url);
        try (Response response = request.executePut(getGson().toJson(issueItem))) {

        }
    }

    public void deleteCodeLocation(final IssueView issueItem) throws IntegrationException {
        final String codeLocationItemUrl = metaService.getHref(issueItem);
        deleteCodeLocation(codeLocationItemUrl);
    }

    public void deleteCodeLocation(final String issueItemUrl) throws IntegrationException {
        final HubRequest request = getHubRequestFactory().createRequest(issueItemUrl);
        request.executeDelete();
    }
}

@@ -2339,36 +2339,29 @@
  void delete
-CodeLocation
+Issue
 (final Issue
@@ -2495,28 +2495,21 @@
   delete
-CodeLocation
+Issue
 (codeLoc
@@ -2556,20 +2556,13 @@
 lete
-CodeLocation
+Issue
 (fin

Fix the method name to be deleteIssue