On Aug 23, 2011, at 6:17 PM, Jerome Velociter wrote:

> Hello devs,
> 
> I've been working on the support of pretty thumbnails picture for XE
> (other mail coming on later). I've had the need for a couple of new
> bridge APIs, namely in DocumentAccessBridge :
> 
>  int getObjectNumber(DocumentReference documentReference,
> DocumentReference classReference, String parameterName, String
> valueToMatch);
> 
> to get the number of the first object that has a property with a
> certain value in a document. Sort of similar to
> com.xpn.xwiki.api.Document#getObject(String, String, String)
> 
>  Object getProperty(DocumentReference documentReference,
> DocumentReference classReference, int objectNumber, String
> propertyName);
> 
> to get the value of a property for the Nth object of a class in a
> document (to be used in combination with the previous one for
> example).
> 
> and finally :
> 
>  Object getProperty(ObjectReference objectReference, String propertyName);
>  Object getProperty(ObjectPropertyReference objectPropertyReference);
> 
> two new APIs to get properties value based both on object reference +
> property name, or just property reference
> 
> Let me know what you think
> 
> My +1

+1

Thanks
-Vincent

PS: I really need to continue the work on the new model...
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to