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.
package com.factset.sdk.IRNConfiguration.api;
import com.factset.sdk.IRNConfiguration.ApiException;
import com.factset.sdk.IRNConfiguration.ApiClient;
import com.factset.sdk.IRNConfiguration.ApiResponse;
import com.factset.sdk.IRNConfiguration.Configuration;
import com.factset.sdk.IRNConfiguration.Pair;
import javax.ws.rs.core.GenericType;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import com.factset.sdk.IRNConfiguration.models.NewItemDto;
import com.factset.sdk.IRNConfiguration.models.ProblemDetails;
import com.factset.sdk.IRNConfiguration.models.RelationshipCategoryDto;
import com.factset.sdk.IRNConfiguration.models.RelationshipCategoryListDto;
import com.factset.sdk.IRNConfiguration.models.RelationshipCategorySaveDto;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ContactsRelationshipCategoryApi {
private ApiClient apiClient;
public ContactsRelationshipCategoryApi() {
this(Configuration.getDefaultApiClient());
}
public ContactsRelationshipCategoryApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
private static final Map createRelationshipCategoryResponseTypeMap = new HashMap();
static {
createRelationshipCategoryResponseTypeMap.put(201, new GenericType(){});
createRelationshipCategoryResponseTypeMap.put(400, new GenericType(){});
createRelationshipCategoryResponseTypeMap.put(0, new GenericType(){});
}
private static final Map deleteRelationshipCategoryResponseTypeMap = new HashMap();
private static final Map editRelationshipCategoryResponseTypeMap = new HashMap();
private static final Map getRelationshipCategoriesResponseTypeMap = new HashMap();
static {
getRelationshipCategoriesResponseTypeMap.put(200, new GenericType>(){});
}
private static final Map updateRelationshipCategoryOrderResponseTypeMap = new HashMap();
/**
* Get the API client
*
* @return API client
*/
public ApiClient getApiClient() {
return apiClient;
}
/**
* Set the API client
*
* @param apiClient an instance of API client
*/
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Create a relationship category
*
* @param relationshipCategorySaveDto RelationshipCategorySaveDto object to save (optional)
* @return NewItemDto
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
400
Bad Request
-
0
Error
-
*/
public NewItemDto createRelationshipCategory(RelationshipCategorySaveDto relationshipCategorySaveDto) throws ApiException {
return createRelationshipCategoryWithHttpInfo(relationshipCategorySaveDto).getData();
}
/**
* Create a relationship category
*
* @param relationshipCategorySaveDto RelationshipCategorySaveDto object to save (optional)
* @return ApiResponse<NewItemDto>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
400
Bad Request
-
0
Error
-
*/
public ApiResponse createRelationshipCategoryWithHttpInfo(RelationshipCategorySaveDto relationshipCategorySaveDto) throws ApiException {
Object localVarPostBody = relationshipCategorySaveDto;
// create path and map variables
String localVarPath = "/v1/relationship-categories";
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarCookieParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json-patch+json", "application/json", "text/json", "application/_*+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" };
ApiResponse<
NewItemDto
> apiResponse = apiClient.invokeAPI("ContactsRelationshipCategoryApi.createRelationshipCategory", localVarPath, "POST", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, createRelationshipCategoryResponseTypeMap, false);
return apiResponse;
}
/**
* Delete a relationship category
*
* @param relationshipCategoryId relationshipCategoryId to delete associated record (required)
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
404
Not Found
-
0
Error
-
*/
public void deleteRelationshipCategory(java.util.UUID relationshipCategoryId) throws ApiException {
deleteRelationshipCategoryWithHttpInfo(relationshipCategoryId);
}
/**
* Delete a relationship category
*
* @param relationshipCategoryId relationshipCategoryId to delete associated record (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
404
Not Found
-
0
Error
-
*/
public ApiResponse deleteRelationshipCategoryWithHttpInfo(java.util.UUID relationshipCategoryId) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'relationshipCategoryId' is set
if (relationshipCategoryId == null) {
throw new ApiException(400, "Missing the required parameter 'relationshipCategoryId' when calling deleteRelationshipCategory");
}
// create path and map variables
String localVarPath = "/v1/relationship-categories/{relationshipCategoryId}"
.replaceAll("\\{" + "relationshipCategoryId" + "\\}", apiClient.escapeString(relationshipCategoryId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarCookieParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" };
ApiResponse<
Void
> apiResponse = apiClient.invokeAPI("ContactsRelationshipCategoryApi.deleteRelationshipCategory", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, deleteRelationshipCategoryResponseTypeMap, false);
return apiResponse;
}
/**
* Edit a relationship category
*
* @param relationshipCategoryId relationshipCategoryId to update associated record (required)
* @param relationshipCategorySaveDto RelationshipCategorySaveDto object to update (optional)
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
Bad Request
-
404
Not Found
-
0
Error
-
*/
public void editRelationshipCategory(java.util.UUID relationshipCategoryId, RelationshipCategorySaveDto relationshipCategorySaveDto) throws ApiException {
editRelationshipCategoryWithHttpInfo(relationshipCategoryId, relationshipCategorySaveDto);
}
/**
* Edit a relationship category
*
* @param relationshipCategoryId relationshipCategoryId to update associated record (required)
* @param relationshipCategorySaveDto RelationshipCategorySaveDto object to update (optional)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
Bad Request
-
404
Not Found
-
0
Error
-
*/
public ApiResponse editRelationshipCategoryWithHttpInfo(java.util.UUID relationshipCategoryId, RelationshipCategorySaveDto relationshipCategorySaveDto) throws ApiException {
Object localVarPostBody = relationshipCategorySaveDto;
// verify the required parameter 'relationshipCategoryId' is set
if (relationshipCategoryId == null) {
throw new ApiException(400, "Missing the required parameter 'relationshipCategoryId' when calling editRelationshipCategory");
}
// create path and map variables
String localVarPath = "/v1/relationship-categories/{relationshipCategoryId}"
.replaceAll("\\{" + "relationshipCategoryId" + "\\}", apiClient.escapeString(relationshipCategoryId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarCookieParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json-patch+json", "application/json", "text/json", "application/_*+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" };
ApiResponse<
Void
> apiResponse = apiClient.invokeAPI("ContactsRelationshipCategoryApi.editRelationshipCategory", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, editRelationshipCategoryResponseTypeMap, false);
return apiResponse;
}
/**
* Get list of the relationship categories configured in your group
*
* @return java.util.List
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public java.util.List getRelationshipCategories() throws ApiException {
return getRelationshipCategoriesWithHttpInfo().getData();
}
/**
* Get list of the relationship categories configured in your group
*
* @return ApiResponse<java.util.List>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
*/
public ApiResponse> getRelationshipCategoriesWithHttpInfo() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/v1/relationship-categories";
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarCookieParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" };
ApiResponse<
java.util.List
> apiResponse = apiClient.invokeAPI("ContactsRelationshipCategoryApi.getRelationshipCategories", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, getRelationshipCategoriesResponseTypeMap, false);
return apiResponse;
}
/**
* Reorder relationship categories
*
* @param relationshipCategoryListDto List of Guid (optional)
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
Bad Request
-
404
Not Found
-
0
Error
-
*/
public void updateRelationshipCategoryOrder(RelationshipCategoryListDto relationshipCategoryListDto) throws ApiException {
updateRelationshipCategoryOrderWithHttpInfo(relationshipCategoryListDto);
}
/**
* Reorder relationship categories
*
* @param relationshipCategoryListDto List of Guid (optional)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
Bad Request
-
404
Not Found
-
0
Error
-
*/
public ApiResponse updateRelationshipCategoryOrderWithHttpInfo(RelationshipCategoryListDto relationshipCategoryListDto) throws ApiException {
Object localVarPostBody = relationshipCategoryListDto;
// create path and map variables
String localVarPath = "/v1/relationship-categories/reorder";
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarCookieParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json-patch+json", "application/json", "text/json", "application/_*+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" };
ApiResponse<
Void
> apiResponse = apiClient.invokeAPI("ContactsRelationshipCategoryApi.updateRelationshipCategoryOrder", localVarPath, "POST", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, updateRelationshipCategoryOrderResponseTypeMap, false);
return apiResponse;
}
}