source: other-projects/FileTransfer-WebSocketPair/testGXTWithGreenstone/src/com/gs3/testGXT/shared/SharedFileJobNode.java@ 33053

Last change on this file since 33053 was 33053, checked in by ak19, 5 years ago

I still had some stuff of Nathan Kelly's (FileTransfer-WebSocketPair) sitting on my USB. Had already commited the Themes folder at the time, 2 years back. Not sure if he wanted this additional folder commited. But I didn't want to delete it and decided it will be better off on SVN. When we use his project, if we find we didn't need this test folder, we can remove it from svn then.

File size: 1.0 KB
Line 
1package com.gs3.testGXT.shared;
2
3import java.io.Serializable;
4
5import com.google.gwt.user.client.rpc.IsSerializable;
6
7public class SharedFileJobNode implements IsSerializable, Serializable{
8
9 /**
10 *
11 */
12 private static final long serialVersionUID = 5402323094351171297L;
13
14 public static final int ACTION_COPY = 0;
15 public static final int ACTION_COPY_REPLACE = 1;
16 public static final int ACTION_MOVE = 2;
17 public static final int ACTION_MOVE_REPLACE = 3;
18 public static final int DELETE_FILE = 4;
19
20 int action;
21 String fileName;
22 String destination;
23 String source;
24
25 //required constructor for RPC to work
26 protected SharedFileJobNode() { }
27
28 public SharedFileJobNode(int action, String name, String destination, String source) {
29 this.action = action;
30 this.fileName = name;
31 this.destination = destination;
32 this.source = source;
33 }
34
35 public int getAction() {
36 return action;
37 }
38
39 public String getSource() {
40 return source;
41 }
42
43 public String getDestination() {
44 return destination;
45 }
46
47 public String getName() {
48 return fileName;
49 }
50}
Note: See TracBrowser for help on using the repository browser.