Skip to content

Commit

Permalink
Remove FedoraRepositoryWorkspaces; per awoods response to Fedora Repo…
Browse files Browse the repository at this point in the history
… 4 Workspace question
  • Loading branch information
cbeer committed Sep 25, 2014
1 parent 8c0f022 commit a4f0495
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 762 deletions.

This file was deleted.

Expand Up @@ -163,7 +163,7 @@ void init() throws IOException {

final List<String> otherTemplates =
ImmutableList.of("search:results", "jcr:namespaces",
"jcr:workspaces", "jcr:nodetypes",
"jcr:nodetypes",
"node", "fcr:versions", "fcr:lock");

for (final String key : otherTemplates) {
Expand Down
Expand Up @@ -28,7 +28,6 @@
import static org.fcrepo.kernel.RdfLexicon.HAS_SITEMAP;
import static org.fcrepo.kernel.RdfLexicon.HAS_TRANSACTION_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.HAS_VERSION_HISTORY;
import static org.fcrepo.kernel.RdfLexicon.HAS_WORKSPACE_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.RDFS_LABEL;
import static org.fcrepo.kernel.RdfLexicon.REPOSITORY_NAMESPACE;
import static org.fcrepo.kernel.RdfLexicon.DC_NAMESPACE;
Expand All @@ -46,7 +45,6 @@
import org.fcrepo.http.api.repository.FedoraRepositoryExport;
import org.fcrepo.http.api.repository.FedoraRepositoryNamespaces;
import org.fcrepo.http.api.repository.FedoraRepositoryTransactions;
import org.fcrepo.http.api.repository.FedoraRepositoryWorkspaces;
import org.fcrepo.http.commons.api.rdf.UriAwareResourceModelFactory;
import org.fcrepo.kernel.FedoraResource;
import org.fcrepo.kernel.exception.RepositoryRuntimeException;
Expand Down Expand Up @@ -177,11 +175,6 @@ private void addRepositoryStatements(final UriInfo uriInfo, final Model model,
.getBaseUriBuilder().path(FedoraRepositoryNamespaces.class)
.build().toASCIIString()));

// fcr:workspaces
model.add(s, HAS_WORKSPACE_SERVICE, createResource(uriInfo
.getBaseUriBuilder().path(FedoraRepositoryWorkspaces.class)
.build().toASCIIString()));

final Property dcFormat = createProperty(DC_NAMESPACE + "format");
// fcr:export?format=xyz
for (final String key : serializers.keySet()) {
Expand Down
1 change: 0 additions & 1 deletion fcrepo-http-api/src/main/resources/views/common-header.vsl
Expand Up @@ -16,7 +16,6 @@
<ul class="nav navbar-nav">
<li><a href="$uriInfo.baseUriBuilder.build()">Home</a></li>
<li><a href="$uriInfo.baseUriBuilder.build()fcr:namespaces">Namespaces</a></li>
<li><a href="$uriInfo.baseUriBuilder.build()fcr:workspaces">Workspaces</a></li>
<li><a href="$uriInfo.baseUriBuilder.build()fcr:nodetypes">Types</a></li>
</ul>
<form class="navbar-form navbar-left" role="search" method="GET" action="$uriInfo.baseUriBuilder.build()fcr:search">
Expand Down
31 changes: 0 additions & 31 deletions fcrepo-http-api/src/main/resources/views/jcr-workspaces.vsl

This file was deleted.

This file was deleted.

Expand Up @@ -26,7 +26,6 @@
import static org.fcrepo.kernel.RdfLexicon.HAS_SITEMAP;
import static org.fcrepo.kernel.RdfLexicon.HAS_TRANSACTION_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.HAS_VERSION_HISTORY;
import static org.fcrepo.kernel.RdfLexicon.HAS_WORKSPACE_SERVICE;
import static org.jgroups.util.Util.assertFalse;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
Expand Down Expand Up @@ -116,7 +115,6 @@ public void shouldDecorateModeRootNodesWithRepositoryWideLinks()
assertTrue(model.contains(graphSubject, HAS_SITEMAP));
assertTrue(model.contains(graphSubject, HAS_TRANSACTION_SERVICE));
assertTrue(model.contains(graphSubject, HAS_NAMESPACE_SERVICE));
assertTrue(model.contains(graphSubject, HAS_WORKSPACE_SERVICE));
}

@Test
Expand Down

0 comments on commit a4f0495

Please sign in to comment.