findOwners() method

The way our content items are designed is that all the content items have a grand/ grand grand owner content item of content type P_Type.

The findOwners() method returns only the immediate owner of a content Item. I needed to find the P_Item guid for a given content item. I was thinking to setup the PSRelationshipFilter and setOwnerType in it as P_Type.

Is there any API you could recommend that I can invoke to get the P_Type owner for a given GUID. Or I would need to write the custom code to recursively get all the parents, and then scan the list for P_Type owner.

thanks
Manvinder

Filter by owner’s Content Type should call setOwnerContentTypeId() on the relationship filter. Note, the ID may be the getUUID() of the Content Type GUID.

You may have to create a custom code to recursively call findOwners()