Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] [ldappcng] incremental provisioning : pointInTime ?

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] [ldappcng] incremental provisioning : pointInTime ?


Chronological Thread 
  • From: Shilen Patel <>
  • To: Tom Zeller <>
  • Cc: Grouper Dev <>
  • Subject: Re: [grouper-dev] [ldappcng] incremental provisioning : pointInTime ?
  • Date: Thu, 28 Apr 2011 17:53:32 -0400

Yes, though I would use changeLogEntry.getCreatedOn() which would give you a Timestamp instead of a Long.

Thanks!

-- Shilen

On 4/28/11 5:46 PM, Tom Zeller wrote:
How do I get the time the change occurred from a ChangeLogEntry ?

changeLogEntry.getCreatedOnDb() ?

On Thu, Apr 28, 2011 at 4:39 PM, Shilen
Patel<>
wrote:
In addition to the group name, you have the group id too since it's in the
change log, right? If so, you can use findById(String id, boolean
exceptionIfNotFound).

Otherwise, I think the "from" and "to" timestamps would be the same and they
would be the time at which the membership was deleted (which is also in the
change log). That would give you the group (by name) at the time the
membership was deleted.

Thanks!

-- Shilen

On 4/28/11 5:23 PM, Tom Zeller wrote:
When processing the grouper changelog, I think I would like to access
grouper objects as they were immediately before they were changed. Is
that possible ?

For example, when provisioning an incremental change

"remove member M from group G"

I want the grouper-shibboleth data connectors to return member M and
group G as they were at a specific time, that time being immediately
before they were changed.

I see that PITGroupFinder.findByName() has a timestamp range. I'm not
sure what range I would use.

Set<PITGroup> findByName(String name, Timestamp pointInTimeFrom,
Timestamp pointInTimeTo,
boolean exceptionIfNotFound, boolean orderByStartTime)

Thoughts ?

TomZ






Archive powered by MHonArc 2.6.16.

Top of Page