I'm working with the LiveCycle Java API (LiveCycle 8.2) and I'm looking for
I'm able to get a Group (Type GroupImpl) using the PrincipalSearchFilter.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi!
I know you mentioned that you looked into this without success, but it should really work.
First make a GroupMemebershipSearchFilter, setting the GroupOid to be ID of the group itself. Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter which returns a List<User>, as follows:
DirectoryManagerServiceClient directoryManager = new DirectoryManagerServiceClient(serviceConnection.getFactory());
List<User> userList = new ArrayList<User>();
try
{
userList = directoryManager.findGroupMembers(searchFilter);
}
catch (Exception e)
{
// Error stuffs
}
return userList;
Views
Replies
Total Likes
Hi!
I know you mentioned that you looked into this without success, but it should really work.
First make a GroupMemebershipSearchFilter, setting the GroupOid to be ID of the group itself. Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter which returns a List<User>, as follows:
DirectoryManagerServiceClient directoryManager = new DirectoryManagerServiceClient(serviceConnection.getFactory());
List<User> userList = new ArrayList<User>();
try
{
userList = directoryManager.findGroupMembers(searchFilter);
}
catch (Exception e)
{
// Error stuffs
}
return userList;
Views
Replies
Total Likes
Thanks a lot, fine!
Although the method findGroups() is deprecated and there should be another way to get the members of the groups. But for now it works for me.
Views
Replies
Total Likes