Skip to content
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

Merged
merged 3 commits into from Feb 12, 2021

Conversation

elmendavies
Copy link
Contributor

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

@dfish3r dfish3r self-assigned this Feb 9, 2021
@elmendavies
Copy link
Contributor Author

Dear Daniel,
I have added a test, a similar one to the one for the SortHandler.
Best regards

*
* @author Middleware Services
*/
public class JoinEntriesResultHandler extends AbstractEntryHandler<SearchResponse> implements SearchResultHandler {
Copy link
Member

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 ?

Copy link
Contributor Author

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

@dfish3r
Copy link
Member

dfish3r commented Feb 11, 2021

Looks good, thanks for the contribution! Extra props for using Simpson test data.

@dfish3r dfish3r merged commit 88660fe into vt-middleware:master Feb 12, 2021
@elmendavies elmendavies deleted the join-entries branch February 12, 2021 21:35
@elmendavies
Copy link
Contributor Author

Dear Daniel,
Any idea about dates for this changes to be released?
Best regards,
Miguel

@dfish3r
Copy link
Member

dfish3r commented May 7, 2021

Planning for a release this month, there are a few other changes in flight. How soon do you need it?

@elmendavies
Copy link
Contributor Author

It is good.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants