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

Made URIs derived from version labels the exposed ID. #892

Closed
wants to merge 4 commits into from

Conversation

mikedurbin
Copy link
Contributor

// there's a version whose UUID is equal to the label
final VersionIterator versionIt = history.getAllVersions();
if (versionIt == null) {
} else {
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 think an else is needed here. Just return null.

subject.getURI(), labels[0]);
}
final Node versionSubject
= createProperty(subject + "/fcr:versions/" + labels[0]).asNode();
Copy link

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I think @awoods is probably right, but if there is an IdentifierTranslator in context, it would be even better to use it.

@awoods
Copy link

awoods commented Aug 30, 2015

Resolved with: 6b291ea

@awoods awoods closed this Aug 30, 2015
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

3 participants