Skip to Content.
Sympa Menu

grouper-dev - findByName

Subject: Grouper Developers Forum

List archive


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Grouper Dev <>
  • Subject: findByName
  • Date: Wed, 18 Mar 2009 15:32:52 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US


I know we decided what to do in the meeting, I think if we tweak it a little
bit it will be more consistent...

When we say that GroupFinder.findByName() will work for current names or
previous names, what we really mean, is that that underlying GroupDAO
interface's method "findByName(name)" will find by names or previous names...
and if that is the case, then there is one other method:
GroupDAO.findAllByApproximateName() which should also work for names or
previous names. I only mention because this method is exposed to WS through
the group finder, and I think it would be weird for a
FIND_BY_GROUP_NAME_EXACT (which uses findByName()) to work for previous
names, and not FIND_BY_GROUP_NAME_APPROXIMATE... I assume this will not be
hard to tweak the query...

Again, we can add more finders in the group search WS and the GroupDAO for
the previous names, current names, approximate previous names, approximate
current name...

Btw, Shilen you mentioned group.foundByOldName()... if its ok can we make it
a javabean property so it can be used by EL on the UI easier? i.e.
group.isFoundByOldName(). Is that going to be hard to manage since it is a
boolean field and the Group object might come from a cache somewhere or be
cloned or something? We can scratch that since it seems like it might not
always be accurate... I think the caller can figure out if it is found by
name or old name by comparing the result with search criteria...


Archive powered by MHonArc 2.6.16.

Top of Page