Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wire in an import action (and makke the whole repository exportable too)
- Loading branch information
Showing
6 changed files
with
119 additions
and
16 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
fcrepo-http-api/src/main/java/org/fcrepo/api/repository/FedoraRepositoryExport.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
package org.fcrepo.api.repository; | ||
|
||
import javax.jcr.Session; | ||
import javax.ws.rs.Path; | ||
import org.fcrepo.api.FedoraImport; | ||
import org.fcrepo.session.InjectedSession; | ||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
/** | ||
* This stub is a hack to mount the functionality of FedoraImport at | ||
* the root of this webapp. Without it, the globbing from FedoraNodes would | ||
* own this path instead. | ||
*/ | ||
@Component | ||
@Scope("prototype") | ||
@Path("/fcr:export") | ||
public class FedoraRepositoryExport 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
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
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