1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.wiki.model.impl;
21  
22  import com.liferay.portlet.wiki.model.WikiPageDisplay;
23  
24  /**
25   * <a href="WikiPageDisplayImpl.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Jorge Ferrer
28   *
29   */
30  public class WikiPageDisplayImpl implements WikiPageDisplay {
31  
32      public WikiPageDisplayImpl(
33          long userId, long nodeId, String title, double version, String content,
34          String formattedContent, String format, boolean head,
35          String[] attachments) {
36  
37          _userId = userId;
38          _nodeId = nodeId;
39          _title = title;
40          _version = version;
41          _content = content;
42          _formattedContent = formattedContent;
43          _format = format;
44          _head = head;
45          _attachments = attachments;
46      }
47  
48      public long getUserId() {
49          return _userId;
50      }
51  
52      public void setUserId(long userId) {
53          _userId = userId;
54      }
55  
56      public long getNodeId() {
57          return _nodeId;
58      }
59  
60      public void setNodeId(long nodeId) {
61          _nodeId = nodeId;
62      }
63  
64      public String getTitle() {
65          return _title;
66      }
67  
68      public void setTitle(String title) {
69          _title = title;
70      }
71  
72      public double getVersion() {
73          return _version;
74      }
75  
76      public void setVersion(double version) {
77          _version = version;
78      }
79  
80      public String getContent() {
81          return _content;
82      }
83  
84      public void setContent(String content) {
85          _content = content;
86      }
87  
88      public String getFormattedContent() {
89          return _formattedContent;
90      }
91  
92      public void setFormattedContent(String formattedContent) {
93          _formattedContent = formattedContent;
94      }
95  
96      public String getFormat() {
97          return _format;
98      }
99  
100     public void setFormat(String format) {
101         _format = format;
102     }
103 
104     public boolean getHead() {
105         return _head;
106     }
107 
108     public boolean isHead() {
109         return _head;
110     }
111 
112     public void setHead(boolean head) {
113         _head = head;
114     }
115 
116     public String[] getAttachments() {
117         return _attachments;
118     }
119 
120     public void setAttachments(String[] attachments) {
121         _attachments = attachments;
122     }
123 
124     private long _userId;
125     private long _nodeId;
126     private String _title;
127     private double _version;
128     private String _content;
129     private String _formattedContent;
130     private String _format;
131     private boolean _head;
132     private String[] _attachments;
133 
134 }