1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.wiki.engines;
16  
17  import com.liferay.portlet.wiki.model.WikiPage;
18  
19  import java.util.Collections;
20  import java.util.Map;
21  
22  import javax.portlet.PortletURL;
23  
24  /**
25   * <a href="HtmlEngine.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Jorge Ferrer
28   */
29  public class HtmlEngine implements WikiEngine {
30  
31      public String convert(
32          WikiPage page, PortletURL viewPageURL, PortletURL editPageURL,
33          String attachmentURLPrefix) {
34  
35          return page.getContent();
36      }
37  
38      public Map<String, Boolean> getOutgoingLinks(WikiPage page) {
39          return Collections.EMPTY_MAP;
40      }
41  
42      public void setInterWikiConfiguration(String interWikiConfiguration) {
43      }
44  
45      public void setMainConfiguration(String mainConfiguration) {
46      }
47  
48      public boolean validate(long nodeId, String newContent) {
49          return true;
50      }
51  
52  }