Skip to Content

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 24, 2010 at 09:00 AM


    1 . For this case retrive the currently logged in user and check it with existing database, you itself can create a boolean return type and use it


    2. Comma can not be removed from integer format , better to deal with String type, as you said after first input other will be generated so internally do the coding , later just display it to end user.

    Best Regards

    Satish Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 31, 2011 at 11:14 AM


    Add comment
    10|10000 characters needed characters exceeded