JcrDavException
801802803804805806807808809
} Workspace workspace = session.getRepositorySession().getWorkspace(); workspace.clone(workspace.getName(), node.getPath(), newBinding.getLocator().getRepositoryPath(), false); } catch (RepositoryException e) { throw new JcrDavException(e); } }
833834835836837838839840
throw new DavException(node.canAddMixin(MIX_REFERENCEABLE)? DavServletResponse.SC_CONFLICT : DavServletResponse.SC_METHOD_NOT_ALLOWED); } getJcrSession().getWorkspace().move(locator.getRepositoryPath(), newBinding.getLocator().getRepositoryPath()); } catch (RepositoryException e) { throw new JcrDavException(e); } }
131132133134135136137138
subscription.getUuidFilters(), subscription.getNodetypeNameFilters(), subscription.isNoLocal()); } catch (RepositoryException e) { log.error("Unable to register eventlistener: "+e.getMessage()); throw new JcrDavException(e); } }
173174175176177178179180
subscriptions.remove(sId); resource.getSession().removeReference(sId); } catch (RepositoryException e) { log.error("Unable to remove eventlistener: "+e.getMessage()); throw new JcrDavException(e); } }
293294295296297298299300
*/ void suspend() throws DavException { try { obsMgr.removeEventListener(this); } catch (RepositoryException e) { throw new JcrDavException(e); } }
307308309310311312313314
try { obsMgr.addEventListener(this, getJcrEventTypes(), getLocator().getRepositoryPath(), isDeep(), getUuidFilters(), getNodetypeNameFilters(), isNoLocal()); } catch (RepositoryException e) { throw new JcrDavException(e); } }
9899100101102103104105
public MultiStatus search(SearchInfo sInfo) throws DavException { try { return queryResultToMultiStatus(getQuery(sInfo)); } catch (RepositoryException e) { throw new JcrDavException(e); } }
180181182183184185186187188189
if (itemPath != null && !getRepositorySession().itemExists(itemPath)) { try { q.storeAsNode(itemPath); } catch (RepositoryException e) { // ItemExistsException should never occur. throw new JcrDavException(e); } } return q; }
137138139140141142143144145146147
} } catch (PathNotFoundException e) { // ignore: exists field evaluates to false } catch (RepositoryException e) { // some other error throw new JcrDavException(e); } } else { throw new DavException(DavServletResponse.SC_NOT_FOUND); } }
347348349350351352353354355356357
try { setJcrProperty(property); node.save(); } catch (RepositoryException e) { // revert any changes made so far an throw exception JcrDavException je = new JcrDavException(e); try { node.refresh(false); } catch (RepositoryException re) { // should not happen... }