/** * Returns the prefixed JCR name for the namespace URI and local name * using the current namespace mappings. * * @param uri namespace URI * @param name namespace-local name * @return prefixed JCR name * @throws RepositoryException if an error occurs */ private String getName(String name) throws RepositoryException { return new NamespaceHelper(getSession()).getJcrName(name); }
/** * Calls {@link Repository#login(Credentials, String)} with * <code>null</code> arguments. * * @return logged in session * @throws RepositoryException if an error occurs */ public Session login() throws RepositoryException { return login(null, null); }
/** * Same as {@link ItemNameMatcher#matches(String, String)}. * * @see javax.jcr.Node#getNodes(String) */ public static boolean matches(String name, String[] nameGlobs) { return ItemNameMatcher.matches(name, nameGlobs); }
/** * Returns the default repository of the current environment. * Implemented by calling {@link #getRepository(Map)} with a * <code>null</code> parameter map. * * @see RepositoryFactory#getRepository(Map) * @return default repository * @throws RepositoryException if a default repository is not available * or can not be accessed */ public static Repository getRepository() throws RepositoryException { return getRepository((Map<String, String>) null); }
/** * Returns the length of the value of this property. * <p> * The default implementation measures the length of the {@link Value} * instance returned by the generic {@link Property#getValue()} method. * * @return length of the property value * @throws RepositoryException if an error occurs */ public long getLength() throws RepositoryException { return getLength(getValue()); }
/** * Returns the prefixed JCR name for the namespace URI and local name * using the current namespace mappings. * * @param uri namespace URI * @param name namespace-local name * @return prefixed JCR name * @throws RepositoryException if an error occurs */ private String getName(String name) throws RepositoryException { return new NamespaceHelper(getSession()).getJcrName(name); }
/** * Returns the length of the value of this property. * <p> * The default implementation measures the length of the {@link Value} * instance returned by the generic {@link Property#getValue()} method. * * @return length of the property value * @throws RepositoryException if an error occurs */ public long getLength() throws RepositoryException { return getLength(getValue()); }
/** * Calls {@link Repository#login(Credentials, String)} with * the given credentials and a <code>null</code> workspace name. * * @param credentials login credentials * @return logged in session * @throws RepositoryException if an error occurs */ public Session login(Credentials credentials) throws RepositoryException { return login(credentials, null); }
/** * Same as {@link ItemNameMatcher#matches(String, String)}. * * @see javax.jcr.Node#getNodes(String) */ public static boolean matches(String name, String pattern) { return ItemNameMatcher.matches(name, pattern); }
/** * Returns the prefixed JCR name for the namespace URI and local name * using the current namespace mappings. * * @param uri namespace URI * @param name namespace-local name * @return prefixed JCR name * @throws RepositoryException if an error occurs */ private String getName(String name) throws RepositoryException { return new NamespaceHelper(getSession()).getJcrName(name); }
/** * Returns the length of the value of this property. * <p> * The default implementation measures the length of the {@link Value} * instance returned by the generic {@link Property#getValue()} method. * * @return length of the property value * @throws RepositoryException if an error occurs */ public long getLength() throws RepositoryException { return getLength(getValue()); }
/** * Calls {@link Repository#login(Credentials, String)} with * <code>null</code> arguments. * * @return logged in session * @throws RepositoryException if an error occurs */ public Session login() throws RepositoryException { return login(null, null); }
/** * Same as {@link ItemNameMatcher#matches(String, String)}. * * @see javax.jcr.Node#getNodes(String) */ public static boolean matches(String name, String[] nameGlobs) { return ItemNameMatcher.matches(name, nameGlobs); }
/** * Returns the length of the value of this property. * <p> * The default implementation measures the length of the {@link Value} * instance returned by the generic {@link Property#getValue()} method. * * @return length of the property value * @throws RepositoryException if an error occurs */ public long getLength() throws RepositoryException { return getLength(getValue()); }
/** * Calls {@link Repository#login(Credentials, String)} with * the given credentials and a <code>null</code> workspace name. * * @param credentials login credentials * @return logged in session * @throws RepositoryException if an error occurs */ public Session login(Credentials credentials) throws RepositoryException { return login(credentials, null); }
/** * Same as {@link ItemNameMatcher#matches(String, String)}. * * @see javax.jcr.Node#getNodes(String) */ public static boolean matches(String name, String pattern) { return ItemNameMatcher.matches(name, pattern); }
/** * Calls {@link Repository#login(Credentials, String)} with * <code>null</code> credentials and the given workspace name. * * @param workspace workspace name * @return logged in session * @throws RepositoryException if an error occurs */ public Session login(String workspace) throws RepositoryException { return login(null, workspace); }
/** * Same as {@link ItemNameMatcher#matches(String, String)}. * * @see javax.jcr.Node#getNodes(String) */ public static boolean matches(String name, String pattern) { return ItemNameMatcher.matches(name, pattern); }
/** * Calls {@link Repository#login(Credentials, String)} with * <code>null</code> credentials and the given workspace name. * * @param workspace workspace name * @return logged in session * @throws RepositoryException if an error occurs */ public Session login(String workspace) throws RepositoryException { return login(null, workspace); }
/** * Calls {@link Repository#login(Credentials, String)} with * <code>null</code> arguments. * * @return logged in session * @throws RepositoryException if an error occurs */ public Session login() throws RepositoryException { return login(null, null); }