Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vincent Nguyen
committed
Mar 12, 2013
1 parent
f1c1edd
commit 1801499
Showing
2 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ public class FedoraDatastreams extends AbstractResource { | |
|
||
/** | ||
* Returns a list of datastreams for the object | ||
* | ||
* | ||
* @param pid | ||
* persistent identifier of the digital object | ||
* @return the list of datastreams | ||
|
@@ -177,7 +177,7 @@ public MultipartBody getDatastreamsContents(@PathParam("pid") | |
|
||
/** | ||
* Create a new datastream | ||
* | ||
* | ||
* @param pid | ||
* persistent identifier of the digital object | ||
* @param dsid | ||
|
@@ -189,7 +189,7 @@ public MultipartBody getDatastreamsContents(@PathParam("pid") | |
* @return 201 Created | ||
* @throws RepositoryException | ||
* @throws IOException | ||
* @throws InvalidChecksumException | ||
* @throws InvalidChecksumException | ||
*/ | ||
@POST | ||
@Path("/{dsid}") | ||
|
@@ -233,7 +233,7 @@ public Response addDatastream(@PathParam("pid") | |
* @return 201 Created | ||
* @throws RepositoryException | ||
* @throws IOException | ||
* @throws InvalidChecksumException | ||
* @throws InvalidChecksumException | ||
*/ | ||
@POST | ||
@Consumes("multipart/form-data") | ||
|
@@ -249,7 +249,7 @@ public Response addDatastream(@PathParam("pid") | |
|
||
/** | ||
* Modify an existing datastream's content | ||
* | ||
* | ||
* @param pid | ||
* persistent identifier of the digital object | ||
* @param dsid | ||
|
@@ -261,7 +261,7 @@ public Response addDatastream(@PathParam("pid") | |
* @return 201 Created | ||
* @throws RepositoryException | ||
* @throws IOException | ||
* @throws InvalidChecksumException | ||
* @throws InvalidChecksumException | ||
*/ | ||
@PUT | ||
@Path("/{dsid}") | ||
|
@@ -296,7 +296,7 @@ public Response modifyDatastream(@PathParam("pid") | |
* @return 201 Created | ||
* @throws RepositoryException | ||
* @throws IOException | ||
* @throws InvalidChecksumException | ||
* @throws InvalidChecksumException | ||
*/ | ||
@PUT | ||
@Consumes("multipart/form-data") | ||
|
@@ -320,9 +320,9 @@ private URI addDatastreamNode(final String pid, final String dsPath, | |
getObjectSize(session.getNode(getObjectJcrNodePath(pid))); | ||
logger.debug("Attempting to add datastream node at path: " + dsPath); | ||
try { | ||
boolean created = session.nodeExists(dsPath); | ||
createDatastreamNode(session, dsPath, contentType.toString(), | ||
requestBodyStream); | ||
boolean created = session.nodeExists(dsPath); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
vincentwin
Contributor
|
||
session.save(); | ||
if (created) { | ||
/* | ||
|
@@ -345,7 +345,7 @@ private URI addDatastreamNode(final String pid, final String dsPath, | |
|
||
/** | ||
* Get the datastream profile of a datastream | ||
* | ||
* | ||
* @param pid | ||
* persistent identifier of the digital object | ||
* @param dsid | ||
|
@@ -370,7 +370,7 @@ public DatastreamProfile getDatastream(@PathParam("pid") | |
|
||
/** | ||
* Get the binary content of a datastream | ||
* | ||
* | ||
* @param pid | ||
* persistent identifier of the digital object | ||
* @param dsid | ||
|
@@ -390,7 +390,7 @@ public Response getDatastreamContent(@PathParam("pid") | |
|
||
/** | ||
* Get previous version information for this datastream | ||
* | ||
* | ||
* @param pid | ||
* persistent identifier of the digital object | ||
* @param dsId | ||
|
@@ -420,9 +420,9 @@ DatastreamHistory getDatastreamHistory(@PathParam("pid") | |
/** | ||
* Get previous version information for this datastream. See | ||
* /{dsid}/versions. Kept for compatibility with fcrepo <3.5 API. | ||
* | ||
* | ||
* @deprecated | ||
* | ||
* | ||
* @param pid | ||
* persistent identifier of the digital object | ||
* @param dsid | ||
|
@@ -444,7 +444,7 @@ public DatastreamHistory getDatastreamHistoryOld(@PathParam("pid") | |
|
||
/** | ||
* Purge the datastream | ||
* | ||
* | ||
* @param pid | ||
* persistent identifier of the digital object | ||
* @param dsid | ||
|
After calling createDatastreamNode, that node better exist. I think this was supposed to be a check if the method was creating or updating a datastream, but maybe we've lost that now?