on 10-12-2007 5:58 PM
Hi forum
I want to search users by created date. I mean that i´m consulting users that was creating in dd/mm/yyyy date.
Someone knows how use the IUSearchFilter to make this ?
Thnks
Joshua
Why don`t You do like this:
Date date1 = new Date();
Date date2 = new Date();
IUserAccountFactory userAccFactory = UMFactory.getUserAccountFactory();
IUserAccountSearchFilter filter = userAccFactory.getUserAccountSearchFilter();
filter.setCreateBetween(date1,date2);
ISearchResult result = userAccFactory.search(filter);
Now You can iterate over result, in addition You need to initialize varaibles
date1 and date2 with proper values;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! Josue,
i think this code may help you...
IGroupFactory grpFact = UMFactory.getGroupFactory();
IGroupSearchFilter searchFilt = grpFact.getGroupSearchFilter();
searchFilt.setUniqueName("*",ISearchAttribute.LIKE_OPERATOR, true);
ISearchResult srchRslt = grpFact.searchGroups(searchFilt);
while(srchRslt.hasNext()) {
String uniqueID = (String)srchRslt.next();
IGroup thisGrp = grpFact.getGroup(uniqueID);
String name = thisGrp.getDisplayName();
}
}
The code is self explanatory..
If you have any query feel free to ask?
regards,
Mithileshwar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please use IUserAccountSearchFilter, there You have setCreateBetween method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.