1 13 package info.magnolia.repository; 14 15 import java.io.InputStream ; 16 17 import javax.jcr.Repository; 18 import javax.jcr.RepositoryException; 19 import javax.jcr.Workspace; 20 21 22 27 public interface Provider { 28 29 35 void init(RepositoryMapping repositoryMapping) throws RepositoryNotInitializedException; 36 37 41 Repository getUnderlineRepository() throws RepositoryNotInitializedException; 42 43 50 void registerNamespace(String prefix, String uri, Workspace workspace) throws RepositoryException; 51 52 58 void unregisterNamespace(String prefix, Workspace workspace) throws RepositoryException; 59 60 64 void registerNodeTypes() throws RepositoryException; 65 66 70 void registerNodeTypes(String configuration) throws RepositoryException; 71 72 77 void registerNodeTypes(InputStream stream) throws RepositoryException; 78 79 86 boolean registerWorkspace(String workspaceName) throws RepositoryException; 87 } 88 | Popular Tags |