Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't auto-create nodes when starting the repository.
  • Loading branch information
cbeer committed May 31, 2013
1 parent 15f552e commit b4a418c
Showing 1 changed file with 0 additions and 15 deletions.
Expand Up @@ -7,9 +7,7 @@
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.jcr.RepositoryException;
import javax.jcr.Session;

import org.fcrepo.services.ObjectService;
import org.modeshape.jcr.JcrRepository;
import org.modeshape.jcr.JcrRepositoryFactory;
import org.modeshape.jcr.api.Repository;
Expand All @@ -34,19 +32,6 @@ public void buildRepository() throws RepositoryException, IOException {
.singletonMap(RepositoryFactory.URL,
repositoryConfiguration.getURL()));

setupInitialNodes();
}

private void setupInitialNodes() throws RepositoryException {

final Session s = repository.login();

ObjectService objects = ObjectService.get(repository);
objects.createObject(s, "/objects");
objects.createObject(s, "/federated");

s.save();
s.logout();
}

@Override
Expand Down

0 comments on commit b4a418c

Please sign in to comment.