1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   */
33  public class WikiPageDisplayImpl implements WikiPageDisplay {
34  
35      public WikiPageDisplayImpl(
36          long userId, long nodeId, String title, double version, String content,
37          String formattedContent, String format, boolean head,
38          String[] attachments) {
39  
40          _userId = userId;
41          _nodeId = nodeId;
42          _title = title;
43          _version = version;
44          _content = content;
45          _formattedContent = formattedContent;
46          _format = format;
47          _head = head;
48          _attachments = attachments;
49      }
50  
51      public long getUserId() {
52          return _userId;
53      }
54  
55      public void setUserId(long userId) {
56          _userId = userId;
57      }
58  
59      public long getNodeId() {
60          return _nodeId;
61      }
62  
63      public void setNodeId(long nodeId) {
64          _nodeId = nodeId;
65      }
66  
67      public String getTitle() {
68          return _title;
69      }
70  
71      public void setTitle(String title) {
72          _title = title;
73      }
74  
75      public double getVersion() {
76          return _version;
77      }
78  
79      public void setVersion(double version) {
80          _version = version;
81      }
82  
83      public String getContent() {
84          return _content;
85      }
86  
87      public void setContent(String content) {
88          _content = content;
89      }
90  
91      public String getFormattedContent() {
92          return _formattedContent;
93      }
94  
95      public void setFormattedContent(String formattedContent) {
96          _formattedContent = formattedContent;
97      }
98  
99      public String getFormat() {
100         return _format;
101     }
102 
103     public void setFormat(String format) {
104         _format = format;
105     }
106 
107     public boolean getHead() {
108         return _head;
109     }
110 
111     public boolean isHead() {
112         return _head;
113     }
114 
115     public void setHead(boolean head) {
116         _head = head;
117     }
118 
119     public String[] getAttachments() {
120         return _attachments;
121     }
122 
123     public void setAttachments(String[] attachments) {
124         _attachments = attachments;
125     }
126 
127     private long _userId;
128     private long _nodeId;
129     private String _title;
130     private double _version;
131     private String _content;
132     private String _formattedContent;
133     private String _format;
134     private boolean _head;
135     private String[] _attachments;
136 
137 }