@SuppressWarnings( "deprecation" ) @Test public void shouldHaveRootNode() throws Exception { session = createSession(); javax.jcr.Node root = session.getRootNode(); String uuid = root.getIdentifier(); assertThat(root.isNodeType("mix:referenceable"), is(true)); assertThat(root.getUUID(), is(uuid)); assertThat(root.getIdentifier(), is(uuid)); javax.jcr.NodeIterator iter = root.getNodes(); javax.jcr.Node system = iter.nextNode(); assertThat(system.getName(), is("jcr:system")); javax.jcr.Node childA = root.addNode("childA", "nt:unstructured"); assertThat(childA, is(notNullValue())); iter = root.getNodes(); javax.jcr.Node system2 = iter.nextNode(); javax.jcr.Node childA2 = iter.nextNode(); assertThat(system2.getName(), is("jcr:system")); assertThat(childA2.getName(), is("childA")); }
@Override public String getName() { return repositoryName.get(); }
JcrRepository implements org.modeshape.jcr.api.Repository { @Override public String getName() { return repositoryName.get(); } }
JcrRepository implements org.modeshape.jcr.api.Repository { @Override public String getName() { return repositoryName.get(); } protected  JcrRepository( RepositoryConfiguration configuration ); }
JcrRepository implements org.modeshape.jcr.api.Repository { @Override public String getName() { return repositoryName.get(); } protected  JcrRepository( RepositoryConfiguration configuration ); State getState(); @Override String getName(); @Override int getActiveSessionsCount(); RepositoryStatistics getRepositoryStatistics(); Problems getStartupProblems(); Transactions transactions(); RepositoryConfiguration getConfiguration(); @Override String getDescriptor( String key ); @Override JcrValue getDescriptorValue( String key ); @Override JcrValue[] getDescriptorValues( String key ); @Override boolean isSingleValueDescriptor( String key ); @Override boolean isStandardDescriptor( String key ); @Override String[] getDescriptorKeys(); @Override synchronized JcrSession login(); @Override synchronized JcrSession login( Credentials credentials ); @Override synchronized JcrSession login( String workspaceName ); @Override synchronized JcrSession login( final Credentials credentials,
                                          String workspaceName ); }
JcrRepository implements org.modeshape.jcr.api.Repository { @Override public String getName() { return repositoryName.get(); } protected  JcrRepository( RepositoryConfiguration configuration ); State getState(); @Override String getName(); @Override int getActiveSessionsCount(); RepositoryStatistics getRepositoryStatistics(); Problems getStartupProblems(); Transactions transactions(); RepositoryConfiguration getConfiguration(); @Override String getDescriptor( String key ); @Override JcrValue getDescriptorValue( String key ); @Override JcrValue[] getDescriptorValues( String key ); @Override boolean isSingleValueDescriptor( String key ); @Override boolean isStandardDescriptor( String key ); @Override String[] getDescriptorKeys(); @Override synchronized JcrSession login(); @Override synchronized JcrSession login( Credentials credentials ); @Override synchronized JcrSession login( String workspaceName ); @Override synchronized JcrSession login( final Credentials credentials,
                                          String workspaceName );  }