001    /**
002     * Copyright (c) 2000-2011 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 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    }