001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.wiki.engines.jspwiki.filters;
016    
017    import com.ecyrd.jspwiki.WikiContext;
018    import com.ecyrd.jspwiki.WikiEngine;
019    import com.ecyrd.jspwiki.filters.FilterException;
020    
021    import com.liferay.portal.kernel.log.Log;
022    import com.liferay.portal.kernel.log.LogFactoryUtil;
023    
024    import java.util.Properties;
025    
026    /**
027     * @author Brian Wing Shun Chan
028     * @author Samuel Liu
029     */
030    public class CreoleFilter extends org.wikiwizard.jspwiki.filters.CreoleFilter {
031    
032            public void destroy(WikiEngine wikiEngine) {
033                    super.destroy(wikiEngine);
034            }
035    
036            public void initialize(WikiEngine wikiEngine, Properties properties) {
037                    if (_log.isDebugEnabled()) {
038                            _log.debug("Initializing");
039                    }
040            }
041    
042            public void postSave(WikiContext wikiContext, String content)
043                    throws FilterException {
044    
045                    super.postSave(wikiContext, content);
046            }
047    
048            public String postTranslate(WikiContext wikiContext, String htmlContent)
049                    throws FilterException {
050    
051                    return super.postTranslate(wikiContext, htmlContent);
052            }
053    
054            public String preSave(WikiContext wikiContext, String content)
055                    throws FilterException {
056    
057                    return super.preSave(wikiContext, content);
058            }
059    
060            public String preTranslate(WikiContext wikiContext, String content)
061                    throws FilterException {
062    
063                    return super.preTranslate(wikiContext, content);
064            }
065    
066            private static Log _log = LogFactoryUtil.getLog(CreoleFilter.class);
067    
068    }