[xwiki-devs] [VOTE] Change signatures for DAB.getProperty() methods
Hi, I'd like to change the signatures DAB.getProperty() methods. Right now they are: String getProperty(String documentName, String className, int objectNumber, String propertyName) throws Exception; String getProperty(String documentName, String className, String propertyName) throws Exception; String getProperty(String documentName, String propertyName) throws Exception; I'd like to change them to: Object getProperty(String documentName, String className, int objectNumber, String propertyName); Object getProperty(String documentName, String className, String propertyName); Object getProperty(String documentName, String propertyName); I have no idea why they currently return Strings and not Objects and why they are declared to throw an exception when they catch all exceptions and instead return null when an error occurs... I need this change to be able to implement http://jira.xwiki.org/jira/browse/XWIKI-4044 (Add support for looking for configuration parameters in XWikiPreferences, WebPreferences and the User Profile) Here's my +1 Thanks -Vincent
Hi Vincent, Vincent Massol wrote:
Hi,
I'd like to change the signatures DAB.getProperty() methods. Right now they are:
String getProperty(String documentName, String className, int objectNumber, String propertyName) throws Exception; String getProperty(String documentName, String className, String propertyName) throws Exception; String getProperty(String documentName, String propertyName) throws Exception;
I'd like to change them to:
Object getProperty(String documentName, String className, int objectNumber, String propertyName); Object getProperty(String documentName, String className, String propertyName); Object getProperty(String documentName, String propertyName);
I have no idea why they currently return Strings and not Objects and why they are declared to throw an exception when they catch all exceptions and instead return null when an error occurs...
What types of objects can these methods return, besides String? Thanks, Marius
I need this change to be able to implement http://jira.xwiki.org/jira/browse/XWIKI-4044 (Add support for looking for configuration parameters in XWikiPreferences, WebPreferences and the User Profile)
Here's my +1
Thanks -Vincent
_______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
On Jun 29, 2009, at 10:39 PM, Marius Dumitru Florea wrote:
Hi Vincent,
Vincent Massol wrote:
Hi,
I'd like to change the signatures DAB.getProperty() methods. Right now they are:
String getProperty(String documentName, String className, int objectNumber, String propertyName) throws Exception; String getProperty(String documentName, String className, String propertyName) throws Exception; String getProperty(String documentName, String propertyName) throws Exception;
I'd like to change them to:
Object getProperty(String documentName, String className, int objectNumber, String propertyName); Object getProperty(String documentName, String className, String propertyName); Object getProperty(String documentName, String propertyName);
I have no idea why they currently return Strings and not Objects and why they are declared to throw an exception when they catch all exceptions and instead return null when an error occurs...
What types of objects can these methods return, besides String?
Lists, numbers (float, int, long, etc), String, etc -Vincent
Thanks, Marius
I need this change to be able to implement http://jira.xwiki.org/jira/browse/XWIKI-4044 (Add support for looking for configuration parameters in XWikiPreferences, WebPreferences and the User Profile)
Here's my +1
Thanks -Vincent
Vincent Massol wrote:
On Jun 29, 2009, at 10:39 PM, Marius Dumitru Florea wrote:
Hi Vincent,
Vincent Massol wrote:
Hi,
I'd like to change the signatures DAB.getProperty() methods. Right now they are:
String getProperty(String documentName, String className, int objectNumber, String propertyName) throws Exception; String getProperty(String documentName, String className, String propertyName) throws Exception; String getProperty(String documentName, String propertyName) throws Exception;
I'd like to change them to:
Object getProperty(String documentName, String className, int objectNumber, String propertyName); Object getProperty(String documentName, String className, String propertyName); Object getProperty(String documentName, String propertyName);
I have no idea why they currently return Strings and not Objects and why they are declared to throw an exception when they catch all exceptions and instead return null when an error occurs... What types of objects can these methods return, besides String?
Lists, numbers (float, int, long, etc), String, etc
+1 Thanks, Marius
-Vincent
Thanks, Marius
I need this change to be able to implement http://jira.xwiki.org/jira/browse/XWIKI-4044 (Add support for looking for configuration parameters in XWikiPreferences, WebPreferences and the User Profile)
Here's my +1
Thanks -Vincent
devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
+1 On Mon, Jun 29, 2009 at 20:25, Vincent Massol<vincent@massol.net> wrote:
Hi,
I'd like to change the signatures DAB.getProperty() methods. Right now they are:
String getProperty(String documentName, String className, int objectNumber, String propertyName) throws Exception; String getProperty(String documentName, String className, String propertyName) throws Exception; String getProperty(String documentName, String propertyName) throws Exception;
I'd like to change them to:
Object getProperty(String documentName, String className, int objectNumber, String propertyName); Object getProperty(String documentName, String className, String propertyName); Object getProperty(String documentName, String propertyName);
I have no idea why they currently return Strings and not Objects and why they are declared to throw an exception when they catch all exceptions and instead return null when an error occurs...
I need this change to be able to implement http://jira.xwiki.org/jira/browse/XWIKI-4044 (Add support for looking for configuration parameters in XWikiPreferences, WebPreferences and the User Profile)
Here's my +1
Thanks -Vincent
_______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (3)
-
Marius Dumitru Florea -
Thomas Mortagne -
Vincent Massol