grouper-users - RE: [grouper-users] Searching groups by createTime or modifyTime
Subject: Grouper Users - Open Discussion List
List archive
- From: "Redman, Chad Eric" <>
- To: "Hyzer, Chris" <>, Julio Polo <>, "" <>
- Subject: RE: [grouper-users] Searching groups by createTime or modifyTime
- Date: Thu, 3 Mar 2016 17:22:57 +0000
- Accept-language: en-US
Ah, you meant in the UI, didn't you :) Never mind. From: Redman, Chad Eric
Wouldn't a GroupModifiedAfterFilter.getResults() call work? #Not imported by default? import edu.internet2.middleware.grouper.filter.GroupModifiedAfterFilter import edu.internet2.middleware.grouper.filter.GroupMembershipModifiedAfterFilter session = GrouperSession.startRootSession(true) rootStem = StemFinder.findRootStem( session ) #Changes for the past 1 hour changeTime = new Date(System.currentTimeMillis() - 1000L*60*60) modifiedGroupFilter = new GroupModifiedAfterFilter(changeTime, rootStem) modSet = modifiedGroupFilter.getResults(session) System.out.println("Groups modified since " + changeTime.toString() + ": " + modSet.size()) for (Group g : modSet) { System.out.println(g.getName()); } #Note: Membership updates depend on setting property: groups.updateLastMembershipTime = true modifiedGroupMembershipFilter = new GroupMembershipModifiedAfterFilter(changeTime, rootStem) modMemberSet = modifiedGroupMembershipFilter.getResults(session) System.out.println("Group membership modified since " + changeTime.toString() + ": " + modMemberSet.size()) for (Group g : modMemberSet) { System.out.println(g.getName()); } -Chad From:
[]
On Behalf Of Hyzer, Chris I don’t think so. Open a jira if you want this added Thanks Chris From:
[]
On Behalf Of Julio Polo Is it possible to search groups by their creation or modification time falling within a particular window? For example, I'd like to get back a list of all groups created within the past N minutes. Is this
possible via a web service? Is this optimized such that I can poll Grouper every N minutes for this info? -julio Julio Polo |
- [grouper-users] Searching groups by createTime or modifyTime, Julio Polo, 03/03/2016
- RE: [grouper-users] Searching groups by createTime or modifyTime, Hyzer, Chris, 03/03/2016
- Re: [grouper-users] Searching groups by createTime or modifyTime, Julio Polo, 03/03/2016
- RE: [grouper-users] Searching groups by createTime or modifyTime, Redman, Chad Eric, 03/03/2016
- RE: [grouper-users] Searching groups by createTime or modifyTime, Redman, Chad Eric, 03/03/2016
- Re: [grouper-users] Searching groups by createTime or modifyTime, Julio Polo, 03/03/2016
- RE: [grouper-users] Searching groups by createTime or modifyTime, Hyzer, Chris, 03/03/2016
Archive powered by MHonArc 2.6.16.