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

Get the agent string from the Fedora user principal attribute in the JCR session. #17

Merged
merged 1 commit into from Sep 3, 2015

Conversation

peichman-umd
Copy link
Contributor

Additional principals (from the principal providers) will be in userSession.getAttribute(FEDORA_ALL_PRINCIPALS), which returns a Set<Principal>. These would probably be what we need to use for groups.

// use the user principal as the WebAC agent
// if there is no logged-in user, the user principal will be the EVERYONE principal, so
// the agent will be FOAF_AGENT_VALUE (i.e., the URI string for foaf:Agent)
final Principal userPrincipal = (Principal) userSession.getAttribute(FEDORA_USER_PRINCIPAL);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't believe FEDORA_USER_PRINCIPAL is defined anywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

acoburn added a commit that referenced this pull request Sep 3, 2015
Get the agent string from the Fedora user principal attribute in the JCR session.
@acoburn acoburn merged commit 6ab18f3 into fcrepo4:delegate_impl Sep 3, 2015
@peichman-umd peichman-umd deleted the delegate_impl branch September 3, 2015 17:29
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