Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] PITGroup assigned attributes?

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] PITGroup assigned attributes?


Chronological Thread 
  • From: "William G. Thompson, Jr." <>
  • To: Grouper Dev <>
  • Subject: Re: [grouper-dev] PITGroup assigned attributes?
  • Date: Thu, 18 Feb 2016 22:26:00 -0500

For checking for the syncAttribute marker...

This is working for groups that are still in the registry.
group.getAttributeDelegate().hasAttributeOrAncestorHasAttribute(...)
https://gist.github.com/wgthom/f34fb9edfe3029febf5b#file-isgroupmarkedforsync-java-L15


Would it make sense to have something like:
pitGroup.hasPITAttributeAssignOrAncestorHasPITAttributeAssign(...)

Best,
Bill



On Thu, Feb 18, 2016 at 8:58 AM, William G. Thompson, Jr. <> wrote:
Thanks, Shilen.  That looks exactly like what I need.

This is still very much a work in progress, but would appreciate any
thoughts on the code or direction.

Base "Group and Membership" consumer
https://gist.github.com/wgthom/cf129f9f33fdfdad5148#file-changelogconsumerbaseimpl-java

Example "Group and Membership" consumer implementation for a target
https://gist.github.com/wgthom/54e08c7d44b802f720ce#file-printchangelogconsumer-java

Best,
Bill

On Thu, Feb 18, 2016 at 7:48 AM, Shilen Patel <> wrote:
> Hi Bill,
>
> Take a look at PITAttributeAssignFinder.  Let me know if that doesn't give
> you what you need.
>
> Thanks!
>
> - Shilen
>
> On 2/17/16, 9:25 PM, "William G. Thompson, Jr." <> wrote:
>
>>I'm working on a ChangeLogConsumer to sync groups and membership to a
>>target (in this case Office365), but it could be used for any target.
>>
>>The current design calls for a marking attribute to be assigned to
>>groups or folders.  If the attribute is assigned to a group it is
>>marked for provisioning. If the attribute is assigned to a folder all
>>the groups within the folder and any sub folders are marked for
>>provisioning.
>>
>>As the changeLogEvents come though I can check the group or parent
>>folders for the mark. So far so good. However when a deleted group
>>changeLogEvent comes through for a directly marked group, the group is
>>already deleted so I can't query the group for attribute assignments.
>>I can get the PITGroup, but it doesn't seem to provide access to
>>PITAttribtueAssignments.
>>
>>Is this possible somehow?
>>
>>Best,
>>Bill
>




Archive powered by MHonArc 2.6.16.

Top of Page