Checks if a Permission exists for the provided ownerKey, resourceType and permissionType. If it
does, adds the resourceIds to this entry. If it does not, creates a new Permission with the
provided resourceIds.
Parameters:
ownerKey - the key of the owner of the permissions. This could be a userKey, a roleKey or
a groupKey
resourceType - the type of resource the permissions are for (Eg. Process definition, Job)
permissionType - The type of permission being granted (Eg. READ, WRITE)
resourceIds - A list of resourceIds the permissions are granted for (Eg.
bpmnProcessId:foo, *)