[VIVO-1245] Cleanup of MenuManagementDataUtils

This commit is contained in:
Graham Triggs 2016-05-25 18:38:33 +01:00
parent fbeed01a94
commit 825c81002b

View file

@ -16,13 +16,23 @@ import org.apache.commons.logging.LogFactory;
public class MenuManagementDataUtils {
private static final Log log = LogFactory.getLog(MenuManagementDataUtils.class);
private static IMenuManagementDataUtils impl = null;
//Data that is to be returned to template that does not involve data getters
//e.g. what are the current class groups, etc.
public static void includeRequiredSystemData(ServletContext context, Map<String, Object> templateData) {
if (impl != null) {
impl.includeRequiredSystemData(context, templateData);
}
}
public static void setImplementation(IMenuManagementDataUtils impl) {
MenuManagementDataUtils.impl = impl;
}
public interface IMenuManagementDataUtils {
public void includeRequiredSystemData(ServletContext context, Map<String, Object> templateData);
}
}