001    /**
002     * Copyright (c) 2000-2012 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.portal.kernel.repository.model.FileEntry;
018    import com.liferay.portlet.wiki.model.WikiPageDisplay;
019    
020    import java.util.List;
021    
022    /**
023     * @author Jorge Ferrer
024     */
025    public class WikiPageDisplayImpl implements WikiPageDisplay {
026    
027            public WikiPageDisplayImpl(
028                    long userId, long nodeId, String title, double version, String content,
029                    String formattedContent, String format, boolean head,
030                    List<FileEntry> attachmentsFileEntries) {
031    
032                    _userId = userId;
033                    _nodeId = nodeId;
034                    _title = title;
035                    _version = version;
036                    _content = content;
037                    _formattedContent = formattedContent;
038                    _format = format;
039                    _head = head;
040                    _attachmentsFileEntries = attachmentsFileEntries;
041            }
042    
043            public List<FileEntry> getAttachmentsFileEntries() {
044                    return _attachmentsFileEntries;
045            }
046    
047            public String getContent() {
048                    return _content;
049            }
050    
051            public String getFormat() {
052                    return _format;
053            }
054    
055            public String getFormattedContent() {
056                    return _formattedContent;
057            }
058    
059            public boolean getHead() {
060                    return _head;
061            }
062    
063            public long getNodeId() {
064                    return _nodeId;
065            }
066    
067            public String getTitle() {
068                    return _title;
069            }
070    
071            public long getUserId() {
072                    return _userId;
073            }
074    
075            public double getVersion() {
076                    return _version;
077            }
078    
079            public boolean isHead() {
080                    return _head;
081            }
082    
083            public void setAttachmentsFileEntries(
084                    List<FileEntry> attachmentsFileEntries) {
085    
086                    _attachmentsFileEntries = attachmentsFileEntries;
087            }
088    
089            public void setContent(String content) {
090                    _content = content;
091            }
092    
093            public void setFormat(String format) {
094                    _format = format;
095            }
096    
097            public void setFormattedContent(String formattedContent) {
098                    _formattedContent = formattedContent;
099            }
100    
101            public void setHead(boolean head) {
102                    _head = head;
103            }
104    
105            public void setNodeId(long nodeId) {
106                    _nodeId = nodeId;
107            }
108    
109            public void setTitle(String title) {
110                    _title = title;
111            }
112    
113            public void setUserId(long userId) {
114                    _userId = userId;
115            }
116    
117            public void setVersion(double version) {
118                    _version = version;
119            }
120    
121            private List<FileEntry> _attachmentsFileEntries;
122            private String _content;
123            private String _format;
124            private String _formattedContent;
125            private boolean _head;
126            private long _nodeId;
127            private String _title;
128            private long _userId;
129            private double _version;
130    
131    }