putPermission

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:

No access: 0
Read-delete: 18
Administer: 1
Read-write-delete: 30
Read-only: 2
Execute-only: 32

The return is:

String getUri()
Object getPermissionRecipient()
int getPermissionMask()
String getRoleName()
String getTenantId()
WSUser[] getUsers()
String getUsername()
String getFullName()
String getPassword()
String getEmailAddress()
Boolean getExternallyDefined()
Boolean getEnabled()
Date getPreviousPasswordChangeTime()
String getTenantId()
WSRole[] getRoles()
Version: 
Feedback