001
014
015 package com.liferay.portlet.wiki.model.impl;
016
017 import com.liferay.portlet.wiki.model.WikiPageDisplay;
018
019
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 @Override
041 public String[] getAttachments() {
042 return _attachments;
043 }
044
045 @Override
046 public String getContent() {
047 return _content;
048 }
049
050 @Override
051 public String getFormat() {
052 return _format;
053 }
054
055 @Override
056 public String getFormattedContent() {
057 return _formattedContent;
058 }
059
060 @Override
061 public boolean getHead() {
062 return _head;
063 }
064
065 @Override
066 public long getNodeId() {
067 return _nodeId;
068 }
069
070 @Override
071 public String getTitle() {
072 return _title;
073 }
074
075 @Override
076 public long getUserId() {
077 return _userId;
078 }
079
080 @Override
081 public double getVersion() {
082 return _version;
083 }
084
085 @Override
086 public boolean isHead() {
087 return _head;
088 }
089
090 @Override
091 public void setAttachments(String[] attachments) {
092 _attachments = attachments;
093 }
094
095 @Override
096 public void setContent(String content) {
097 _content = content;
098 }
099
100 @Override
101 public void setFormat(String format) {
102 _format = format;
103 }
104
105 @Override
106 public void setFormattedContent(String formattedContent) {
107 _formattedContent = formattedContent;
108 }
109
110 @Override
111 public void setHead(boolean head) {
112 _head = head;
113 }
114
115 @Override
116 public void setNodeId(long nodeId) {
117 _nodeId = nodeId;
118 }
119
120 @Override
121 public void setTitle(String title) {
122 _title = title;
123 }
124
125 @Override
126 public void setUserId(long userId) {
127 _userId = userId;
128 }
129
130 @Override
131 public void setVersion(double version) {
132 _version = version;
133 }
134
135 private String[] _attachments;
136 private String _content;
137 private String _format;
138 private String _formattedContent;
139 private boolean _head;
140 private long _nodeId;
141 private String _title;
142 private long _userId;
143 private double _version;
144
145 }