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

Introduce B2B Organization Resource Resolver #6139

Closed

Conversation

dhaura
Copy link
Contributor

@dhaura dhaura commented Nov 20, 2024

Purpose

  • This PR implements a generic resource resolver designed for B2B organization hierarchies. It enables the resolution of any given resource through the ancestor hierarchy of an organization.

@dhaura dhaura marked this pull request as draft November 20, 2024 08:24
import java.util.function.BiFunction;
import java.util.function.Function;

public class FirstFoundAggregationStrategy<T> implements AggregationStrategy<T> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a javadoc comment

import java.util.function.BiFunction;
import java.util.function.Function;

public class MergeAllAggregationStrategy<T> implements AggregationStrategy<T> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add javadoc comment

* @return Resolved resources.
* @throws OrgResourceManagementException If an error occurs while retrieving the resources.
*/
default <T> T getResourcesFromOrgHierarchy(String organizationId,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check if we need default

/**
* Service interface for organization resource management.
*/
public interface OrgResourceManagementService {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check service name

@dhaura
Copy link
Contributor Author

dhaura commented Nov 21, 2024

The purpose of this PR is achieved by wso2-extensions/identity-organization-management#415. Hence, closing the PR.

@dhaura dhaura closed this Nov 21, 2024
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.

1 participant