Skip to content

Commit

Permalink
Desynchronizing mutating methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Jan 29, 2013
1 parent 239f9ef commit 6dae019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/fcrepo/modeshape/FedoraDatastreams.java
Expand Up @@ -62,7 +62,7 @@ public Response getDatastreams(@PathParam("pid") final String pid)

@POST
@Path("/{dsid}")
public synchronized Response addDatastream(
public Response addDatastream(
@PathParam("pid") final String pid,
@PathParam("dsid") final String dsid,
@HeaderParam("Content-Type") MediaType contentType,
Expand Down Expand Up @@ -106,7 +106,7 @@ public synchronized Response addDatastream(

@PUT
@Path("/{dsid}")
public synchronized Response modifyDatastream(
public Response modifyDatastream(
@PathParam("pid") final String pid,
@PathParam("dsid") final String dsid,
@HeaderParam("Content-Type") MediaType contentType,
Expand All @@ -130,7 +130,7 @@ public synchronized Response modifyDatastream(
}
}

private synchronized Node addDatastreamNode(final String dspath,
private Node addDatastreamNode(final String dspath,
final MediaType contentType, final InputStream requestBodyStream,
final Session session) throws RepositoryException, IOException {

Expand Down
5 changes: 1 addition & 4 deletions src/main/java/org/fcrepo/modeshape/FedoraObjects.java
Expand Up @@ -41,7 +41,7 @@ public Response ingestAndMint() throws RepositoryException {

@POST
@Path("/{pid}")
public synchronized Response ingest(@PathParam("pid") final String pid)
public Response ingest(@PathParam("pid") final String pid)
throws RepositoryException {

logger.debug("Attempting to ingest with pid: " + pid);
Expand Down Expand Up @@ -73,9 +73,6 @@ public Response getObjectInXML(@PathParam("pid") final String pid)
throws RepositoryException, IOException, TemplateException {

final Session session = repo.login();
logger.debug("Working in repository: "
+ session.getRepository().getDescriptor("custom.rep.name"));
logger.debug("Working in workspace: " + ws.getName());

if (session.nodeExists("/" + pid)) {
final Node obj = session.getNode("/" + pid);
Expand Down

0 comments on commit 6dae019

Please sign in to comment.