Package org.jboss.virtual.spi

Examples of org.jboss.virtual.spi.VirtualFileHandler.removeChild()


            boolean done = Files.delete(f);
            if (done)
            {
               VirtualFileHandler parent = getParent();
               if (parent != null)
                  parent.removeChild(f.getName());

               return true;
            }
           
            try
View Full Code Here


      }
      else
      {
         VirtualFileHandler parent = getParent();
         if (parent != null)
            parent.removeChild(f.getName());

         return true;
      }
   }
View Full Code Here

    * @throws IOException if an error occurs
    */
   public boolean delete(int gracePeriod) throws IOException
   {
      VirtualFileHandler parent = getParent();
      return parent != null && parent.removeChild(getName());
   }

   public Certificate[] getCertificates()
   {
      return null;
View Full Code Here

   public boolean removeChild(String name) throws IOException
   {
      // LinkHandler delegation: if configuration has changed, delegate to properly configured LinkHandler
      VirtualFileHandler upToDateHandler = getParent().getChild(getName());
      if (upToDateHandler != this)
         return upToDateHandler.removeChild(name);
      else
         return linkTargets.remove(name) != null;
   }

   @Override
View Full Code Here

    * @throws IOException if an error occurs
    */
   public boolean delete(int gracePeriod) throws IOException
   {
      VirtualFileHandler parent = getParent();
      return parent != null && parent.removeChild(getName());
   }

   /**
    * Structured implementation of get child
    *
 
View Full Code Here

   public boolean removeChild(String name) throws IOException
   {
      // LinkHandler delegation: if configuration has changed, delegate to properly configured LinkHandler
      VirtualFileHandler upToDateHandler = getParent().getChild(getName());
      if (upToDateHandler != this)
         return upToDateHandler.removeChild(name);
      else
         return linkTargets.remove(name) != null;
   }

   @Override
View Full Code Here

    */
   public boolean delete(int gracePeriod) throws IOException
   {
      VirtualFileHandler parent = getParent();
      if (parent != null)
         return parent.removeChild(getName());

      return false;
   }

   /**
 
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.