ruper2/src/java/core/org/krysalis/ruper2/protocols ProtocolOperationsManager.java,1.5,1.6 IProtocolOperationsProvider.java,1.2,1.3

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols
In directory sc8-pr-cvs1:/tmp/cvs-serv19918/src/java/core/org/krysalis/ruper2/protocols

Modified Files:
	ProtocolOperationsManager.java 
	IProtocolOperationsProvider.java 
Log Message:
Completed 'clean' by adding delete to protocol providers

Index: ProtocolOperationsManager.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/ProtocolOperationsManager.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ProtocolOperationsManager.java	9 Oct 2003 16:02:21 -0000	1.5
--- ProtocolOperationsManager.java	13 Oct 2003 03:46:12 -0000	1.6
***************
*** 21,25 ****
  import org.krysalis.ruper2.util.RuperConstants;
  import org.krysalis.ruper2.util.chainprocess.HandlerManager;
! import org.krysalis.ruper2.util.net.*;
  import org.krysalis.ruper2.util.select.ISelector;
  import org.krysalis.ruper2.util.select.SelectorHandlerChain;
--- 21,25 ----
  import org.krysalis.ruper2.util.RuperConstants;
  import org.krysalis.ruper2.util.chainprocess.HandlerManager;
! import org.krysalis.ruper2.util.net.VirtualResourceLocator;
  import org.krysalis.ruper2.util.select.ISelector;
  import org.krysalis.ruper2.util.select.SelectorHandlerChain;
***************
*** 166,169 ****
--- 166,186 ----
  
  		determineProviderFor(from, to).copy(from, to, selector);
+ 	}
+ 
+ 	/**
+ 	 * Copy the contents at address to another
+ 	 * 
+ 	 * @param from
+ 	 * @param to
+ 	 * @throws Exception
+ 	 */
+ 	public void performDelete(
+ 		VirtualResourceLocator locator,
+ 		ISelector selector)
+ 		throws Exception {
+ 
+ 		Logger.getLog().info("Perform Delete " + locator);
+ 
+ 		determineProviderFor(locator).delete(locator,selector);
  	}
  

Index: IProtocolOperationsProvider.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/IProtocolOperationsProvider.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** IProtocolOperationsProvider.java	9 Oct 2003 16:02:21 -0000	1.2
--- IProtocolOperationsProvider.java	13 Oct 2003 03:46:12 -0000	1.3
***************
*** 29,33 ****
  	void copy(VirtualResourceLocator from, VirtualResourceLocator to) throws Exception;
  	void copy(VirtualResourceLocator from, VirtualResourceLocator to, ISelector selector) throws Exception;
! 	
! 	// :TODO: delete/create
  }
--- 29,32 ----
  	void copy(VirtualResourceLocator from, VirtualResourceLocator to) throws Exception;
  	void copy(VirtualResourceLocator from, VirtualResourceLocator to, ISelector selector) throws Exception;
! 	void delete(VirtualResourceLocator locator, ISelector selector) throws Exception;
  }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.