grouper-users - [grouper-users] RE: EsbHttpPublisher -- el filter for attribute assignments
Subject: Grouper Users - Open Discussion List
List archive
- From: Shaun Koh <>
- To: "Hyzer, Chris" <>, "Black, Carey M." <>, " Mailing List" <>
- Subject: [grouper-users] RE: EsbHttpPublisher -- el filter for attribute assignments
- Date: Tue, 10 Apr 2018 05:23:28 +0000
- Accept-language: en-US, en-NZ
- Ironport-phdr: 9a23:c9SzfhG4uXsBwmCwWQolAp1GYnF86YWxBRYc798ds5kLTJ76ps2/bnLW6fgltlLVR4KTs6sC17KN9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCazbL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjm58axlVAHnhzsGNz4h8WHYlMpwjL5AoBm8oxBz2pPYbJ2JOPZ7eK7WYNEUSndbXstJVyJPHJ6yb5cBAeQCM+ZXrYj9qEcBohalHwagGP/jxyVUinPqw6E31fkqHwHc3AwnGtIDqGnarNXvO6cPV+C+0azGzTLDb/hL3jr984jIfQo8ofGKR75wcs3RyUk0Ggzfk1WftY/lPzeP2eQLrmeX9fBvWv61h24hqgB8uz6izdoihInOg4Ia0FHE9SNhzYY1Od24VFZ7YcKkEJRKsSGaNJB2Td8iQ2FyuSY60bMGuYS8fCgPx5Qn3Rnfa+Gfc4eW+BLvTfuRISxmi3J/Y7Kzngyy/la5yu3hSMa0y0pKritDktnQqH8NzRrT5dabSvdj5EuuxyuA1x3V5+pZIk40jbLWJ4Mvz7IsjJYfr1nPEy7slEnrkqObdl8o9van5unmernqu5GRO5Nuhg3gL6gjm9azDfk4PwUNRWSW9vyw1LP98kD6XLlHi/g7n6vFvJ/BIckWo620DgBL3osn7huyASyp0NoEkXQCMl1IeRyHgJTvNlrTOv73F+2/jE6pkDpzx/DJILnhApLVI3jGn7bscq9x609ayAov19xQ/Y9UBa0CIPL3QEDxssHXAgUjPAOo2ernDtR82psfWWKJHKCZLLvfvUKG6+4zOeWAepIZtTfnJ/Q4+fLjjWU1lUEScKSoxZcXbWq3HvViI0WXe3rshdIBHH8Rvgo+VuPqlVuCXSRQZ3a1X6Ix/Ss0CJ+6AofAQoCimrqB0zqhEpJMem9KEFaMEHbwe4WeR/gMcD6SItNmkjEcWrihUYgh1Qy2tADk0bprN/fU+jYGupL5z9h4/OnTlRAp9TxoFMSRzXuBT2BynmMUWTA2xqZ/rlJhyludy6R3neFXFcEAr89OB00aJIzR1agyINDoWxmLNoOMQ1a3UNi8KTAqRZQs29IIZQBwF8j0yliJ9S6jCLxR35eCHpEluoealTClLcJ0wHWAjfN6p149X41COXDwwuY1+BLUGpbEiQCEjKuwbowd2jLA7mGO0TDIsU1FGCt5UKHEW39XQkrNsZ6xskzYSKK2BK5iLxBM09WqK61WZ8fvgEkcAvrvJYKNTXi2njKLBR+VwPuva4qiL34d1TjbTksDkyga4H2FMQE4CmGoqCTYHmo9RhrUf0rw/Lwm+zuARUguwlTPNhU52g==
Hi Chris and Carey, Thanks for your input. To answer Carey’s question, my attempt at using the GrouperDAOFactory is essentially what Chris is suggesting – i.e. to leverage the API method to see if an assigned attribute exists for the group/stem whose change is being processed by
the EsbConsumer While option 1) below aligns with my intended design, I am not able to filter based on the assigned attribute as the default EsbConsumer class does not currently retrieve group/stem attributes to be set in the EsbEvent object. – let me
know if that made sense Chris, I have tried your suggestion and it does not seem to be working either. – you could confirm if that is the case on your end
At a conceptual level yes, Apache Kafka is similar to a traditional messaging system except designed for larger scale messaging use cases. Yes that is correct, our ESB already exposes a HTTP endpoint and a Kafka connector and we just need to be able to filter group/folder events based on an assigned attribute from Grouper to the HTTP endpoint. – alternatively, filtering could
be performed on the ESB itself though we would still need the attributes coming through… Best Regards, Shaun K. From: Hyzer, Chris [mailto:]
The API method: boolean group.getAttributeDelegate().hasAttributeOrAncestorHasAttribute(String attributeFlagName, boolean checkSecurity) Allows you to easily see if a group or parent folder has an attribute assigned (e.g. for provisioning). Not sure it can be called from an EL filter… want me to try it? Is kafka messaging? You want to do an HTTP -> Kafka connector and send from grouper to http? Thanks Chris From: []
On Behalf Of Black, Carey M. Shaun, I am not an expert on the ESB flavor of Grouper things. But I am poking at the “changelog.consumer” stuff at the moment. And the ESB stuff looks like it is a “changelog.consumer” to Grouper.
J An option ( that may or may not appeal to you) would be to consider these two general approaches: ( Maybe also could depend on the ESB your talking too. I am not sure…) 1)
Use a single Grouper attribute (and a single ESB publisher) and have the ESB later route/filter/map/duplicate the Grouper stream of messages into ESB queues(“topics”?). 2)
Use a single Grouper attribute per “topic” and have “N” ESB publishers that each only publish to a given topic. I can see advantages in both directions. Case 1:
Pros: Smaller Grouper config foot print. ( Per ESB infrastructure ) Smaller Grouper data(attribute) foot print. (one attribute) Only one Loader daemon process being added. ( smaller RAM requirement.) Cons: One big Grouper Change log and all message flow serially. ( may form delays during heavy updates? ) Need to manage ESB config to do “route/filter/map/ duplicate” logic. Case2:
Pros: Grouper controlled “topic to data” map. More (and separate) queues per topic. ( May still form delays but would only affect each topic independently.) Cons: More Grouper config foot print. (per “topic”) Likely a larger RAM foot print for the Loader daemon. (maybe a con, some might see this as an advantage) More Grouper data(attribute) foot print (N attributes). Question for you….
GrouperDAOFactory is a very “low level” api in the system. ( Basically your talking “directly” to the Grouper DB. Which seems like that is the wrong direction to me.) What do you think you need from that deep of an integration
level to achieve? -- Carey Matthew From: <>
On Behalf Of Shaun Koh Hi there, I’m currently attempting to configure the EsbHttpPublisher to send messages to a Kafka topic via our ESB platform. While this works with basic el filtering (i.e. using the EsbEvent object), I am wondering if it is possible to filter groups/stems based on an attribute that has been assign to it (e.g. similar to how PSPNG works) ? The methods provided by the GrouperDAOFactory class seem useful though I have been unsuccessful in calling it as it returns matchesFilter: false even with predefined input. It would be great to have some suggestions / workarounds before having to perform any custom extensions.
Best Regards, Shaun K. |
- [grouper-users] EsbHttpPublisher -- el filter for attribute assignments, Shaun Koh, 04/09/2018
- [grouper-users] RE: EsbHttpPublisher -- el filter for attribute assignments, Black, Carey M., 04/09/2018
- [grouper-users] RE: EsbHttpPublisher -- el filter for attribute assignments, Hyzer, Chris, 04/09/2018
- [grouper-users] RE: EsbHttpPublisher -- el filter for attribute assignments, Shaun Koh, 04/10/2018
- [grouper-users] RE: EsbHttpPublisher -- el filter for attribute assignments, Hyzer, Chris, 04/09/2018
- [grouper-users] RE: EsbHttpPublisher -- el filter for attribute assignments, Black, Carey M., 04/09/2018
Archive powered by MHonArc 2.6.19.