ModeShapeWebdavStore implements IWebdavStore { @Override public String[] getChildrenNames( ITransaction transaction, String folderUri ) { try { logger.trace("WebDAV getChildrenNames(txn,\"" + folderUri + "\")"); ResolvedRequest resolved = resolveRequest(folderUri); logger.trace("WebDAV -> resolves to: " + resolved); if (resolved.getPath() == null) { return childrenFor(transaction, resolved); } Node node = nodeFor(transaction, resolved); logger.trace("WebDAV -> node: " + node); if (!isFolder(node)) { return null; } List<String> children = namesOfChildren(node); logger.trace("WebDAV -> children: " + children); return children.toArray(new String[children.size()]); } catch (RepositoryException re) { throw translate(re); } } ModeShapeWebdavStore( RequestResolver requestResolver,
                                 ContentMapper contentMapper ); @Override ITransaction begin( Principal principal ); @Override void commit( ITransaction transaction ); @Override void rollback( ITransaction transaction ); @Override void checkAuthentication( ITransaction transaction ); @Override void destroy(); @Override void createFolder( ITransaction transaction,
                              String folderUri ); @Override void createResource( ITransaction transaction,
                                String resourceUri ); @Override String[] getChildrenNames( ITransaction transaction,
                                      String folderUri ); @Override InputStream getResourceContent( ITransaction transaction,
                                           String resourceUri ); @Override long getResourceLength( ITransaction transaction,
                                   String resourceUri ); @Override StoredObject getStoredObject( ITransaction transaction,
                                         String uri ); @Override void removeObject( ITransaction transaction,
                              String uri ); @Override long setResourceContent( ITransaction transaction,
                                    String resourceUri,
                                    InputStream content,
                                    String contentType,
                                    String characterEncoding ); @Override Map<String, String> setCustomProperties( ITransaction transaction,
                                                    String resourceUri,
                                                    Map<String, Object> propertiesToSet,
                                                    List<String> propertiesToRemove ); @Override Map<String, Object> getCustomProperties( ITransaction transaction,
                                                    String resourceUri ); @Override Map<String, String> getCustomNamespaces( ITransaction transaction,
                                                    String resourceUri );  }
@Test public void shouldListFilesAtRoot() throws Exception { String[] children = store.getChildrenNames(tx, "/"); compareChildrenWithSession(children, "/"); }