Search in sources :

Example 1 with Adempiere

use of org.compiere.Adempiere in project metasfresh-webui-api by metasfresh.

the class WebRestApiApplication method adempiere.

@Bean(Adempiere.BEAN_NAME)
public Adempiere adempiere(final WebRestApiContextProvider webuiContextProvider) {
    Env.setContextProvider(webuiContextProvider);
    InterfaceWrapperHelper.registerHelper(new DocumentInterfaceWrapperHelper());
    final Adempiere adempiere = Env.getSingleAdempiereInstance(applicationContext);
    adempiere.startup(RunMode.WEBUI);
    Services.get(IMigrationLogger.class).addTableToIgnoreList(I_T_WEBUI_ViewSelection.Table_Name);
    return adempiere;
}
Also used : Adempiere(org.compiere.Adempiere) DocumentInterfaceWrapperHelper(de.metas.ui.web.window.model.DocumentInterfaceWrapperHelper) IMigrationLogger(org.adempiere.ad.migration.logger.IMigrationLogger) Bean(org.springframework.context.annotation.Bean)

Aggregations

DocumentInterfaceWrapperHelper (de.metas.ui.web.window.model.DocumentInterfaceWrapperHelper)1 IMigrationLogger (org.adempiere.ad.migration.logger.IMigrationLogger)1 Adempiere (org.compiere.Adempiere)1 Bean (org.springframework.context.annotation.Bean)1