ModuleImpl implements Module { public boolean isEnabled() { return enabled; } ModuleImpl(); void initialize(Environment environment); void setIdentifier(String identifier); String getIdentifier(); WebUrl getUrl(); WebUrl getUrl(Environment environment); void addModuleListener(ModuleListener listener); void removeModuleListener(ModuleListener listener); void setSite(Site site); void destroy(); void addAction(Action action); void removeAction(Action action); Action getAction(String id); Action[] getActions(); void addImageStyle(ImageStyle imagestyle); void removeImageStyle(ImageStyle imagestyle); ImageStyle[] getImageStyles(); ImageStyle getImageStyle(String id); void addRenderer(PageletRenderer renderer); void removeRenderer(PageletRenderer renderer); PageletRenderer getRenderer(String id); PageletRenderer[] getRenderers(); void addJob(Job job); void removeJob(Job job); Job getJob(String id); Job[] getJobs(); Site getSite(); void setName(String title); String getName(); void setEnabled(boolean enabled); boolean isEnabled(); void setSearchable(boolean searchable); boolean isSearchable(); SearchResultItem[] search(String query); void start(); void stop(); void setOption(String name, String value); void setOption(String name, String value, Environment environment); void removeOption(String name); String getOptionValue(String name); String getOptionValue(String name, String defaultValue); String[] getOptionValues(String name); boolean hasOption(String name); String[] getOptionNames(); Map<String, Map<Environment, List<String>>> getOptions(); static Module fromXml(Node config); @SuppressWarnings("unchecked") static Module fromXml(Node config, XPath xpathProcessor); String toXml(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final String MODULE_XMLNS; }
@Test public void testIsEnabled() { assertEquals(enabled, module.isEnabled()); }