insertUserRole

This action creates a new user role and user mapping within ExtraView.

Input

Class

Name

Type

Required

Details

InsertUserRoleRequest

userId

String

Yes

The callers user name

InsertUserRoleRequest

password

String

Yes

The callers password

InsertUserRoleRequest

roleId

String

Yes

Therole id you want to add the user too

InsertUserRoleRequest

roleUserId

String

Yes

The user id you want to insert in the role

Output

Class

Name

Type

Required

Details

InsertUserRoleResponse

success

boolean

Yes

True is succeeded False if failed

InsertUserRoleResponse

returnCode

String

No

See Appendix for details

InsertUserRoleResponse

returnMessage

String

No

Human readable message

Example

public static void testInsertUserRole(EVUserServiceStub stub) {
try {
InsertUserRoleDocument reqEnvelope =
InsertUserRoleDocument
.Factory
.newInstance();
InsertUserRoleRequest request =
reqEnvelope
.addNewInsertUserRole()
.addNewParam0();

request.setUserId(
ServiceClientHelper.ADMIN_USER_ID);
request.setPassword(
ServiceClientHelper.ADMIN_PASSWORD);
request.setRoleUserId(
ServiceClientHelper.generatedUserId);
request.setRoleId(
ServiceClientHelper.ADMIN_GROUP);

InsertUserRoleResponseDocument resEnvelope =
stub.insertUserRole(reqEnvelope);
InsertUserRoleResponse response =
resEnvelope
.getInsertUserRoleResponse()
.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");
}
}