on 10-17-2009 7:24 AM
Hi Experts,
I have written one Java program. It fetches user ID from UME. The code is as below:
Iterator itr = role.getUserMembers(true);
while (itr.hasNext()) {
String uniqId = (String) itr.next();
IUser thisUser = myUserFactory.getUser(uniqId);
wdComponentAPI.getMessageManager().reportSuccess("here "+thisUser.getUid() );
Used ID is thisUser.getUid() . I have to find out all user IDs which are numeric.
Do we have any standard Java program (API) to find out whether thisUser.getUid() is numeric or not.
Regards,
Gary
Hi
Just try to parse this string to integer or long number and catch the NumberFormatException.
Somthing like:
try
{
Integer.parseInt(userIdString);
}
catch(NumberFormatException e)
{
//do sume thing when user id is not number
}
good luck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.