New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a ResultHandler that joins all its entries (JoinEntriesResultHand… #191
Conversation
Dear Daniel, |
* | ||
* @author Middleware Services | ||
*/ | ||
public class JoinEntriesResultHandler extends AbstractEntryHandler<SearchResponse> implements SearchResultHandler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about naming this MergeResultHandler
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better. I will change it now, review and push again. Best regards
Looks good, thanks for the contribution! Extra props for using Simpson test data. |
Dear Daniel, |
Planning for a release this month, there are a few other changes in flight. How soon do you need it? |
It is good. |
Dear all,
I have added a search handler that uses the SearchResults.merge() function to join (or merge) all the entries by attribute name. I will continue adding the functionality to CAS.
The use case is to collect emails belonging to the same person with the search handler.
The person (the authenticated entry in CAS) is like this:
dn: person:1234,o=people,dc=...
person: 1234
...
The email entries are like this:
dn: my@mail.com,dc=...
mail:, my@mail.com
owner: person:1234,o=people,dc=...
...
Do you need further details or add any unit tests?
Bests regards,
Miguel