In getPermissionsForObject, the parameter targetURI has the type String and returns type WSObjectPermission[].

To call getPermissionsForObject:

WSObjectPermission[] objectPermissions = binding.getPermissionsForObject(“repo:/);

In the return, the permissioned object can be a user or role:

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()