/* (non-Javadoc) * @see org.alfresco.web.scripts.TemplateProcessor#reset() */ public void reset() { this.init(); if (templateConfig != null) { templateConfig.clearTemplateCache(); } }
public static void init() { cfg.setTemplateExceptionHandler(TemplateExceptionHandler.IGNORE_HANDLER); cfg.setCacheStorage(new freemarker.cache.MruCacheStorage(20, 250)); cfg.setNumberFormat("#"); cfg.setEncoding(Locale.getDefault(), "UTF-8"); cfg.setObjectWrapper(new DefaultObjectWrapper()); cfg.clearTemplateCache(); }
@Override public void delTemplateBatch(List<Integer> idList) { templateService.delTemplateBatch(idList); cfg.clearTemplateCache(); }
@Override public Integer updTemplate(Template vo) { Integer id = templateService.updTemplate(vo); cfg.clearTemplateCache(); return id; }