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
Updated the Map with ModeshapePermissions to WebAC access modes. #19
Conversation
I am not sure if these modeshape permissions map to a webac access mode: |
@@ -38,6 +38,8 @@ | |||
import org.fcrepo.auth.roles.common.AbstractRolesAuthorizationDelegate; | |||
import org.fcrepo.auth.roles.common.AccessRolesProvider; | |||
import org.fcrepo.kernel.api.services.NodeService; | |||
|
|||
import org.modeshape.jcr.ModeShapePermissions; |
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.
Also, do we need a FedoraPermissions interface that inherits the ModeshapePermissions, instead of directly using it?
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 like the way you are thinking, @mohideen.
cc91941
to
ce2d1d6
Compare
@mohideen can you rebase this PR. Also, I agree with @whikloj about excluding Also, I didn't see |
|
+1 to @acoburn for |
So to recap we remove
and we add the rest is fine. |
Conflicts: src/main/java/org/fcrepo/auth/webac/WebACAuthorizationDelegate.java src/main/java/org/fcrepo/auth/webac/impl/WebACAccessRolesProvider.java src/test/java/org/fcrepo/auth/webac/impl/WebACAccessRolesProviderTest.java
Updated the Map with ModeshapePermissions to WebAC access modes.
The actions String Array in the hasPermission method is defined by the AuthorizationProvider: https://docs.jboss.org/author/display/MODE/Custom+authentication+providers
The actions are explained in the javadoc: http://docs.jboss.org/modeshape/4.2.0.Final/api/org/modeshape/jcr/ModeShapePermissions.html