Skip to Content
Jun 24, 2010 at 07:28 AM

UME Logon User ID Validity check and Year Format



I have two issues:-

1. How to validate a given UME user ID is valid or not ?

(For ex: If Use abc123, It should check it's valid or not against UME before calling getUserByUniqueName(abc123) below?. In this case abc123 is invalid, is there any boolean return value to check UME API's.)

We know that second line below throws UM Exception. but I want to validate before throwing it. Is there any boolean value to check here. Please help

If( "abc123". isvalid?)

IUserFactory userFact = UMFactory.getUserFactory();

IUser ID = userFact.getUserByUniqueName(abc123);

2. I need to input a year (for ex:2000) on enter it generates 2001, 2002, 2003 etc on other fields.

If I use Integer, it generates like 2,001 2, 002 2,003 etc with "," comma in between. It should be removed.

Please let me know how do i it in plain format using any other type or customizing Integer value entered above?

Thanks in advance