uk.ac.ed.inf.ogsaconfig.garm.collections.policies
Interface Policy

All Known Implementing Classes:
FreshenPolicy, PreservePolicy, ReplacePolicy

public interface Policy

A policy specifies the conditions under which one file should be allowed to overwrite another


Method Summary
 boolean replace(VFile currentFile, VFile newFile)
           
 

Method Detail

replace

public boolean replace(VFile currentFile,
                       VFile newFile)
Parameters:
currentFile - is the file currently in place
newFile - is the file that is a candidate to replace it
Returns:
true if the replacement should occur, false otherwise