|
Agreed Florent. I added a couple of other points above after I filed this.
Ryan, my understanding is that the spec describes:
- workspace collection types-children points to Feed (ex: $SERVER/atom/types) - inside an Entry for an Object, link cmis-type points to Entry (ex: $SERVER/atom/type/${typeid}) There needs to be also a Feed to model getTypes with typeId (ex: $SERVER/atom/types/${typeid}) but I'm not sure what would give us this URI. Maybe a link cmis-types-descendants returned inside an Entry for a Type? I'm not sure how to add a proposal to this issue - it isn't an option - perhaps because there are already comments? Anyway here's my proposal:
Proposal: Make getTypeDefinition/getTypeChildren/getTypeDescendants consistent with getProperties/getChildren/getDescendants (in behavior and structure - and note more consistent naming). Specifically: * getTypeDefinition should return an Entry describing a single type * getTypeChildren should return the direct children of a type (or the root type) as a Feed. The resource should identify the type whose children will be fetched. Optional (query) args include includePropertyDefinintions, maxItems, skipCount. * getTypeDescendants should return the descendants of a type (or the root type) as a feed with nesting (child types will be contained in their parent's atom:entry) up to the specified depth. The resource should identify the type whose descendants will be fetched. Optional (query) args include includePropertyDefinintions, and depth. -- This one is causing us some grief in prototyping and I would update its priority to Critical. Yes this is still accurate. There is no typesChildren service defined in Part I, but Part II defines a collection for this purpose. Part II adds the distinct concept of types children which isn't specified in Part I. Should we have a single service to satisfy the types-children and types-desendants behavior or should we define two services?
Proposal: Rename getTypes to getTypeChildren. This service should not return the type requested by the typeId, but only return the children as requested. Introduce a getTypeDescendants service that behaves similarly but returns the full descendants list. This mirrors the similar services as defined for folders. |
|||||||||||||||||||||||||||||||||||||||
But I agree that the description of TypesDescendants in part II are probably a copy/paste error, the TypesDescendants feed should be described differently.