Re: Valid party Ids

2010-03-18 Thread Bilgin Ibryam
Scott Gray wrote: On 17/03/2010, at 10:37 AM, Jacques Le Roux wrote: Bilgin, I guess Scott spoke about ContainsOnly at http://commons.apache.org/lang/api/org/apache/commons/lang/StringUtils.html That's the right class but I was talking about StringUtils.isNumeric(String) Jacque

Re: Valid party Ids

2010-03-17 Thread Marc Morin
We configure the entityengine.xml to have sequenced-id-prefix="${instance}-" defined on the delegator configuration section. This causes the sequence id's that are generated for that delegator to have a prefix created, in our case, ${instance} is replaced with the unique id for the "tenant". T

Re: Valid party Ids

2010-03-17 Thread Scott Gray
On 17/03/2010, at 10:37 AM, Jacques Le Roux wrote: > Bilgin, > > I guess Scott spoke about ContainsOnly at > http://commons.apache.org/lang/api/org/apache/commons/lang/StringUtils.html That's the right class but I was talking about StringUtils.isNumeric(String) > > Jacques > > From: "Bilgin

Re: Valid party Ids

2010-03-17 Thread Jacques Le Roux
Bilgin, I guess Scott spoke about ContainsOnly at http://commons.apache.org/lang/api/org/apache/commons/lang/StringUtils.html Jacques From: "Bilgin Ibryam" Marc Morin wrote: We use a prefix for each instance, so our id's are of the format "\\d+-\d+". So, looks like this kind of check, is

Re: Valid party Ids

2010-03-17 Thread Bilgin Ibryam
Marc Morin wrote: We use a prefix for each instance, so our id's are of the format "\\d+-\d+". So, looks like this kind of check, is a function of how your entityengine.xml file is configured. Scott, I can't find the method in StringUtil, but the regex proposed by Adam is enough. Marc, co

Re: Valid party Ids

2010-03-17 Thread Marc Morin
We use a prefix for each instance, so our id's are of the format "\\d+-\d+". So, looks like this kind of check, is a function of how your entityengine.xml file is configured. Marc Morin Emforium Group Inc. ALL-IN Software 519-772-6824 ext 201 mmo...@emforium.com - "Adam Heath" wrote: >

Re: Valid party Ids

2010-03-17 Thread Scott Gray
On 17/03/2010, at 9:28 AM, Adam Heath wrote: > Scott Gray wrote: >> +1 >> Commons StringUtils has a method for this check if we don't have one of our >> own. > > Do we really need a full on method call instead of just > string.matches("\\d+")? That also looks like a method call :-) StringUtils

Re: Valid party Ids

2010-03-17 Thread Adam Heath
Scott Gray wrote: > +1 > Commons StringUtils has a method for this check if we don't have one of our > own. Do we really need a full on method call instead of just string.matches("\\d+")? > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > > On 17/03/2010, at 4:21 AM, Bilgin Ibry

Re: Valid party Ids

2010-03-17 Thread Scott Gray
+1 Commons StringUtils has a method for this check if we don't have one of our own. Regards Scott HotWax Media http://www.hotwaxmedia.com On 17/03/2010, at 4:21 AM, Bilgin Ibryam wrote: > createPerson and createPartyGroup services don't accept party Ids starting > with a number. I wonder what

Valid party Ids

2010-03-17 Thread Bilgin Ibryam
createPerson and createPartyGroup services don't accept party Ids starting with a number. I wonder what is the reason for this restriction? I suppose it is done to prevent users from entering numbers as partyId which may interfere with auto generated Ids. If this is the case I propose to chang