@Override public String getPath(Session session, Object object) { return super.getPath(session, object); }
@Override public String getPath(Session session, Object object) { return super.getPath(session, object); }
public void insert(Session session, Object object) { String path = this.getPath(session, object); try { String parentPath = NodeUtil.getParentPath(path); String nodeName = NodeUtil.getNodeName(path); Node parentNode = session.getNode(parentPath); this.insert(session, parentNode, nodeName, object); } catch (PathNotFoundException pnfe) { throw new ObjectContentManagerException("Impossible to insert the object at '" + path + "'", pnfe); } catch (RepositoryException re) { throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to insert the object at '" + path + "'", re); } }
public void update(Session session, Object object) { String path = this.getPath(session, object); try { String parentPath = NodeUtil.getParentPath(path); String nodeName = NodeUtil.getNodeName(path); Node parentNode = session.getNode(parentPath); this.update(session, parentNode, nodeName, object); } catch (PathNotFoundException pnfe) { throw new ObjectContentManagerException("Impossible to update the object at '" + path + "'", pnfe); } catch (RepositoryException re) { throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to update the object at '" + path + "'", re); } }
/** * @see org.apache.jackrabbit.ocm.manager.objectconverter.ObjectConverter#insert(javax.jcr.Session, * java.lang.Object) */ public void insert(Session session, Object object) { String path = this.getPath(session, object); try { String parentPath = NodeUtil.getParentPath(path); String nodeName = NodeUtil.getNodeName(path); Node parentNode = (Node) session.getItem(parentPath); this.insert(session, parentNode, nodeName, object); } catch (PathNotFoundException pnfe) { throw new ObjectContentManagerException("Impossible to insert the object at '" + path + "'", pnfe); } catch (RepositoryException re) { throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to insert the object at '" + path + "'", re); } }
/** * @see org.apache.jackrabbit.ocm.manager.objectconverter.ObjectConverter#update(javax.jcr.Session, * java.lang.Object) */ public void update(Session session, Object object) { String path = this.getPath(session, object); try { String parentPath = NodeUtil.getParentPath(path); String nodeName = NodeUtil.getNodeName(path); Node parentNode = (Node) session.getItem(parentPath); this.update(session, parentNode, nodeName, object); } catch (PathNotFoundException pnfe) { throw new ObjectContentManagerException("Impossible to update the object at '" + path + "'", pnfe); } catch (RepositoryException re) { throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to update the object at '" + path + "'", re); } }