public class UserRestUtils extends BaseRestUtils
acceptHeaderData, acceptJsonHeader, acceptOctetHeader, acceptOctetStream, authorizationHeader, authorizationPrefixString, ecomp, PRODUCT_COMPONENT_TYPE, RESOURCE_COMPONENT_TYPE, RESTRICTED_OPERATION, SERVICE_COMPONENT_TYPE, STATUS_CODE_ALREADY_EXISTS, STATUS_CODE_COMPONENT_NAME_EXCEEDS_LIMIT, STATUS_CODE_CREATED, 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 |
---|
UserRestUtils() |
Modifier and Type | Method and Description |
---|---|
static RestResponse |
authorizedUserTowardsCatalogBe(User sdncUserDetails) |
static RestResponse |
authorizedUserTowardsCatalogBeQA(User sdncUserDetails) |
static RestResponse |
createUser(User sdncUserDetails,
User sdncModifierDetails) |
static RestResponse |
deactivateUser(User sdncUserDetails,
User sdncModifierDetails) |
static RestResponse |
deActivateUser(User sdncUserDetails,
User sdncModifierDetails) |
static RestResponse |
deleteUser(User sdncUserDetails,
User sdncModifierDetails,
boolean isForceDelete) |
static RestResponse |
getAllAdminUsers(User sdncModifierDetails) |
static RestResponse |
getUser(User sdncUserDetails,
User sdncModifierDetails) |
static RestResponse |
getUsersByRoles(User sdncModifierDetails,
String roles) |
static RestResponse |
getUsersByRolesHttpCspAtuUidIsMissing(User sdncModifierDetails,
String roles) |
static RestResponse |
updateUser(User sdncUserDetails,
User sdncModifierDetails) |
static RestResponse |
updateUserRole(User sdncUserDetails,
User sdncModifierDetails,
String userIdToUpdate) |
addAuthorizeHeader, encodeUrlForDownload, prepareHeadersMap, prepareHeadersMap, sendDelete, sendGet, sendGet, sendGetAndRemoveHeaders, sendPost, sendPost, sendPost, sendPut
checkCreateResponse, checkDeleteResponse, checkErrorCode, checkErrorMessageResponse, checkErrorResponse, checkStatusCode, checkSuccess
public static RestResponse createUser(User sdncUserDetails, User sdncModifierDetails) throws IOException
IOException
public static RestResponse deactivateUser(User sdncUserDetails, User sdncModifierDetails) throws IOException
IOException
public static RestResponse deActivateUser(User sdncUserDetails, User sdncModifierDetails) throws IOException
IOException
public static RestResponse deleteUser(User sdncUserDetails, User sdncModifierDetails, boolean isForceDelete) throws IOException
IOException
public static RestResponse updateUser(User sdncUserDetails, User sdncModifierDetails) throws IOException, CloneNotSupportedException
public static RestResponse updateUserRole(User sdncUserDetails, User sdncModifierDetails, String userIdToUpdate) throws IOException
IOException
public static RestResponse getUser(User sdncUserDetails, User sdncModifierDetails) throws IOException
IOException
public static RestResponse getAllAdminUsers(User sdncModifierDetails) throws IOException
IOException
public static RestResponse getUsersByRoles(User sdncModifierDetails, String roles) throws IOException
IOException
public static RestResponse getUsersByRolesHttpCspAtuUidIsMissing(User sdncModifierDetails, String roles) throws Exception
Exception
public static RestResponse authorizedUserTowardsCatalogBe(User sdncUserDetails) throws IOException
IOException
public static RestResponse authorizedUserTowardsCatalogBeQA(User sdncUserDetails) throws IOException
IOException
Copyright © 2017. All rights reserved.