Package org.apache.jackrabbit.ocm.exception

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


            for (int i = 0; i < values.length; i++) {

              if (objects instanceof ManageableCollection)
                    ((ManageableCollection)objects).addObject(values[i].getString());
              else
                throw new ObjectContentManagerException(
                    "Unsupported data type in ReferenceCollectionConverter : " + objects.getClass().getName());
            }

            return objects;
        }
        catch(ValueFormatException vfe) {
          throw new ObjectContentManagerException("Cannot get the collection field : "
                  + collectionDescriptor.getFieldName()
                  + "for class " + collectionDescriptor.getClassDescriptor().getClassName(),
                  vfe);
        }
    }
View Full Code Here


            }

            parentNode.setProperty(jcrName, values);
        }
        catch(ValueFormatException vfe) {
            throw new ObjectContentManagerException("Cannot insert collection field : "
                    + collectionDescriptor.getFieldName()
                    + " of class "
                    + collectionDescriptor.getClassDescriptor().getClassName(), vfe);
        }
  }
View Full Code Here

            throws ObjectContentManagerException, RepositoryException, JcrMappingException {
        try {
            log.add("insert at path " + parentNode.getPath());

        } catch (javax.jcr.RepositoryException re) {
            throw new ObjectContentManagerException(re);
        }
    }
View Full Code Here

  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

    public Object getObject(Session session, Node parentNode, BeanDescriptor beanDescriptor, ClassDescriptor beanClassDescriptor, Class beanClass, Object parent)
            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

            throws ObjectContentManagerException, RepositoryException, JcrMappingException {

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

      }
     
      String uuid = (String) ReflectionUtils.getNestedProperty(object, fieldDescriptor.getFieldName());
      parentNode.setProperty(beanDescriptor.getJcrName(), uuid, PropertyType.REFERENCE);
    } catch (Exception e) {
      throw new ObjectContentManagerException("Impossible to insert the bean attribute into the repository", e);
    }
  }
View Full Code Here

            }

            parentNode.setProperty(jcrName, values);
        }
        catch(ValueFormatException vfe) {
            throw new ObjectContentManagerException("Cannot insert collection field : "
                    + collectionDescriptor.getFieldName()
                    + " of class "
                    + collectionDescriptor.getClassDescriptor().getClassName(), vfe);
        }
    }
View Full Code Here

            }

            return objects;
        }
        catch(ValueFormatException vfe) {
          throw new ObjectContentManagerException("Cannot get the collection field : "
                  + collectionDescriptor.getFieldName()
                  + "for class " + collectionDescriptor.getClassDescriptor().getClassName(),
                  vfe);
        }
    }
View Full Code Here

        try {
            if (session.nodeExists(path)) {
                Node node = session.getNode(path);
                if (!node.getDefinition().allowsSameNameSiblings()) {
                    throw new ObjectContentManagerException("Path already exists and it is not supporting the same name sibling : " + path);
                }
            }
        } catch (RepositoryException e) {
            throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to insert the object at " + path, e);
        }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.ocm.exception.ObjectContentManagerException

Copyright © 2018 www.massapicom. 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.