1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.exoplatform.wiki.service;
18
19 import java.io.Serializable;
20 import java.util.ArrayList;
21
22 import org.xwiki.rendering.syntax.Syntax;
23
24 public class WikiContext extends WikiPageParams implements Cloneable, Serializable {
25
26 private static final long serialVersionUID = 1L;
27
28 public static final String WIKICONTEXT = "wikicontext";
29
30 public static final String ACTION = "action";
31
32 public static final String ADDPAGE = "AddPage";
33
34 public static final String PAGETITLE = "pageTitle";
35
36 public static final String WIKITYPE = "wikiType";
37
38 public static final String WIKI = "wiki";
39
40 public ArrayList<WikiPageParams> includePageCtx = new ArrayList<WikiPageParams>();
41
42 private String pageTitle;
43
44 private String portalURL;
45
46 private String portletURI;
47
48 private String treeRestURI;
49
50 private String redirectURI;
51
52 private String syntax = Syntax.XWIKI_2_0.toIdString();
53
54 private String restURI;
55
56 private String baseUrl;
57
58 public String getPageTitle() {
59 return pageTitle;
60 }
61
62 public void setPageTitle(String pageTitle) {
63 this.pageTitle = pageTitle;
64 }
65
66 public String getPortalURL() {
67 return portalURL;
68 }
69
70 public void setPortalURL(String portalURL) {
71 this.portalURL = portalURL;
72 }
73
74 public String getPortletURI() {
75 return portletURI;
76 }
77
78 public void setPortletURI(String portletURI) {
79 this.portletURI = portletURI;
80 }
81
82 public String getTreeRestURI() {
83 return treeRestURI;
84 }
85
86 public void setTreeRestURI(String restURI) {
87 this.treeRestURI = restURI;
88 }
89
90 public String getRedirectURI() {
91 return redirectURI;
92 }
93
94 public void setRedirectURI(String redirectURI) {
95 this.redirectURI = redirectURI;
96 }
97
98
99
100
101 public String getRestURI() {
102 return restURI;
103 }
104
105
106
107
108 public void setRestURI(String restURI) {
109 this.restURI = restURI;
110 }
111
112 public String getSyntax() {
113 return syntax;
114 }
115
116 public void setSyntax(String syntax) {
117 this.syntax = syntax;
118 }
119
120 public String getBaseUrl() {
121 return baseUrl;
122 }
123
124 public void setBaseUrl(String baseUrl) {
125 this.baseUrl = baseUrl;
126 }
127
128 @Override
129 public WikiContext clone() {
130 WikiContext obj = new WikiContext();
131 obj.setAttachmentName(this.getAttachmentName());
132 obj.setOwner(this.getOwner());
133 obj.setPageName(this.getPageName());
134 obj.setPageTitle(this.getPageTitle());
135 obj.setParameters(this.getParameters());
136 obj.setPortalURL(this.getPortalURL());
137 obj.setPortletURI(this.getPortletURI());
138 obj.setRedirectURI(this.getRedirectURI());
139 obj.setRestURI(this.getRestURI());
140 obj.setTreeRestURI(this.getTreeRestURI());
141 obj.setType(this.getType());
142 obj.setSyntax(this.getSyntax());
143 obj.includePageCtx = (ArrayList<WikiPageParams>) this.includePageCtx.clone();
144 return obj;
145 }
146
147 }