Package org.technologybrewery.baton
Interface Migration
-
- All Known Implementing Classes:
AbstractMigration
public interface MigrationInterface to authoring a migration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MigrationSummaryexecute(org.apache.maven.shared.model.fileset.FileSet[] filesets)Executes the migration.StringgetBackupCustomLocation()StringgetDescription()Set<String>getFileNamePatterns()org.apache.maven.project.MavenProjectgetMavenProject()StringgetName()intgetNumberOfBacksUpsToKeep()booleanisActive()voidsetActive(boolean active)voidsetBackupCustomLocation(String customBackupLocation)voidsetBackupMigratedOriginalFiles(boolean active)voidsetDescription(String description)voidsetFileNamePatterns(Set<String> fileNamePatterns)voidsetMavenProject(org.apache.maven.project.MavenProject project)voidsetName(String name)voidsetNumberOfBacksUpsToKeep(int numberOfBacksUpsToKeep)booleanshouldBackupMigratedOriginalFiles()
-
-
-
Method Detail
-
execute
MigrationSummary execute(org.apache.maven.shared.model.fileset.FileSet[] filesets)
Executes the migration.- Parameters:
filesets- the files on which to perform the migration- Returns:
- a summary of the migrations performed
-
getName
String getName()
-
setName
void setName(String name)
-
getDescription
String getDescription()
-
setDescription
void setDescription(String description)
-
isActive
boolean isActive()
-
setActive
void setActive(boolean active)
-
shouldBackupMigratedOriginalFiles
boolean shouldBackupMigratedOriginalFiles()
-
setBackupMigratedOriginalFiles
void setBackupMigratedOriginalFiles(boolean active)
-
getBackupCustomLocation
String getBackupCustomLocation()
-
setBackupCustomLocation
void setBackupCustomLocation(String customBackupLocation)
-
getNumberOfBacksUpsToKeep
int getNumberOfBacksUpsToKeep()
-
setNumberOfBacksUpsToKeep
void setNumberOfBacksUpsToKeep(int numberOfBacksUpsToKeep)
-
setMavenProject
void setMavenProject(org.apache.maven.project.MavenProject project)
-
getMavenProject
org.apache.maven.project.MavenProject getMavenProject()
-
-