[xwiki-devs] [VOTE] Change all document access bridge APIs to use DocumentName instead of String
Hi, Now that we have a DocumentName and factory/serializer I'd like to propose that we change all document access bridge APIs to use DocumentName instead of String. The idea is that string way of referencing a document should be used only at boundaries of the xwiki system and internally we should ony use DocumentName. The reasons are multiple: * less errors since it's a strongly typed api * whenever code manipulates DocumentName it can be sure it contains valid and non null data and thus doesn't need to recheck again Here's my +1 Thanks -Vincent
Vincent Massol wrote:
Hi,
Now that we have a DocumentName and factory/serializer I'd like to propose that we change all document access bridge APIs to use DocumentName instead of String. The idea is that string way of referencing a document should be used only at boundaries of the xwiki system and internally we should ony use DocumentName. The reasons are multiple:
* less errors since it's a strongly typed api * whenever code manipulates DocumentName it can be sure it contains valid and non null data and thus doesn't need to recheck again
Here's my +1
+1 -- Sergiu Dumitriu http://purl.org/net/sergiu/
+1 On Mon, Apr 6, 2009 at 10:42, Vincent Massol <[email protected]> wrote:
Hi,
Now that we have a DocumentName and factory/serializer I'd like to propose that we change all document access bridge APIs to use DocumentName instead of String. The idea is that string way of referencing a document should be used only at boundaries of the xwiki system and internally we should ony use DocumentName. The reasons are multiple:
* less errors since it's a strongly typed api * whenever code manipulates DocumentName it can be sure it contains valid and non null data and thus doesn't need to recheck again
Here's my +1
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Vincent Massol wrote:
Hi,
Now that we have a DocumentName and factory/serializer I'd like to propose that we change all document access bridge APIs to use DocumentName instead of String. The idea is that string way of referencing a document should be used only at boundaries of the xwiki system and internally we should ony use DocumentName. The reasons are multiple:
* less errors since it's a strongly typed api * whenever code manipulates DocumentName it can be sure it contains valid and non null data and thus doesn't need to recheck again
Here's my +1
+1
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Mon, Apr 6, 2009 at 2:12 PM, Vincent Massol <[email protected]> wrote:
Hi,
Now that we have a DocumentName and factory/serializer I'd like to propose that we change all document access bridge APIs to use DocumentName instead of String. The idea is that string way of referencing a document should be used only at boundaries of the xwiki system and internally we should ony use DocumentName. The reasons are multiple:
* less errors since it's a strongly typed api * whenever code manipulates DocumentName it can be sure it contains valid and non null data and thus doesn't need to recheck again
Here's my +1
+1
+1 Vincent Massol wrote:
Hi,
Now that we have a DocumentName and factory/serializer I'd like to propose that we change all document access bridge APIs to use DocumentName instead of String. The idea is that string way of referencing a document should be used only at boundaries of the xwiki system and internally we should ony use DocumentName. The reasons are multiple:
* less errors since it's a strongly typed api * whenever code manipulates DocumentName it can be sure it contains valid and non null data and thus doesn't need to recheck again
Here's my +1
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (6)
-
Anca Paula Luca -
Asiri Rathnayake -
Marius Dumitru Florea -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol