tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

hasRelatedChildren method for IExtendedContent #42

Closed zkeller closed 10 years ago

zkeller commented 10 years ago

The question I have is: would it make sense to have a 'hasRelatedChildren' (and 'hasRelatedParents') method in OC?

The reasoning: For related objects, if the 'show annotations' option is selected, we have to make a call to OC to find out if the object has annotations related to it. This ultimately makes a call to getRelatedChildren, which after querying for the children, then gets the properties for each of them and returns. In this scenario, we only want to know if there are any children, fetching them does nothing for us but waste time. Related Objects takes long enough to load as it is, reducing time where we can might be worth it.

gsteimer commented 10 years ago

I think it makes sense, just for the case you mentioned - where we want to determine if a relationship exists, but not necessarily get the related content...