net.anotheria.anosite.gen.shared.filter.CMSFilter Maven / Gradle / Ivy
/**
********************************************************************************
*** CMSFilter.java ***
*** generated by AnoSiteGenerator (ASG), Version: 3.2.2 ***
*** Copyright (C) 2005 - 2023 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.shared.filter;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import jakarta.servlet.FilterConfig;
import jakarta.servlet.ServletException;
import net.anotheria.maf.MAFFilter;
import net.anotheria.maf.action.ActionMappingsConfigurator;
import net.anotheria.anosite.cms.user.CMSUserManager;
public class CMSFilter extends MAFFilter{
// Generated by: class net.anotheria.asg.generator.view.CMSFilterGenerator.generateCMSFilter()
/**
* Logger initialization.
*/
private static final Logger log = LoggerFactory.getLogger(CMSFilter.class);;
@Override
public void init(FilterConfig config) throws ServletException {
log.info("---- Initing CMS... ------");
super.init(config);
log.info("---- Initing CMS user manager... ------");
CMSUserManager.init();
} //init
@Override
protected List getConfigurators() {
return Arrays.asList(new ActionMappingsConfigurator[] { new CMSMappingsConfigurator()});
} //getConfigurators
}