In putPermission, the parameter objPerm has the type WSObjectPermission and returns type WSObjectPermission.
To call putPermission:
WSObjectPermission objectPermission = new WSObjectPermission();
objectPermission.setUri(resourceUri);
objectPermission.setPermissionMask(2);
WSUser wsUser = new WSUser();
wsUser.setUsername("joeuser");
wsUser.setTenantId("organization_1");
objectPermission.setPermissionRecipient(wsUser);
WSObjectPermission value = binding.putPermission(objectPermission);
The setPermissionMask() function accepts the following values. It is not a true mask because bit-wise combinations of these values are not supported by the server. These values should be treated as constants: