Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All endpoints save FedoraTransactions are injected, remains to add un…
…it tests
- Loading branch information
Showing
10 changed files
with
186 additions
and
105 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
8 changes: 8 additions & 0 deletions
8
fcrepo-http-api/src/main/java/org/fcrepo/api/repository/FedoraRepositoryIdentifiers.java
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 |
---|---|---|
@@ -1,11 +1,19 @@ | ||
|
||
package org.fcrepo.api.repository; | ||
|
||
import javax.jcr.Session; | ||
import javax.ws.rs.Path; | ||
|
||
import org.fcrepo.api.FedoraIdentifiers; | ||
import org.fcrepo.session.InjectedSession; | ||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Scope("prototype") | ||
@Path("/fcr:pid") | ||
public class FedoraRepositoryIdentifiers extends FedoraIdentifiers { | ||
|
||
@InjectedSession | ||
protected Session session; | ||
} |
27 changes: 8 additions & 19 deletions
27
fcrepo-http-api/src/main/java/org/fcrepo/api/repository/FedoraRepositoryImport.java
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 |
---|---|---|
@@ -1,30 +1,19 @@ | ||
package org.fcrepo.api.repository; | ||
|
||
|
||
import static javax.ws.rs.core.Response.created; | ||
import static org.slf4j.LoggerFactory.getLogger; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
import java.util.Map; | ||
package org.fcrepo.api.repository; | ||
|
||
import javax.annotation.Resource; | ||
import javax.jcr.RepositoryException; | ||
import javax.jcr.Session; | ||
import javax.ws.rs.DefaultValue; | ||
import javax.ws.rs.POST; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.QueryParam; | ||
import javax.ws.rs.core.Response; | ||
|
||
import org.fcrepo.AbstractResource; | ||
import org.fcrepo.api.FedoraImport; | ||
import org.fcrepo.exception.InvalidChecksumException; | ||
import org.fcrepo.serialization.FedoraObjectSerializer; | ||
import org.slf4j.Logger; | ||
import org.fcrepo.session.InjectedSession; | ||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Scope("prototype") | ||
@Path("/fcr:import") | ||
public class FedoraRepositoryImport extends FedoraImport { | ||
|
||
@InjectedSession | ||
protected Session session; | ||
|
||
} |
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
Oops, something went wrong.