Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Question about GroupAttributeFilter

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Question about GroupAttributeFilter


Chronological Thread 
  • From: <>
  • To:
  • Subject: [grouper-users] Question about GroupAttributeFilter
  • Date: Fri, 9 Nov 2018 11:11:11 +0000 (UTC)
  • Ironport-phdr: 9a23:RbIKZBcZkqzh1+KsbJNOCUevlGMj4u6mDksu8pMizoh2WeGdxcqzYh7h7PlgxGXEQZ/co6odzbaO7Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahY75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM37mHZhNFyg6xYrx2uuxNxzYnaboyOKPpwY7nQcc8ASGZdQMpcUTFKDIOmb4sICuoMJeFVr5Lnq1sKtxexHw+sBOzuyj9PgH/23LY33P87HgHa3AwsBcgBv2jOoNXoN6cfSOa4x7TLwzXbd/5axyvx5YrSfh0jofyAR698fMvexEU1CQ/JkEicpIr4ND2PzOsNqXKU7+94WOKvlWEnrwZxryCrxsctkYnJmpkVxk7e+SV4xoY1OcO3SFR9YdG6DJtcqTuWOJVrTcM/W21ouSA6xaMauZOjYiQG1JYqywTdZvGHaYSE/xPuWemLLTtmmn5pZaqzhxOo/kihzu38WNO00FFPridditnMq2sC1wfT68iCUvty5Fys2TeJ1wDP9O5EO0Y0mrTHK5I/2LI/iIccsVnbEi/shEr2lLOWdlkj+uWw5OTneLLmpoKEN4BqkAHyK7kumtehDuQiKQgDRGyb+eWn1L3/5k31Xq9GjvwwkqnFrp/aP8IbqbClAwNLyIos9QuwDyr1mOgfyHYdK09ddQjCkpPkIUrmIfbkAO25jkj21jpn2qPoJLrkV8HWaHyFmbHufLF76mZWwRYzi9lUoY9XXOJSaMnvU1P84YSLRiQyNBa5lr7q

We are attempting to use GroupAttributeFilter to find groups having a
particular attribute value. The code looks like this:

GrouperSession gs = <get session>
GroupAttributeFilter gaf = new GroupAttributeFilter(
"bath:provisionClass", "groupmanager-groups",
StemFinder.findRootStem(gs));
Set<Group> ggroups = gaf.getResults(gs);

No results are returned. This appears to be because in
Hib3GropDAO.findAllByApproximateAttrHelper the following code...

String attributePrefix = legacyAttributeStemName + ":" +
legacyAttributePrefix; if (attr.startsWith(attributePrefix)) {
byHql.setString("attributeName", attr); } else {
byHql.setString("attributeName", attributePrefix + attr); }

...is actually setting the name of the attribute being examined
to:

etc:legacy:attribute:legacyAttribute_bath:provisionClass

Are we missing something, or is there a bug here?

We are using version 2.3.0 of the grouper Maven artifact, but this code seems
unchanged in the latest updates to GitHub.

Thanks.



Archive powered by MHonArc 2.6.19.

Top of Page