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