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

added label to FedoraObject #28

Merged
merged 4 commits into from Mar 27, 2013
Merged

added label to FedoraObject #28

merged 4 commits into from Mar 27, 2013

Conversation

jmacwilliams
Copy link
Contributor

No description provided.

* @return A label associated with this object. Normally stored in a String-valued dc:title property.
* @throws RepositoryException
*/
public String getLabel() throws RepositoryException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe FedoraObject and Datastream should inherit from a base class that provides label-fetching methods?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed

@ajs6f
Copy link
Contributor

ajs6f commented Feb 27, 2013

That would a hypothetical FedoraResource? (Matching the JCR types.)

Repository repo;

@Test
public void testLabel() throws RepositoryException, IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also have a test showing what happens when you set the label, and then set the label again?

@cbeer
Copy link
Contributor

cbeer commented Feb 27, 2013

Indeed, a FedoraResource.

@barmintor barmintor merged commit da164a1 into fcrepo:master Mar 27, 2013
birkland pushed a commit to birkland/fcrepo4 that referenced this pull request Jul 22, 2016
Link to Quick Start with WebAC guide on the wiki.
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

4 participants