[xwiki-devs] [VOTE] New bridge APIs
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 -- Jerome Velociter Winesquare http://www.winesquare.net/
+1 2011/8/23 Jerome Velociter <jerome@winesquare.net>
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
-- Jerome Velociter Winesquare http://www.winesquare.net/ _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
Anyone ? I'd like to commit them if nobody opposes. Thanks, Jerome On Tue, Aug 23, 2011 at 6:17 PM, Jerome Velociter <jerome@winesquare.net> 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
-- Jerome Velociter Winesquare http://www.winesquare.net/
-- Jerome Velociter Winesquare http://www.winesquare.net/
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...
+0 On Tue, Aug 23, 2011 at 6:17 PM, Jerome Velociter <jerome@winesquare.net> 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
-- Jerome Velociter Winesquare http://www.winesquare.net/ _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
+1 Caleb On 08/23/2011 12: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
4 +1 (1 non binding), 1 +0, no -1 Vote passed. Thanks. On Tue, Aug 23, 2011 at 6:17 PM, Jerome Velociter <jerome@winesquare.net> 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
-- Jerome Velociter Winesquare http://www.winesquare.net/
-- Jerome Velociter Winesquare http://www.winesquare.net/
participants (5)
-
Caleb James DeLisle -
chakib dohsset -
Jerome Velociter -
Thomas Mortagne -
Vincent Massol