1 | |
package liquibase.dbdoc; |
2 | |
|
3 | |
import liquibase.change.Change; |
4 | |
import liquibase.database.Database; |
5 | |
import liquibase.exception.DatabaseException; |
6 | |
import liquibase.exception.DatabaseHistoryException; |
7 | |
|
8 | |
import java.io.File; |
9 | |
import java.io.FileWriter; |
10 | |
import java.io.IOException; |
11 | |
import java.util.List; |
12 | |
|
13 | |
public class RecentChangesWriter extends HTMLWriter { |
14 | |
|
15 | |
public RecentChangesWriter(File rootOutputDir, Database database) { |
16 | 0 | super(new File(rootOutputDir, "recent"), database); |
17 | 0 | } |
18 | |
|
19 | |
@Override |
20 | |
protected String createTitle(Object object) { |
21 | 0 | return "Recent Changes"; |
22 | |
} |
23 | |
|
24 | |
@Override |
25 | |
protected void writeBody(FileWriter fileWriter, Object object, List<Change> ranChanges, List<Change> changesToRun) |
26 | |
throws IOException, DatabaseHistoryException, DatabaseException { |
27 | 0 | writeCustomHTML(fileWriter, object, ranChanges, database); |
28 | 0 | writeChanges("Most Recent Changes", fileWriter, ranChanges); |
29 | 0 | } |
30 | |
|
31 | |
@Override |
32 | |
protected void writeCustomHTML(FileWriter fileWriter, Object object, List<Change> changes, Database database) |
33 | |
throws IOException { |
34 | 0 | } |
35 | |
} |