001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki.model.impl;
016    
017    import com.liferay.portlet.wiki.model.WikiPageDisplay;
018    
019    /**
020     * @author Jorge Ferrer
021     */
022    public class WikiPageDisplayImpl implements WikiPageDisplay {
023    
024            public WikiPageDisplayImpl(
025                    long userId, long nodeId, String title, double version, String content,
026                    String formattedContent, String format, boolean head,
027                    String[] attachments) {
028    
029                    _userId = userId;
030                    _nodeId = nodeId;
031                    _title = title;
032                    _version = version;
033                    _content = content;
034                    _formattedContent = formattedContent;
035                    _format = format;
036                    _head = head;
037                    _attachments = attachments;
038            }
039    
040            public long getUserId() {
041                    return _userId;
042            }
043    
044            public void setUserId(long userId) {
045                    _userId = userId;
046            }
047    
048            public long getNodeId() {
049                    return _nodeId;
050            }
051    
052            public void setNodeId(long nodeId) {
053                    _nodeId = nodeId;
054            }
055    
056            public String getTitle() {
057                    return _title;
058            }
059    
060            public void setTitle(String title) {
061                    _title = title;
062            }
063    
064            public double getVersion() {
065                    return _version;
066            }
067    
068            public void setVersion(double version) {
069                    _version = version;
070            }
071    
072            public String getContent() {
073                    return _content;
074            }
075    
076            public void setContent(String content) {
077                    _content = content;
078            }
079    
080            public String getFormattedContent() {
081                    return _formattedContent;
082            }
083    
084            public void setFormattedContent(String formattedContent) {
085                    _formattedContent = formattedContent;
086            }
087    
088            public String getFormat() {
089                    return _format;
090            }
091    
092            public void setFormat(String format) {
093                    _format = format;
094            }
095    
096            public boolean getHead() {
097                    return _head;
098            }
099    
100            public boolean isHead() {
101                    return _head;
102            }
103    
104            public void setHead(boolean head) {
105                    _head = head;
106            }
107    
108            public String[] getAttachments() {
109                    return _attachments;
110            }
111    
112            public void setAttachments(String[] attachments) {
113                    _attachments = attachments;
114            }
115    
116            private long _userId;
117            private long _nodeId;
118            private String _title;
119            private double _version;
120            private String _content;
121            private String _formattedContent;
122            private String _format;
123            private boolean _head;
124            private String[] _attachments;
125    
126    }