Package hudson.plugins.jobConfigHistory
Class DeletedFileFilter
- java.lang.Object
-
- hudson.plugins.jobConfigHistory.DeletedFileFilter
-
- All Implemented Interfaces:
FileFilter
public class DeletedFileFilter extends Object implements FileFilter
A filter to return only those directories of a file listing that represent deleted jobs history directories, the names of which containDELETED_MARKER
.- Author:
- Mirko Friedenhagen
-
-
Field Summary
Fields Modifier and Type Field Description static String
DELETED_MARKER
name of history xml file.static DeletedFileFilter
INSTANCE
Only one instance needed.
-
Constructor Summary
Constructors Constructor Description DeletedFileFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(File file)
static boolean
accepts(File file)
Is this item deleted?static boolean
accepts(String fileName)
Is this item deleted?
-
-
-
Field Detail
-
DELETED_MARKER
public static final String DELETED_MARKER
name of history xml file.- See Also:
- Constant Field Values
-
INSTANCE
public static final DeletedFileFilter INSTANCE
Only one instance needed.
-
-
Method Detail
-
accepts
public static boolean accepts(File file)
Is this item deleted?- Parameters:
file
- to inspect- Returns:
- true when file has the special deleted mark.
-
accepts
public static boolean accepts(String fileName)
Is this item deleted?- Parameters:
fileName
- to inspect- Returns:
- true when fileName has the special deleted mark.
-
accept
public boolean accept(File file)
- Specified by:
accept
in interfaceFileFilter
-
-