01: package org.drools.repository.events;
02:
03: public class AssetUpdate extends AssetChange {
04:
05: private String oldContent;
06: private String newContent;
07: private String fileName;
08: private String format;
09: private String path;
10:
11: public String getOldContent() {
12: return oldContent;
13: }
14:
15: public String getFileName() {
16: return fileName;
17: }
18:
19: public String getNewContent() {
20: return newContent;
21: }
22:
23: /** This is in effect the "file extension" as well as the format type. */
24: public String getFormat() {
25: return format;
26: }
27:
28: /**
29: * The path is the directory path to the resource in "file" terms (not JCR terms).
30: * Forward slash delimited.
31: */
32: public String getPath() {
33: return path;
34: }
35:
36: public AssetUpdate(String oldContent, String newContent,
37: String fileName, String format, String path) {
38:
39: this.oldContent = oldContent;
40: this.newContent = newContent;
41: this.fileName = fileName;
42: this.format = format;
43: this.path = path;
44: }
45:
46: }
|