-
Notifications
You must be signed in to change notification settings - Fork 20
Add ResourceService::supportedInteractionModels method #95
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
Conversation
ajs6f
left a comment
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.
Beautiful, one little style thing (in three or four places) but this is the right idea.
| allModes.add(ACL.Read); | ||
| allModes.add(ACL.Write); | ||
|
|
||
| allInteractionModels.add(LDP.Resource); |
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.
If we have Guava on line (I think we do) maybe use something from Sets here to construct and fill the set?
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.
Guava isn't a compile dependency, but I have no problem with adding it as a test dependency (if it's not already there).
| allInteractionModels.add(LDP.Container); | ||
| allInteractionModels.add(LDP.BasicContainer); | ||
| allInteractionModels.add(LDP.DirectContainer); | ||
| allInteractionModels.add(LDP.IndirectContainer); |
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.
See above about Sets.
| allInteractionModels.add(LDP.Container); | ||
| allInteractionModels.add(LDP.BasicContainer); | ||
| allInteractionModels.add(LDP.DirectContainer); | ||
| allInteractionModels.add(LDP.IndirectContainer); |
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.
Ditto.
|
I think the Trellis ontology should change |
|
Just waiting for Travis et al to complete |
|
Good? |
|
@ajs6f yes, feel free to squash/merge etc whenever you'd like |
Resolves #92
Once we have agreement on this approach, I can apply it to #88, allowing the test suite to adjust to varying levels of LDP container support.
I decided not to include a default implementation in the interface -- if we want implementations to be clear about what is supported, then I thought it makes more sense to simply require an implementing class to implement the method.
I am also making use of a new named individual in the Trellis ontology
trellis:InvalidInteractionModel, which is used with theldp:constrainedBylink header in the case of an error condition.