@Override public Property setProperty(final String name, final boolean value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final String[] values) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(values); getMockedSession().addItem(property); return property; }
@Override @SuppressWarnings("deprecation") public Property setProperty(final String name, final InputStream value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final Value[] values) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(values); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final long value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final Node value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final Value value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final String value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final Calendar value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final double value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final Binary value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Property setProperty(final String name, final BigDecimal value) throws RepositoryException { Property property = new MockProperty(getPath() + "/" + name, getSession()); property.setValue(value); getMockedSession().addItem(property); return property; }
@Override public Node addNode(final String relPath, final String primaryNodeTypeName) throws RepositoryException { String path = makeAbsolutePath(relPath); Node node = new MockNode(path, getSession(), new MockNodeType(primaryNodeTypeName)); getMockedSession().addItem(node); return node; }