net.refractions.udig.catalog
Interface ServiceMover


public interface ServiceMover

Interface for physical moving of local services on disk.

For this to work correctly the following steps MUST be taken:

  1. Move the file(s) required by the service
  2. Update the parameters in the service so that they indicate the new location
  3. Create a new instance of the service so the underlying object is aware of the change and discards any cached information
  4. Replace the old version in the local catalog by calling ICatalog.replace(java.net.URL, IService)

Author:
Andrea Antonello - http://www.hydrologis.com

Method Summary
 java.lang.String move(java.io.File destination)
          Move the service from its actual path to the given destination
 

Method Detail

move

java.lang.String move(java.io.File destination)
Move the service from its actual path to the given destination

Parameters:
destination - the destination file, can be a folder as well as a file
Returns:
null if the move action worked correctly or the error message