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.jspwiki.filters;
16  
17  import com.ecyrd.jspwiki.WikiContext;
18  import com.ecyrd.jspwiki.WikiEngine;
19  import com.ecyrd.jspwiki.filters.FilterException;
20  
21  import com.liferay.portal.kernel.log.Log;
22  import com.liferay.portal.kernel.log.LogFactoryUtil;
23  
24  import java.util.Properties;
25  
26  /**
27   * <a href="CreoleFilter.java.html"><b><i>View Source</i></b></a>
28   *
29   * @author Brian Wing Shun Chan
30   * @author Samuel Liu
31   */
32  public class CreoleFilter extends org.wikiwizard.jspwiki.filters.CreoleFilter {
33  
34      public void destroy(WikiEngine wikiEngine) {
35          super.destroy(wikiEngine);
36      }
37  
38      public void initialize(WikiEngine wikiEngine, Properties properties) {
39          if (_log.isDebugEnabled()) {
40              _log.debug("Initializing");
41          }
42      }
43  
44      public void postSave(WikiContext wikiContext, String content)
45          throws FilterException {
46  
47          super.postSave(wikiContext, content);
48      }
49  
50      public String postTranslate(WikiContext wikiContext, String htmlContent)
51          throws FilterException {
52  
53          return super.postTranslate(wikiContext, htmlContent);
54      }
55  
56      public String preSave(WikiContext wikiContext, String content)
57          throws FilterException {
58  
59          return super.preSave(wikiContext, content);
60      }
61  
62      public String preTranslate(WikiContext wikiContext, String content)
63          throws FilterException {
64  
65          return super.preTranslate(wikiContext, content);
66      }
67  
68      private static Log _log = LogFactoryUtil.getLog(CreoleFilter.class);
69  
70  }