disableUser

This action disables a user account within ExtraView. Note that there is no facility to delete a user account. This is to keep referential integrity within the database. Users that you want to disable will have created and/or updated issues and their details are required historically in order to be able to display their information.

Input

Class

Name

Type

Required

Details

RemoveUserRequest

userId

String

Yes

The callers user name

RemoveUserRequest

password

String

Yes

The callers password

RemoveUserRequest

deleteUserId

String

Yes

The user id you want to delete

Output

Class

Name

Type

Required

Details

RemoveUserResponse

success

boolean

Yes

True is succeeded False if failed

RemoveUserResponse

returnCode

String

No

See Appendix for details

RemoveUserResponse

returnMessage

String

No

Human readable message

Example

public static void testDisableUser(EVUserServiceStub stub) {
    try {
        DisableUserDocument reqEnvelope = DisableUserDocument.Factory.newInstance();
        DisableUserRequest request = reqEnvelope.addNewDisableUser().addNewRequest();
        request.setRemoveUserId(ServiceClientHelper.generatedUserId);
        request.setUserId(ServiceClientHelper.ADMIN_USER_ID);
        request.setPassword(ServiceClientHelper.ADMIN_PASSWORD);
        DisableUserResponseDocument resEnvelope = stub.disableUser(reqEnvelope);
        DisableUserResponse response = resEnvelope.getDisableUserResponse().getReturn();
        if (response.getSuccess()) {
            System.out.println("success: [" + response.getReturnCode() + "] : " +
                                              response.getReturnMessage());
        } else {
            System.out.println("failure: [" + response.getReturnCode() + "] : " +
                                              response.getReturnMessage());
        }
    } catch (Exception e) {
        e.printStackTrace();
        System.err.println("nnn");
    }
}