@Override public Iterator<String> getPropertyNames(String s) throws RepositoryException { return dlg.getPropertyNames(s); }
@Override public Iterator<String> getPropertyNames() throws RepositoryException { return dlg.getPropertyNames(); }
@Override public Iterator<String> getPropertyNames(String s) throws RepositoryException { return dlg.getPropertyNames(s); }
@Override public Iterator<String> getPropertyNames() throws RepositoryException { return dlg.getPropertyNames(); }
@Override public Iterator<String> getPropertyNames() throws RepositoryException { return delegate.getPropertyNames(); }
@Override public Iterator<String> getPropertyNames(final String relPath) throws RepositoryException { return delegate.getPropertyNames(relPath); }
@Override public Iterator<String> getPropertyNames() throws RepositoryException { return dlg.getPropertyNames(); }
@Override public Iterator<String> getPropertyNames(String s) throws RepositoryException { return dlg.getPropertyNames(s); }
@Nonnull @Override public Iterator<String> perform() throws RepositoryException { return delegate.getPropertyNames(); } });
@NotNull @Override public Iterator<String> perform() throws RepositoryException { return delegate.getPropertyNames(); } });
@NotNull @Override public Iterator<String> perform() throws RepositoryException { return delegate.getPropertyNames(relPath); } });
@NotNull @Override public Iterator<String> perform() throws RepositoryException { return delegate.getPropertyNames(relPath); } });
@NotNull @Override public Iterator<String> perform() throws RepositoryException { return delegate.getPropertyNames(); } });
@Nonnull @Override public Iterator<String> perform() throws RepositoryException { return delegate.getPropertyNames(relPath); } });
public Iterator<String> getPropertyNames() throws RepositoryException { return user.getPropertyNames(); }
public Iterator<String> getPropertyNames(String relPath) throws RepositoryException { return user.getPropertyNames(relPath); }
public void testGetPropertyNamesByInvalidRelPath() throws NotExecutableException, RepositoryException { Authorizable auth = getTestUser(superuser); List<String> invalidPaths = new ArrayList<String>(); invalidPaths.add("../"); invalidPaths.add("../../"); invalidPaths.add("../testing"); invalidPaths.add("/testing"); invalidPaths.add(null); for (String invalidRelPath : invalidPaths) { try { auth.getPropertyNames(invalidRelPath); fail("Calling Authorizable#getPropertyNames with " + invalidRelPath + " must fail."); } catch (Exception e) { // success } } }
@Test public void testGetPropertyNames3() throws Exception { try { Iterator it = authorizable.getPropertyNames("uTest:node"); fail(); } catch (RepositoryException e) { // success } }
@Test public void testGetPropertyNames2() throws Exception { Iterator it = authorizable.getPropertyNames("my:node"); assertTrue(it.hasNext()); assertEquals("my:property2", it.next()); assertFalse(it.hasNext()); }
@Test public void testGetPropertyNames() throws Exception { Iterator it = authorizable.getPropertyNames(); assertTrue(it.hasNext()); assertEquals("my:property", it.next()); assertFalse(it.hasNext()); }