1 |
| package photospace.vfs.event; |
2 |
| |
3 |
| import java.io.*; |
4 |
| import java.util.*; |
5 |
| |
6 |
| public class FileEvent |
7 |
| implements java.io.Serializable |
8 |
| { |
9 |
| public static String UPDATED = "UPDATED"; |
10 |
| public static String DELETED = "DELETED"; |
11 |
| public static String CREATED = "CREATED"; |
12 |
| |
13 |
| private String type; |
14 |
| private File source; |
15 |
| |
16 |
7
| public FileEvent(String type, File source)
|
17 |
| { |
18 |
7
| this.type = type;
|
19 |
7
| this.source = source;
|
20 |
| } |
21 |
| |
22 |
7
| public String getType()
|
23 |
| { |
24 |
7
| return type;
|
25 |
| } |
26 |
| |
27 |
14
| public File getSource()
|
28 |
| { |
29 |
14
| return source;
|
30 |
| } |
31 |
| |
32 |
0
| public String toString()
|
33 |
| { |
34 |
0
| return "FileEvent[" + type + "," + source + "," + new Date(source.lastModified());
|
35 |
| } |
36 |
| } |