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

Roles provider #28

Closed
wants to merge 4 commits into from
Closed

Roles provider #28

wants to merge 4 commits into from

Conversation

acoburn
Copy link
Contributor

@acoburn acoburn commented Sep 5, 2015

Implement an AccessRolesProvider class.

This class is one of the missing links in our implementation. With it in place (and with the corresponding Spring configuration as shown in this PR), ACL resources are read, processed and user roles are added into the FAD.

This implementation has a complete unit testing framework, but it is a bit rough around the edges in two respects:

  • I have hard-coded the info:fedora prefix into the class (it's not defined in the fedora kernel api). This is needed b/c triples pointing to repository resources use that prefix. Should that value be added to the kernel-api? Or should I be using a different translator when reading the Triples (I am currently using DefaultIdentifierTranslator)?
  • I moved the WebACAuthorizationImpl class out of the impl package. OSGi won't export those packages, and I thought that would be fine, since those aren't public-facing, but when deploying this with the class in .impl, I get ClassNotFoundExceptions. Moving it into the .webac package fixes that. In this case, I'm somewhat inclined to turn WebACAuthorization into a fully-fledged class, rather than keeping it as an interface with a separate implementation.

@acoburn
Copy link
Contributor Author

acoburn commented Sep 5, 2015

n.b. this begins to supersede (but doesn't yet entirely replace) #8

* The RDF from each child resource is put into a WebACAuthorization object, and the
* full list is returned.
*
* @param session the jcr session used for locating the ACL resource
Copy link
Member

Choose a reason for hiding this comment

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

Remove session @param

@acoburn
Copy link
Contributor Author

acoburn commented Sep 6, 2015

@awoods I updated the PR with changes based on your suggestions

@awoods
Copy link
Member

awoods commented Sep 7, 2015

Resolved with: 297cad3

@awoods awoods closed this Sep 7, 2015
@acoburn acoburn deleted the roles_provider branch September 7, 2015 02:51
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