grouper-users - [grouper-users] Obtaining the attribute for a loader job on a group
Subject: Grouper Users - Open Discussion List
List archive
- From: "Gettes, Michael" <>
- To: grouper-users <>
- Subject: [grouper-users] Obtaining the attribute for a loader job on a group
- Date: Mon, 27 Aug 2018 18:21:01 +0000
- Accept-language: en-US
- Ironport-phdr: 9a23:9Siw1h8wa61lzv9uRHKM819IXTAuvvDOBiVQ1KB42uocTK2v8tzYMVDF4r011RmVBdqds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55/ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRh/2hikaKz43/mLZhMtxjK1HrxyuqAdyw5LPb4GQKPZ+fr/RcNEcSGFcXshRTStBAoakYocBDuQOI/pYr5XjqFsVtRe1GA6iBOLzxT9InHD5w6k63+o8GgzB0wwvAc4OsGjKo9XuL6oSTO61zK3SwTrdcvxWxC7w5Y7VeR4iufGBRa98fdTSxEU1CQ/JkFedpZbnMj6azOgBrnaX4up4We6yl2IrsQ98rzm1yssxjoTEhZgZxk3K+ClhzoY6O961RFJ+bNOhE5Zdsz2WOJdzT8w+WG5noiY3x7gYtZO5ZycG1pEqyAPEZPCZcYWF5A/oWvyLLjdinn1lfaqyhxas/kikze3xTtK00FNWripdiNXMq34N1xjJ5seZV/R941+t2TeJ1w/N9uFJOV04mbTYJpI73LI8iJgevV7BEyL5gkn6kbGae0U89uit8evnY7HmppGGN49zjwHzKqsuldKjAeQkLAcORHOW+fmy1L3n50H2XqhFjuAunqnDrJ/aPdgbprK+AwJN3YYj8RG/Dyq+0NsGh3kLNU9FeAmZgIjzIFHDO/T4Dfakg1Swizdn2erKPrznApXRMHfDirHhcqhh60JC0gY8081Q548HQo0Gdf3pXVLpucadEwQ0KRf8l+n9D8hl25lbRHmCGLSxMaXOvEWO6/51ZeSAedlGliz6Lq1vyPPykXIi3Rc4fKKp1JYTIjjsEfl6P0iCSWfihpEMHXpc7Vl2d/DjlFDXCW0bXH21Ra9pvjw=
Hi all,
I am on grouper 2.3 api 108 (as made available by the TIER packaging folks).
I am writing some code to see if a group was created by a loader job and if
so, get the loader job information. I’ve been poking about to figure out the
best way to do it and I found the simple snippet below I am using and all I
ever get is null. I have tried other example code and I get exceptions
trying to retrieve even when I know the group as the right loader related
attribute based on the web UI. Any advice appreciated. I hope and expected
I am doing something stupid.
/mrg
Group = a valid group object of a group I know has the attribute specified
which is the Uuid of the group having the Loader spec.
It’s loaderNode that always comes back with null
try {
String loaderNode =
group.getAttributeValueDelegate().retrieveValuesString("etc:attribute:loaderMetadata:grouperLoaderMetadataGroupId")
print("LOADER: “+group+" -> "+loaderNode+"\n")
if (loaderNode) loaderGroup = GroupFinder.findByUuid( session,
loaderNode )
else return
}
catch (Exception e) {
print("\tLOADERFAIL: “+ group.getName()+" -> "+e+"\n")
return
}
… And more code here when we get the loaderGroup
- [grouper-users] Obtaining the attribute for a loader job on a group, Gettes, Michael, 08/27/2018
Archive powered by MHonArc 2.6.19.