1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.exoplatform.services.cms.scripts;
18
19 import java.util.ArrayList;
20 import java.util.List;
21
22 import javax.jcr.Node;
23
24 import org.exoplatform.services.wcm.core.NodeLocation;
25
26 public class DataTransfer {
27
28 private String repository_ ;
29 private String workspace_ ;
30 private String path_ ;
31 private NodeLocation node_ ;
32
33 private List<NodeLocation> contentList_ = new ArrayList<NodeLocation> () ;
34
35 public DataTransfer() {}
36
37 public String getRepository() { return this.repository_ ; }
38 public void setRepository(String name) { this.repository_ = name ; }
39
40 public void setWorkspace( String ws ) { workspace_ = ws ; }
41 public String getWorkspace() { return workspace_ ; }
42
43 public void setPath( String path ) { path_ = path ; }
44 public String getPath() { return path_ ; }
45
46 public Node getNode() {
47 return NodeLocation.getNodeByLocation(node_);
48 }
49 public void setNode( Node node ) {
50 node_ = NodeLocation.getNodeLocationByNode(node);
51 }
52
53 public List<Node> getContentList() {
54 return NodeLocation.getNodeListByLocationList(contentList_);
55 }
56
57 public void setContentList( List<Node> content ) {
58 contentList_ = NodeLocation.getLocationsByNodeList(content);
59 }
60
61 }