Skip to Content.
Sympa Menu

grouper-dev - RE: Source.getAllIdentifiers() ?

Subject: Grouper Developers Forum

List archive

RE: Source.getAllIdentifiers() ?


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Tom Zeller <>
  • Cc: Grouper Dev <>
  • Subject: RE: Source.getAllIdentifiers() ?
  • Date: Thu, 1 Apr 2010 00:07:26 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

> > Do you mean subjectId or subjectIdentifier?
>
> Hadn't thought of that, I'll guess both. The end result is I would
> like access to all subjects.

Then maybe we need to return all subjects, and not just the id, right? Or do
you want two strings for each subject? Id and netId (identifier)? Btw, to
return all subject info for all subjects with 540k of them takes a lot of
memory...

> > Maybe we should just query the member table so we can get the list of
> > subjectIds used in Grouper and not all subjectIds?  Plus,
> > then we don't have to change the source implementations... just a thought.
>
> Right, but I'm interested in everything, for provisioning.

Remind me to ask you to explain this to me at the MM. :)

> > e.g. at Penn, we have 540k subjects, but only 150k are used in grouper.  
> > Btw, we don't delete from grouper_members I believe.
> >
> > If we go down the road where we add this method to the source
> > implementations, then we should note that in the upgrade steps
> so people with custom source implementation know to add that method in
> their upgrade.  I can do this easily in JDBC, if you
> can do it in ldap, then we are all set.  :)

> Maybe we could add an ExtendedSource or somesuch subclass which
> includes these methods so that custom implementations would have
> greater immunity to Subject API changes.

There already is a subclass (BaseSourceAdapter) which all sources should
extend. We could put in an implementation that throws an exception, and if
people want to implement they can, though I thought it would be hard to know
if you need to implement it or not, so I wasn't going to mention it... it's a
possibility though, and in this case might be useful since you only need it
(so far) with ldappc...

Chris


>
> Thanks,
> Chris
>
> -----Original Message-----
> From:
>
>
> [mailto:]
> On Behalf Of Tom Zeller
> Sent: Wednesday, March 31, 2010 10:50 AM
> To: Chris Hyzer
> Cc: Tom Zeller; Grouper Dev
> Subject: Re: Source.getAllIdentifiers() ?
>
>> What does this return?  The attribute names of identifier attributes?  I
>> needed something similar for kuali, but just a label on the netId attribute
>
> Perhaps
>
> Set<String> getAllSubjectsIdentifiers
>
> which would return all identifiers, obviously one per subject. Similar to
>
> Set<Subject> getAllSubjects
>
> or an iterator would be fine too.
>



Archive powered by MHonArc 2.6.16.

Top of Page