@Override public boolean isSingleValueDescriptor( String key ) { return repository.isSingleValueDescriptor(key); }
@Override public boolean isSingleValueDescriptor(String key) { return delegate.isSingleValueDescriptor(key); }
public boolean isSingleValueDescriptor(String key) { return repository.isSingleValueDescriptor(key); }
/** {@inheritDoc} */ public boolean isSingleValueDescriptor(String key) throws RemoteException { return repository.isSingleValueDescriptor(key); }
@Override public boolean isSingleValueDescriptor(final String key) { return this.delegate.isSingleValueDescriptor(key); }
public boolean isSingleValueDescriptor(String key) { return delegatee.isSingleValueDescriptor(key); }
public boolean isSingleValueDescriptor(String key) { return repository.isSingleValueDescriptor(key); }
public boolean isSingleValueDescriptor(String key) { return wrapped.isSingleValueDescriptor(key); }
@Override public boolean isSingleValueDescriptor(String key) { Repository repo = getRepository(); if (repo != null) { return repo.isSingleValueDescriptor(key); } logger.error("isSingleValueDescriptor: Repository not available"); return false; }
public boolean isSingleValueDescriptor(String key) { Repository curRepository = getCurrentThreadRepository(); if (curRepository != null) { return curRepository.isSingleValueDescriptor(key); } return false; }
public boolean isSingleValueDescriptor(String key) { try { return getRepository().isSingleValueDescriptor(key); } catch (RepositoryException e) { log.error("RepositoryException: ",e); } return false; }
/** * Checks whether the given key identifies a valid single-valued * descriptor key in the proxied repository. Returns <code>false</code> * if the proxied repository can not be accessed. * * @return <code>true</code> if the key identifies a valid single-valued * descriptor in the proxied repository, * <code>false</code> otherwise */ public boolean isSingleValueDescriptor(String key) { try { return getRepository().isSingleValueDescriptor(key); } catch (RepositoryException e) { return false; } }
/** * Checks whether the given key identifies a valid single-valued * descriptor key in the proxied repository. Returns <code>false</code> * if the proxied repository can not be accessed. * * @return <code>true</code> if the key identifies a valid single-valued * descriptor in the proxied repository, * <code>false</code> otherwise */ public boolean isSingleValueDescriptor(String key) { try { return getRepository().isSingleValueDescriptor(key); } catch (RepositoryException e) { return false; } }
/** * Checks whether the given key identifies a valid single-valued * descriptor key in the proxied repository. Returns <code>false</code> * if the proxied repository can not be accessed. * * @return <code>true</code> if the key identifies a valid single-valued * descriptor in the proxied repository, * <code>false</code> otherwise */ public boolean isSingleValueDescriptor(String key) { try { return factory.getRepository().isSingleValueDescriptor(key); } catch (RepositoryException e) { return false; } }
/** * Checks whether the given key identifies a valid single-valued * descriptor key in the proxied repository. Returns <code>false</code> * if the proxied repository can not be accessed. * * @return <code>true</code> if the key identifies a valid single-valued * descriptor in the proxied repository, * <code>false</code> otherwise */ public boolean isSingleValueDescriptor(String key) { try { return getRepository().isSingleValueDescriptor(key); } catch (RepositoryException e) { return false; } }
public boolean isSingleValueDescriptor(String key) { if (jcrDelegateeRepository != null) { return jcrDelegateeRepository.isSingleValueDescriptor(key); } if (hippoRepository != null) { ClassLoader currentClassloader = switchToRepositoryClassloader(); try { return hippoRepository.getRepository().isSingleValueDescriptor(key); } finally { if (currentClassloader != null) { Thread.currentThread().setContextClassLoader(currentClassloader); } } } return false; }
/** * Tests that the required repository descriptors are available. */ public void testRequiredDescriptors() { Repository rep = session.getRepository(); for (Iterator<String> it = requiredDescriptorKeys.iterator(); it.hasNext();) { String descName = it.next(); assertTrue(descName + " is a standard descriptor", rep.isStandardDescriptor(descName)); if (rep.isSingleValueDescriptor(descName)) { Value val = rep.getDescriptorValue(descName); assertNotNull("Required descriptor is missing: " + descName, val); } else { Value[] vals = rep.getDescriptorValues(descName); assertNotNull("Required descriptor is missing: " + descName, vals); } } }
/** * Tests whether {@link Repository#getDescriptorValues(String)} returns an * Value[] of size 1 for single valued descriptors. */ public void testGetDescriptorValues() { Repository rep = session.getRepository(); // "option.node.type.management.supported" denotes a single-valued BOOLEAN descriptor String descName = Repository.OPTION_NODE_TYPE_MANAGEMENT_SUPPORTED; assertTrue(rep.isSingleValueDescriptor(descName)); Value[] vals = rep.getDescriptorValues(descName); assertNotNull("Required descriptor is missing: " + descName, vals); assertEquals(1, vals.length); assertEquals(PropertyType.BOOLEAN, vals[0].getType()); try { // getDescriptorValue(key).getString() is equivalent to getDescriptor(key) assertEquals(vals[0].getString(), rep.getDescriptor(descName)); } catch (RepositoryException e) { fail(e.getMessage()); } // "option.node.type.management.supported" denotes a single-valued BOOLEAN descriptor descName = Repository.QUERY_LANGUAGES; assertFalse(rep.isSingleValueDescriptor(descName)); Value val = rep.getDescriptorValue(descName); assertNull(descName + " is a multi-value descriptor, getDescriptorValue() should return null", val); } }