Skip to content

Commit

Permalink
Merge pull request #514 from fcrepo4/remove-fcr-namespaces
Browse files Browse the repository at this point in the history
Remove fcr:namespaces endpoint
  • Loading branch information
Andrew Woods committed Oct 13, 2014
2 parents bed38d6 + 9b52232 commit dfa3aab
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 538 deletions.

This file was deleted.

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

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

for (final String key : otherTemplates) {
final Template template =
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_SERIALIZATION;
import static org.fcrepo.kernel.RdfLexicon.HAS_SITEMAP;
import static org.fcrepo.kernel.RdfLexicon.HAS_TRANSACTION_SERVICE;
Expand All @@ -41,7 +40,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.commons.api.rdf.UriAwareResourceModelFactory;
import org.fcrepo.kernel.FedoraResource;
Expand Down Expand Up @@ -163,11 +161,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()));

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 @@ -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:nodetypes">Types</a></li>
</ul>
</div>
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_SERIALIZATION;
import static org.fcrepo.kernel.RdfLexicon.HAS_SITEMAP;
import static org.fcrepo.kernel.RdfLexicon.HAS_TRANSACTION_SERVICE;
Expand Down Expand Up @@ -115,7 +114,6 @@ public void shouldDecorateModeRootNodesWithRepositoryWideLinks()

assertTrue(model.contains(graphSubject, HAS_SITEMAP));
assertTrue(model.contains(graphSubject, HAS_TRANSACTION_SERVICE));
assertTrue(model.contains(graphSubject, HAS_NAMESPACE_SERVICE));
}

@Test
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 dfa3aab

Please sign in to comment.