001    /**
002     * Copyright (c) 2000-2013 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.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 com.ecyrd.jspwiki.filters.CreoleFilter {
031    
032            @Override
033            public void destroy(WikiEngine wikiEngine) {
034                    super.destroy(wikiEngine);
035            }
036    
037            @Override
038            public void initialize(WikiEngine wikiEngine, Properties properties) {
039                    if (_log.isDebugEnabled()) {
040                            _log.debug("Initializing");
041                    }
042            }
043    
044            @Override
045            public void postSave(WikiContext wikiContext, String content)
046                    throws FilterException {
047    
048                    super.postSave(wikiContext, content);
049            }
050    
051            @Override
052            public String postTranslate(WikiContext wikiContext, String htmlContent)
053                    throws FilterException {
054    
055                    return super.postTranslate(wikiContext, htmlContent);
056            }
057    
058            @Override
059            public String preSave(WikiContext wikiContext, String content)
060                    throws FilterException {
061    
062                    return super.preSave(wikiContext, content);
063            }
064    
065            @Override
066            public String preTranslate(WikiContext wikiContext, String content)
067                    throws FilterException {
068    
069                    return super.preTranslate(wikiContext, content);
070            }
071    
072            private static Log _log = LogFactoryUtil.getLog(CreoleFilter.class);
073    
074    }