This action retrieves a list of the roles for an existing user within ExtraView.

Input

Class

Name

Type

Required

Details

GetUserRolesRequest

userId

String

Yes

The callers user name

GetUserRolesRequest

password

String

Yes

The callers password

Output

Class

Name

Type

Required

Details

GetUserRolesResponse

success

boolean

Yes

True is succeeded False if failed

GetUserRolesResponse

returnCode

String

No

See Appendix for details

GetUserRolesResponse

returnMessage

String

No

Human readable message

GetUserRolesResponse

roles

Array[]

No

A list of Role Objects

Role

roleId

String

Yes

 

Role

currentRole

boolean

Yes

 

Role

roleName

String

Yes

 

Example

public static void testGetUserRoles(EVUserServiceStub stub) {
    try {
        GetUserRolesDocument reqEnvelope = GetUserRolesDocument.Factory.newInstance();
        GetUserRolesRequest request = reqEnvelope.addNewGetUserRoles().addNewRequest();
        request.setUserId(ServiceClientHelper.generatedUserId);
        request.setPassword(ServiceClientHelper.generatedPassword);
        GetUserRolesResponseDocument resEnvelope = stub.getUserRoles(reqEnvelope);
        return resEnvelope.getGetUserRolesResponse().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");
    }
}