Beispiel #1
0
  ItemInfoImpl(DavPropertySet propSet, NamePathResolver resolver)
      throws NameException, NamespaceException {

    DavProperty<?> pathProp =
        propSet.get(JcrRemotingConstants.JCR_PATH_LN, ItemResourceConstants.NAMESPACE);
    String jcrPath = pathProp.getValue().toString();
    path = resolver.getQPath(jcrPath);
  }
 private String[] getJCRNames(Name[] names) throws NamespaceException {
   if (names == null) {
     return null;
   }
   String[] ret = new String[names.length];
   for (int i = 0; i < names.length; i++) {
     ret[i] = resolver.getJCRName(names[i]);
   }
   return ret;
 }
 // ------------------------------------------------------------< private >---
 private Path getPath(String absPath) throws RepositoryException {
   return (absPath == null) ? null : resolver.getQPath(absPath);
 }
 private String getJCRName(Name name) throws NamespaceException {
   if (name == null) {
     return null;
   }
   return resolver.getJCRName(name);
 }