public class CategoryRestUtils extends BaseRestUtils
Modifier and Type | Class and Description |
---|---|
static class |
CategoryRestUtils.CategoryAuditJsonKeysEnum |
acceptHeaderData, acceptJsonHeader, acceptOctetHeader, acceptOctetStream, authorizationHeader, authorizationPrefixString, contentTypeHeaderData, ecomp, PRODUCT_COMPONENT_TYPE, RESOURCE_COMPONENT_TYPE, RESTRICTED_OPERATION, SERVICE_COMPONENT_TYPE, STATUS_CODE_ALREADY_EXISTS, STATUS_CODE_COMPONENT_NAME_EXCEEDS_LIMIT, STATUS_CODE_DELETE, STATUS_CODE_GET_SUCCESS, STATUS_CODE_IMPORT_SUCCESS, STATUS_CODE_INVALID_CONTENT, STATUS_CODE_MISSING_COMPONENT_NAME, STATUS_CODE_MISSING_DATA, STATUS_CODE_MISSING_INFORMATION, STATUS_CODE_NOT_FOUND, STATUS_CODE_RESTRICTED_ACCESS, STATUS_CODE_RESTRICTED_OPERATION, STATUS_CODE_SUCCESS, STATUS_CODE_SUCCESS_DELETE, STATUS_CODE_SUCCESS_NO_CONTENT, STATUS_CODE_UNSUPPORTED_ERROR, STATUS_CODE_UPDATE_SUCCESS, SUCCESS_MESSAGE
Constructor and Description |
---|
CategoryRestUtils() |
Modifier and Type | Method and Description |
---|---|
static RestResponse |
createCategory(CategoryDefinition categoryDefinition,
User sdncModifierDetails,
String categoryType) |
static RestResponse |
createGrouping(GroupingDefinition grouping,
SubCategoryDefinition subCategory,
CategoryDefinition parentCategory,
User sdncModifierDetails,
String categoryType) |
static RestResponse |
createServiceCategoryHttpCspAtuUidIsMissing(CategoryDefinition categoryDataDefinition,
User sdncModifierDetails) |
static RestResponse |
createSubCategory(SubCategoryDefinition subCategory,
CategoryDefinition parentCategory,
User sdncModifierDetails,
String categoryType) |
static RestResponse |
createSubCategoryHttpCspAtuUidIsMissing(SubCategoryDefinition subCategory,
CategoryDefinition parentCategory,
User sdncModifierDetails,
String categoryType) |
static RestResponse |
deleteCategory(String categoryId,
String psUserId,
String categoryType) |
static RestResponse |
deleteCatergoryHttpCspAtuUidIsMissing(CategoryDefinition categoryDataDefinition,
User sdncModifierDetails) |
static RestResponse |
deleteGrouping(String groupId,
String subCategoryId,
String categoryId,
String psUserId,
String categoryType) |
static RestResponse |
deleteSubCategory(String subCategoryId,
String categoryId,
String psUserId,
String categoryType) |
static RestResponse |
getAllCategories(User sdncModifierDetails,
String categoryType) |
static RestResponse |
getAllCategoriesTowardsFe(User sdncModifierDetails,
String categoryType) |
static int |
getMatchingCategoriesNum(RestResponse getAllCategoryRest,
CategoryDefinition categoryDefinition) |
static int |
getMatchingGroupingNum(RestResponse getAllCategoryRest,
String parentCategoryId,
String subCategoryId,
GroupingDefinition expectedGroupingDefinition) |
static int |
getMatchingSubCategoriesNum(RestResponse getAllCategoryRest,
String parentCategoryId,
SubCategoryDefinition expectedSubCategoryDefinition) |
static RestResponse |
importCategories(org.apache.http.entity.mime.MultipartEntityBuilder mpBuilder,
String userId) |
addAuthorizeHeader, encodeUrlForDownload, prepareHeadersMap, prepareHeadersMap, sendDelete, sendGet, sendGet, sendGetAndRemoveHeaders, sendPost, sendPost, sendPost, sendPut
checkCreateResponse, checkDeleteResponse, checkErrorCode, checkErrorMessageResponse, checkErrorResponse, checkStatusCode, checkSuccess
public static RestResponse createCategory(CategoryDefinition categoryDefinition, User sdncModifierDetails, String categoryType) throws Exception
Exception
public static RestResponse getAllCategories(User sdncModifierDetails, String categoryType) throws Exception
Exception
public static RestResponse getAllCategoriesTowardsFe(User sdncModifierDetails, String categoryType) throws Exception
Exception
public static RestResponse deleteCategory(String categoryId, String psUserId, String categoryType) throws Exception
Exception
public static RestResponse createSubCategory(SubCategoryDefinition subCategory, CategoryDefinition parentCategory, User sdncModifierDetails, String categoryType) throws Exception
Exception
public static RestResponse deleteSubCategory(String subCategoryId, String categoryId, String psUserId, String categoryType) throws Exception
Exception
public static RestResponse deleteGrouping(String groupId, String subCategoryId, String categoryId, String psUserId, String categoryType) throws Exception
Exception
public static RestResponse createServiceCategoryHttpCspAtuUidIsMissing(CategoryDefinition categoryDataDefinition, User sdncModifierDetails) throws Exception
Exception
public static RestResponse createSubCategoryHttpCspAtuUidIsMissing(SubCategoryDefinition subCategory, CategoryDefinition parentCategory, User sdncModifierDetails, String categoryType) throws Exception
Exception
public static RestResponse deleteCatergoryHttpCspAtuUidIsMissing(CategoryDefinition categoryDataDefinition, User sdncModifierDetails) throws Exception
Exception
public static RestResponse createGrouping(GroupingDefinition grouping, SubCategoryDefinition subCategory, CategoryDefinition parentCategory, User sdncModifierDetails, String categoryType) throws Exception
Exception
public static RestResponse importCategories(org.apache.http.entity.mime.MultipartEntityBuilder mpBuilder, String userId) throws IOException
IOException
public static int getMatchingCategoriesNum(RestResponse getAllCategoryRest, CategoryDefinition categoryDefinition)
public static int getMatchingSubCategoriesNum(RestResponse getAllCategoryRest, String parentCategoryId, SubCategoryDefinition expectedSubCategoryDefinition)
public static int getMatchingGroupingNum(RestResponse getAllCategoryRest, String parentCategoryId, String subCategoryId, GroupingDefinition expectedGroupingDefinition)
Copyright © 2017. All rights reserved.