public void orderBefore(String srcName, String destName) throws UnsupportedRepositoryOperationException,
      ConstraintViolationException, ItemNotFoundException, RepositoryException
   {
      checkValid();

      if (!getPrimaryNodeType().hasOrderableChildNodes())
      {
         throw new UnsupportedRepositoryOperationException("Node does not support child ordering "
            + getPrimaryNodeType().getName());
      }

      JCRPath sourcePath = locationFactory.createJCRPath(getLocation(), srcName);
      JCRPath destinationPath = destName != null ? locationFactory.createJCRPath(getLocation(), destName) : null;
      QPath srcPath = sourcePath.getInternalPath();
      QPath destPath = destinationPath != null ? destinationPath.getInternalPath() : null;

      doOrderBefore(srcPath, destPath);
   }
public void orderBefore ( String srcName , String destName ) throws UnsupportedRepositoryOperationException , ConstraintViolationException , ItemNotFoundException , RepositoryException { checkValid ( ) ; if ( ! getPrimaryNodeType ( ) . hasOrderableChildNodes ( ) ) { throw new UnsupportedRepositoryOperationException ( "Node does not support child ordering " + getPrimaryNodeType ( ) . getName ( ) ) ; } JCRPath sourcePath = locationFactory . createJCRPath ( getLocation ( ) , srcName ) ; JCRPath destinationPath = destName != null ? locationFactory . createJCRPath ( getLocation ( ) , destName ) : null ; QPath srcPath = sourcePath . getInternalPath ( ) ; QPath destPath = destinationPath != null ? destinationPath . getInternalPath ( ) : null ; doOrderBefore ( srcPath , destPath ) ; }
{@inheritDoc}