1   /**
2    * Copyright (c) 2000-2008 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 parentTitle, String redirectTitle, 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          _parentTitle = parentTitle;
49          _redirectTitle = redirectTitle;
50          _attachments = attachments;
51      }
52  
53      public long getUserId() {
54          return _userId;
55      }
56  
57      public void setUserId(long userId) {
58          _userId = userId;
59      }
60  
61      public long getNodeId() {
62          return _nodeId;
63      }
64  
65      public void setNodeId(long nodeId) {
66          _nodeId = nodeId;
67      }
68  
69      public String getTitle() {
70          return _title;
71      }
72  
73      public void setTitle(String title) {
74          _title = title;
75      }
76  
77      public double getVersion() {
78          return _version;
79      }
80  
81      public void setVersion(double version) {
82          _version = version;
83      }
84  
85      public String getContent() {
86          return _content;
87      }
88  
89      public void setContent(String content) {
90          _content = content;
91      }
92  
93      public String getFormattedContent() {
94          return _formattedContent;
95      }
96  
97      public void setFormattedContent(String formattedContent) {
98          _formattedContent = formattedContent;
99      }
100 
101     public String getFormat() {
102         return _format;
103     }
104 
105     public void setFormat(String format) {
106         _format = format;
107     }
108 
109     public boolean getHead() {
110         return _head;
111     }
112 
113     public boolean isHead() {
114         return _head;
115     }
116 
117     public void setHead(boolean head) {
118         _head = head;
119     }
120 
121     public String getParentTitle() {
122         return _parentTitle;
123     }
124 
125     public void setParentTitle(String parentTitle) {
126         _parentTitle = parentTitle;
127     }
128 
129     public String getRedirectTitle() {
130         return _redirectTitle;
131     }
132 
133     public void setRedirectTitle(String redirectTitle) {
134         _redirectTitle = redirectTitle;
135     }
136 
137     public String[] getAttachments() {
138         return _attachments;
139     }
140 
141     public void setAttachments(String[] attachments) {
142         _attachments = attachments;
143     }
144 
145     private long _userId;
146     private long _nodeId;
147     private String _title;
148     private double _version;
149     private String _content;
150     private String _formattedContent;
151     private String _format;
152     private boolean _head;
153     private String _parentTitle;
154     private String _redirectTitle;
155     private String[] _attachments;
156 
157 }