Examples of ObjectContentManagerException


Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

      retrieveCollectionFields(session, classDescriptor, node, object, false);

      return object;
    } catch (PathNotFoundException pnfe) {
      // HINT should never get here
      throw new ObjectContentManagerException("Impossible to get the object at " + path, pnfe);
    } catch (RepositoryException re) {
      throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to get the object at " + path, re);
    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

      retrieveBeanFields(session, classDescriptor, node, path, object, true);
      retrieveCollectionFields(session, classDescriptor, node, object, true);

    } catch (PathNotFoundException pnfe) {

      throw new ObjectContentManagerException("Impossible to get the object at " + path, pnfe);
    } catch (RepositoryException re) {
      throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to get the object at " + path, re);
    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

        {
          this.retrieveCollectionField(session, collectionDescriptor, node, object, true);
        }
        else
        {
          throw new ObjectContentManagerException("Impossible to retrieve the mapped attribute. The attribute '" +
                                                                       attributeName + "'  is not a bean or a collection for the class : " + classDescriptor.getClassName());
        }
      }

    } catch (PathNotFoundException pnfe) {

      throw new ObjectContentManagerException("Impossible to get the object at " + path, pnfe);
    } catch (RepositoryException re) {
      throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to get the object at " + path, re);
    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

        compatible = checkCompatibleNodeTypes(nodeType, classDescriptor);
      }

      if (!compatible) {
        throw new ObjectContentManagerException("Cannot map object of type '" + classDescriptor.getClassName() + "'. Node type '"
            + node.getPrimaryNodeType().getName() + "' does not match descriptor node type '"
            + classDescriptor.getJcrType() + "'");
      }
    } catch (RepositoryException re) {
      throw new org.apache.jackrabbit.ocm.exception.RepositoryException(re);
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

  public void insertCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor,
      ManageableCollection collection) {
    try {
      doInsertCollection(session, parentNode, collectionDescriptor, collection);
    } catch (ItemExistsException iee) {
      throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
          + " of class " + collectionDescriptor.getClassDescriptor().getClassName() + ". An item already exists.", iee);
    } catch (PathNotFoundException pnfe) {
      throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
          + " of class " + collectionDescriptor.getClassDescriptor().getClassName(), pnfe);
    } catch (VersionException ve) {
      throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
          + " of class " + collectionDescriptor.getClassDescriptor().getClassName(), ve);
    } catch (ConstraintViolationException cve) {
      throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
          + " of class " + collectionDescriptor.getClassDescriptor().getClassName() + ". Constraint violation.", cve);
    } catch (LockException le) {
      throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
          + " of class " + collectionDescriptor.getClassDescriptor().getClassName() + " on locked parent.", le);
    } catch (RepositoryException re) {
      throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Cannot insert collection field : "
          + collectionDescriptor.getFieldName() + " of class "
          + collectionDescriptor.getClassDescriptor().getClassName(), re);
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

      ManageableCollection collection) {
    try {

        doUpdateCollection(session, parentNode, collectionDescriptor, collection);
    } catch (VersionException ve) {
      throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
          + " of class " + collectionDescriptor.getClassDescriptor().getClassName(), ve);
    } catch (LockException le) {
      throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
          + " of class " + collectionDescriptor.getClassDescriptor().getClassName() + " on locked node", le);
    } catch (ConstraintViolationException cve) {
      throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
          + " of class " + collectionDescriptor.getClassDescriptor().getClassName() + " Constraint violation.", cve);
    } catch (RepositoryException re) {
      throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Cannot insert collection field : "
          + collectionDescriptor.getFieldName() + " of class "
          + collectionDescriptor.getClassDescriptor().getClassName(), re);
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

        try {
            log.add("insert at path " + parentNode.getPath());
           
        }
        catch(javax.jcr.RepositoryException re) {
            throw new ObjectContentManagerException(re);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

  throws ObjectContentManagerException, RepositoryException,  JcrMappingException {
        try {
            log.add("update at path " + parentNode.getPath());
        }
        catch(javax.jcr.RepositoryException re) {
            throw new ObjectContentManagerException(re);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

  throws ObjectContentManagerException, RepositoryException,JcrMappingException {
        try {
            log.add("get from path " + parentNode.getPath());
        }
        catch(javax.jcr.RepositoryException re) {
            throw new ObjectContentManagerException(re);
        }
        // The B object is not important for the unit test.
        // The unit test checks only the log generated by this converter
        return new B();
    }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

        try {
            log.add("remove from path " + parentNode.getPath());
        }
        catch(javax.jcr.RepositoryException re) {
            throw new ObjectContentManagerException(re);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.