Class RequisitionFileUtils
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.RequisitionFileUtils
-
public abstract class RequisitionFileUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description RequisitionFileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static File
createSnapshot(ForeignSourceRepository repository, String foreignSource, Date date)
static void
deleteAllSnapshots(ForeignSourceRepository repository)
static void
deleteResourceIfSnapshot(Requisition requisition)
static void
deleteSnapshotsOlderThan(ForeignSourceRepository repository, String foreignSource, Date date)
static List<File>
findSnapshots(ForeignSourceRepository repository, String foreignSource)
static Requisition
getLatestPendingOrSnapshotRequisition(ForeignSourceRepository foreignSourceRepository, String foreignSource)
static File
getOutputFileForRequisition(String path, String foreignSource)
static File
getOutputFileForRequisition(String path, Requisition requisition)
static boolean
isNewer(File snapshotFile, Date date)
return true if the snapshot file is newer than the supplied date
-
-
-
Method Detail
-
getOutputFileForRequisition
public static File getOutputFileForRequisition(String path, Requisition requisition)
-
getOutputFileForRequisition
public static File getOutputFileForRequisition(String path, String foreignSource)
-
createSnapshot
public static File createSnapshot(ForeignSourceRepository repository, String foreignSource, Date date)
-
findSnapshots
public static List<File> findSnapshots(ForeignSourceRepository repository, String foreignSource)
-
deleteResourceIfSnapshot
public static void deleteResourceIfSnapshot(Requisition requisition)
-
deleteSnapshotsOlderThan
public static void deleteSnapshotsOlderThan(ForeignSourceRepository repository, String foreignSource, Date date)
-
deleteAllSnapshots
public static void deleteAllSnapshots(ForeignSourceRepository repository)
-
getLatestPendingOrSnapshotRequisition
public static Requisition getLatestPendingOrSnapshotRequisition(ForeignSourceRepository foreignSourceRepository, String foreignSource)
-
-