[xwiki-devs] [VOTE] New model script service APIs
Hello, For my work on the pretty thumbnails I also had the need to add some service API to the Model module script service. Basically the same kind of APIs that did already exist to resolve documents and attachments from a string representation, but this time to resolve object references and object properties references. Here they are : public ObjectReference resolveObject(String stringRepresentation) public ObjectReference resolveObject(String stringRepresentation, String hint, Object... parameters) public ObjectPropertyReference resolveObjectProperty(String stringRepresentation) public ObjectPropertyReference resolveObjectProperty(String stringRepresentation, String hint, Object... parameters) WDYT ? My +1 -- Jerome Velociter Winesquare http://www.winesquare.net/
+1 On Tue, Aug 23, 2011 at 6:20 PM, Jerome Velociter <jerome@winesquare.net> wrote:
Hello,
For my work on the pretty thumbnails I also had the need to add some service API to the Model module script service. Basically the same kind of APIs that did already exist to resolve documents and attachments from a string representation, but this time to resolve object references and object properties references.
Here they are :
public ObjectReference resolveObject(String stringRepresentation) public ObjectReference resolveObject(String stringRepresentation, String hint, Object... parameters) public ObjectPropertyReference resolveObjectProperty(String stringRepresentation) public ObjectPropertyReference resolveObjectProperty(String stringRepresentation, String hint, Object... parameters)
WDYT ?
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 Thanks -Vincent On Aug 23, 2011, at 6:20 PM, Jerome Velociter wrote:
Hello,
For my work on the pretty thumbnails I also had the need to add some service API to the Model module script service. Basically the same kind of APIs that did already exist to resolve documents and attachments from a string representation, but this time to resolve object references and object properties references.
Here they are :
public ObjectReference resolveObject(String stringRepresentation) public ObjectReference resolveObject(String stringRepresentation, String hint, Object... parameters) public ObjectPropertyReference resolveObjectProperty(String stringRepresentation) public ObjectPropertyReference resolveObjectProperty(String stringRepresentation, String hint, Object... parameters)
WDYT ?
My +1
-- Jerome Velociter
3 +1, no 0, no -1 Vote passed. I will commit them in master right away. Thanks On Tue, Aug 23, 2011 at 6:20 PM, Jerome Velociter <jerome@winesquare.net> wrote:
Hello,
For my work on the pretty thumbnails I also had the need to add some service API to the Model module script service. Basically the same kind of APIs that did already exist to resolve documents and attachments from a string representation, but this time to resolve object references and object properties references.
Here they are :
public ObjectReference resolveObject(String stringRepresentation) public ObjectReference resolveObject(String stringRepresentation, String hint, Object... parameters) public ObjectPropertyReference resolveObjectProperty(String stringRepresentation) public ObjectPropertyReference resolveObjectProperty(String stringRepresentation, String hint, Object... parameters)
WDYT ?
My +1
-- Jerome Velociter Winesquare http://www.winesquare.net/
-- Jerome Velociter Winesquare http://www.winesquare.net/
participants (3)
-
Jerome Velociter -
Thomas Mortagne -
Vincent Massol