Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.leanix.api.ProjectsApi Maven / Gradle / Ivy
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 LeanIX GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.leanix.api;
import net.leanix.api.common.ApiException;
import net.leanix.api.common.ApiClient;
import net.leanix.api.models.FactSheetHasParent;
import net.leanix.api.models.ProjectHasBusinessCapability;
import net.leanix.api.models.FactSheetHasDocument;
import net.leanix.api.models.FactSheetHasPredecessor;
import net.leanix.api.models.FactSheetHasRequires;
import net.leanix.api.models.FactSheetHasLifecycle;
import net.leanix.api.models.FactSheetHasChild;
import net.leanix.api.models.ServiceHasProject;
import net.leanix.api.models.UserSubscription;
import net.leanix.api.models.ProjectHasResource;
import net.leanix.api.models.ProjectHasProvider;
import net.leanix.api.models.FactSheetHasSuccessor;
import net.leanix.api.models.FactSheetHasRequiredby;
import net.leanix.api.models.Project;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ProjectsApi
{
private ApiClient apiClient;
public ProjectsApi(ApiClient client)
{
this.apiClient = client;
}
public void setClient(ApiClient client)
{
this.apiClient = client;
}
public ApiClient getClient()
{
return this.apiClient;
}
public List getProjects (Boolean relations, String filter) throws ApiException
{
// create path and map variables
String path = "/projects".replaceAll("\\{format\\}","json");
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
if(!"null".equals(String.valueOf(relations)))
queryParams.put("relations", String.valueOf(relations));
if(!"null".equals(String.valueOf(filter)))
queryParams.put("filter", String.valueOf(filter));
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", Project.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public Project createProject (Project body) throws ApiException
{
// create path and map variables
String path = "/projects".replaceAll("\\{format\\}","json");
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (Project) ApiClient.deserialize(response, "", Project.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public Project getProject (String ID, Boolean relations) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
if(!"null".equals(String.valueOf(relations)))
queryParams.put("relations", String.valueOf(relations));
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (Project) ApiClient.deserialize(response, "", Project.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public Project updateProject (String ID, Project body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (Project) ApiClient.deserialize(response, "", Project.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteProject (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getFactSheetHasParents (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasParents".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", FactSheetHasParent.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasParent createFactSheetHasParent (String ID, FactSheetHasParent body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasParents".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasParent) ApiClient.deserialize(response, "", FactSheetHasParent.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasParent getFactSheetHasParent (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasParents/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (FactSheetHasParent) ApiClient.deserialize(response, "", FactSheetHasParent.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasParent updateFactSheetHasParent (String ID, String relationID, FactSheetHasParent body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasParents/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasParent) ApiClient.deserialize(response, "", FactSheetHasParent.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteFactSheetHasParent (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasParents/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getFactSheetHasChildren (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasChildren".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", FactSheetHasChild.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasChild createFactSheetHasChild (String ID, FactSheetHasChild body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasChildren".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasChild) ApiClient.deserialize(response, "", FactSheetHasChild.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasChild getFactSheetHasChild (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasChildren/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (FactSheetHasChild) ApiClient.deserialize(response, "", FactSheetHasChild.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasChild updateFactSheetHasChild (String ID, String relationID, FactSheetHasChild body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasChildren/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasChild) ApiClient.deserialize(response, "", FactSheetHasChild.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteFactSheetHasChild (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasChildren/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getFactSheetHasDocuments (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasDocuments".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", FactSheetHasDocument.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasDocument createFactSheetHasDocument (String ID, FactSheetHasDocument body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasDocuments".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasDocument) ApiClient.deserialize(response, "", FactSheetHasDocument.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasDocument getFactSheetHasDocument (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasDocuments/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (FactSheetHasDocument) ApiClient.deserialize(response, "", FactSheetHasDocument.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasDocument updateFactSheetHasDocument (String ID, String relationID, FactSheetHasDocument body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasDocuments/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasDocument) ApiClient.deserialize(response, "", FactSheetHasDocument.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteFactSheetHasDocument (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasDocuments/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getFactSheetHasLifecycles (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasLifecycles".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", FactSheetHasLifecycle.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasLifecycle createFactSheetHasLifecycle (String ID, FactSheetHasLifecycle body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasLifecycles".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasLifecycle) ApiClient.deserialize(response, "", FactSheetHasLifecycle.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasLifecycle getFactSheetHasLifecycle (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasLifecycles/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (FactSheetHasLifecycle) ApiClient.deserialize(response, "", FactSheetHasLifecycle.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasLifecycle updateFactSheetHasLifecycle (String ID, String relationID, FactSheetHasLifecycle body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasLifecycles/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasLifecycle) ApiClient.deserialize(response, "", FactSheetHasLifecycle.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteFactSheetHasLifecycle (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasLifecycles/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getUserSubscriptions (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/userSubscriptions".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", UserSubscription.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public UserSubscription createUserSubscription (String ID, UserSubscription body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/userSubscriptions".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (UserSubscription) ApiClient.deserialize(response, "", UserSubscription.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public UserSubscription getUserSubscription (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/userSubscriptions/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (UserSubscription) ApiClient.deserialize(response, "", UserSubscription.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public UserSubscription updateUserSubscription (String ID, String relationID, UserSubscription body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/userSubscriptions/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (UserSubscription) ApiClient.deserialize(response, "", UserSubscription.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteUserSubscription (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/userSubscriptions/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getFactSheetHasPredecessors (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasPredecessors".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", FactSheetHasPredecessor.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasPredecessor createFactSheetHasPredecessor (String ID, FactSheetHasPredecessor body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasPredecessors".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasPredecessor) ApiClient.deserialize(response, "", FactSheetHasPredecessor.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasPredecessor getFactSheetHasPredecessor (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasPredecessors/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (FactSheetHasPredecessor) ApiClient.deserialize(response, "", FactSheetHasPredecessor.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasPredecessor updateFactSheetHasPredecessor (String ID, String relationID, FactSheetHasPredecessor body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasPredecessors/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasPredecessor) ApiClient.deserialize(response, "", FactSheetHasPredecessor.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteFactSheetHasPredecessor (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasPredecessors/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getFactSheetHasSuccessors (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasSuccessors".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", FactSheetHasSuccessor.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasSuccessor createFactSheetHasSuccessor (String ID, FactSheetHasSuccessor body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasSuccessors".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasSuccessor) ApiClient.deserialize(response, "", FactSheetHasSuccessor.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasSuccessor getFactSheetHasSuccessor (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasSuccessors/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (FactSheetHasSuccessor) ApiClient.deserialize(response, "", FactSheetHasSuccessor.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasSuccessor updateFactSheetHasSuccessor (String ID, String relationID, FactSheetHasSuccessor body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasSuccessors/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasSuccessor) ApiClient.deserialize(response, "", FactSheetHasSuccessor.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteFactSheetHasSuccessor (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasSuccessors/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getFactSheetHasRequiresAll (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequires".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", FactSheetHasRequires.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasRequires createFactSheetHasRequires (String ID, FactSheetHasRequires body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequires".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasRequires) ApiClient.deserialize(response, "", FactSheetHasRequires.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasRequires getFactSheetHasRequires (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequires/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (FactSheetHasRequires) ApiClient.deserialize(response, "", FactSheetHasRequires.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasRequires updateFactSheetHasRequires (String ID, String relationID, FactSheetHasRequires body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequires/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasRequires) ApiClient.deserialize(response, "", FactSheetHasRequires.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteFactSheetHasRequires (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequires/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getFactSheetHasRequiredByAll (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequiredby".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", FactSheetHasRequiredby.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasRequiredby createFactSheetHasRequiredby (String ID, FactSheetHasRequiredby body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequiredby".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasRequiredby) ApiClient.deserialize(response, "", FactSheetHasRequiredby.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasRequiredby getFactSheetHasRequiredby (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequiredby/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (FactSheetHasRequiredby) ApiClient.deserialize(response, "", FactSheetHasRequiredby.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public FactSheetHasRequiredby updateFactSheetHasRequiredby (String ID, String relationID, FactSheetHasRequiredby body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequiredby/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (FactSheetHasRequiredby) ApiClient.deserialize(response, "", FactSheetHasRequiredby.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteFactSheetHasRequiredby (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/factSheetHasRequiredby/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getServiceHasProjects (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/serviceHasProjects".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", ServiceHasProject.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public ServiceHasProject createServiceHasProject (String ID, ServiceHasProject body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/serviceHasProjects".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
if (response != null)
{
return (ServiceHasProject) ApiClient.deserialize(response, "", ServiceHasProject.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public ServiceHasProject getServiceHasProject (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/serviceHasProjects/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (ServiceHasProject) ApiClient.deserialize(response, "", ServiceHasProject.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public ServiceHasProject updateServiceHasProject (String ID, String relationID, ServiceHasProject body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/serviceHasProjects/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "PUT", queryParams, body, headerParams);
if (response != null)
{
return (ServiceHasProject) ApiClient.deserialize(response, "", ServiceHasProject.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public void deleteServiceHasProject (String ID, String relationID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/serviceHasProjects/{relationID}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString())).replaceAll("\\{" + "relationID" + "\\}", apiClient.escapeString(relationID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null || relationID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "DELETE", queryParams, null, headerParams);
if (response != null)
{
return ;
}
else
{
return ;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return ;
}
else
{
throw ex;
}
}
}
public List getProjectHasBusinessCapabilities (String ID) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/projectHasBusinessCapabilities".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map headerParams = new HashMap();
// verify required params are set
if(ID == null )
{
throw new ApiException(400, "missing required params");
}
try
{
String response = apiClient.invokeAPI(path, "GET", queryParams, null, headerParams);
if (response != null)
{
return (List) ApiClient.deserialize(response, "Array", ProjectHasBusinessCapability.class);
}
else
{
return null;
}
}
catch (ApiException ex)
{
if(ex.getCode() == 404)
{
return null;
}
else
{
throw ex;
}
}
}
public ProjectHasBusinessCapability createProjectHasBusinessCapability (String ID, ProjectHasBusinessCapability body) throws ApiException
{
// create path and map variables
String path = "/projects/{ID}/projectHasBusinessCapabilities".replaceAll("\\{format\\}","json").replaceAll("\\{" + "ID" + "\\}", apiClient.escapeString(ID.toString()));
// query params
Map queryParams = new HashMap();
Map