Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove fcr:namespaces endpoint
  • Loading branch information
cbeer committed Oct 13, 2014
1 parent 7dc0fcd commit 0cf2281
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 536 deletions.

This file was deleted.

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

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

Expand Down
Expand Up @@ -22,7 +22,6 @@
import static org.fcrepo.jcr.FedoraJcrTypes.ROOT;
import static org.fcrepo.kernel.RdfLexicon.HAS_FIXITY_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.HAS_LOCK;
import static org.fcrepo.kernel.RdfLexicon.HAS_NAMESPACE_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.HAS_SEARCH_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.HAS_SERIALIZATION;
import static org.fcrepo.kernel.RdfLexicon.HAS_SITEMAP;
Expand All @@ -44,7 +43,6 @@
import org.fcrepo.http.api.FedoraVersioning;
import org.fcrepo.http.api.repository.FedoraRepositorySitemap;
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;
Expand Down Expand Up @@ -172,11 +170,6 @@ private void addRepositoryStatements(final UriInfo uriInfo, final Model model,
.getBaseUriBuilder().path(FedoraRepositoryTransactions.class)
.build().toASCIIString()));

// fcr:namespaces
model.add(s, HAS_NAMESPACE_SERVICE, createResource(uriInfo
.getBaseUriBuilder().path(FedoraRepositoryNamespaces.class)
.build().toASCIIString()));

// fcr:workspaces
model.add(s, HAS_WORKSPACE_SERVICE, createResource(uriInfo
.getBaseUriBuilder().path(FedoraRepositoryWorkspaces.class)
Expand Down
1 change: 0 additions & 1 deletion fcrepo-http-api/src/main/resources/views/common-header.vsl
Expand Up @@ -15,7 +15,6 @@
<div class="collapse navbar-collapse navbar-ex1-collapse">
<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>
Expand Down
65 changes: 0 additions & 65 deletions fcrepo-http-api/src/main/resources/views/jcr-namespaces.vsl

This file was deleted.

This file was deleted.

Expand Up @@ -19,7 +19,6 @@
import static org.fcrepo.http.commons.test.util.TestHelpers.getUriInfoImpl;
import static org.fcrepo.jcr.FedoraJcrTypes.ROOT;
import static org.fcrepo.kernel.RdfLexicon.HAS_FIXITY_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.HAS_NAMESPACE_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.HAS_SEARCH_SERVICE;
import static org.fcrepo.kernel.RdfLexicon.HAS_SERIALIZATION;
import static org.fcrepo.kernel.RdfLexicon.HAS_SITEMAP;
Expand Down Expand Up @@ -118,7 +117,6 @@ public void shouldDecorateModeRootNodesWithRepositoryWideLinks()
assertTrue(model.contains(graphSubject, HAS_SEARCH_SERVICE));
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));
}

Expand Down
Expand Up @@ -60,12 +60,4 @@ public void testGetDatastreamNode() throws Exception {
method.addHeader("Accept", "text/html");
assertEquals(200, getStatus(method));
}

@Test
public void testGetNamespaces() throws Exception {

final HttpGet method = new HttpGet(serverAddress + "fcr:namespaces");
method.addHeader("Accept", "text/html");
assertEquals(200, getStatus(method));
}
}

0 comments on commit 0cf2281

Please sign in to comment.