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