-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
NIFI-1952 Create REST endpoints for user/group/policy management #526
Conversation
Reviewing... |
final Authorizable accessPolicy = lookup.getAccessPolicyAuthorizable(id); | ||
accessPolicy.authorize(authorizer, RequestAction.READ); | ||
}, | ||
() -> {}, |
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.
Can pass in null for the verifier.
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.
Okay, will update with null.
@jtstorck Lets knock out these couple trivial items. Looks good so far. |
9daa68e
to
7dbdbc6
Compare
@mcgilman I've addressed most of your comments on the PR aside from renaming Group to UserGroup, which I still plan on doing soon. Please take a look at my latest commit on the PR. |
created REST Resources for users, groups, and access policies added Authorizables for users, groups, and access policies added methods to DtoFactory and EntityFactory to create objects for users, groups, and access policies extracted anonymous AuthorizableLookup impl in StandardNiFiServiceFacade.java to a protected class to make the lookup call mockable in tests added methods to manage users/groups/access policies to StandardNiFiServiceFacade added StandardNiFiServiceFacadeSpec to unit-test management of users/groups/access policies added implementations for UserDAO, GroupDAO, AccessPolicyDAO. added spring config for user/group/policy resources and daos
…onger requires the use of the revision manager updated StandardNiFiServiceFacadeSpec based on user/group/policy creation changes condensed user/group/policy DAOs to a single DAO (StandardPolicyBasedAuthorizerDAO) fixed spring config of user/group/policy REST resources
…heir IDs mid-progress on updating tests
…ts for users, groups, policies
Looks great @jtstorck! I've merged this into master. Thanks! |
created REST Resources for users, groups, and access policies
added Authorizables for users, groups, and access policies
added methods to DtoFactory and EntityFactory to create objects for users, groups, and access policies
extracted anonymous AuthorizableLookup impl in StandardNiFiServiceFacade.java to a protected class to make the lookup call mockable in tests
added methods to manage users/groups/access policies to StandardNiFiServiceFacade
added StandardNiFiServiceFacadeSpec to unit-test management of users/groups/access policies
added implementations for UserDAO, GroupDAO, AccessPolicyDAO.
added spring config for user/group/policy resources and daos