Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Searching groups by createTime or modifyTime

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Searching groups by createTime or modifyTime


Chronological Thread 
  • From: Julio Polo <>
  • To: "Redman, Chad Eric" <>
  • Cc: "Hyzer, Chris" <>, "" <>
  • Subject: Re: [grouper-users] Searching groups by createTime or modifyTime
  • Date: Thu, 3 Mar 2016 08:59:58 -1000

Actually, I was looking at doing this via API, so I'll look into GroupModifiedAfterFilter.  Thanks!

-julio

On Thu, Mar 3, 2016 at 7:22 AM, Redman, Chad Eric <> wrote:

Ah, you meant in the UI, didn't you :) Never mind.

 

From: Redman, Chad Eric
Sent: Thursday, March 03, 2016 12:21 PM
To: 'Hyzer, Chris' <>; Julio Polo <>;
Subject: RE: [grouper-users] Searching groups by createTime or modifyTime

 

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
Sent: Thursday, March 03, 2016 1:33 AM
To: Julio Polo <>;
Subject: RE: [grouper-users] Searching groups by createTime or modifyTime

 

I don’t think so.   Open a jira if you want this added

 

Thanks

Chris

 

From: [] On Behalf Of Julio Polo
Sent: Wednesday, March 02, 2016 10:47 PM
To:
Subject: [grouper-users] Searching groups by createTime or modifyTime

 

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
Enterprise Middleware, Identity and Access Management
Information Technology Services
University of Hawaii





Archive powered by MHonArc 2.6.16.

Top of Page