Search in sources :

Example 1 with ProviderService

use of org.meveo.service.crm.impl.ProviderService in project meveo by meveo-org.

the class MeveoValueExpressionWrapper method getAdditionalSources.

@Override
protected Map<String, Object> getAdditionalSources(String expression, Map<Object, Object> userMap) {
    final Map<String, Object> additionalSources = super.getAdditionalSources(expression, userMap);
    if (userMap != null && expression.contains("appProvider")) {
        Provider appProvider = ((ProviderService) EjbUtils.getServiceInterface("ProviderService")).getProvider();
        additionalSources.put("appProvider", appProvider);
    }
    return additionalSources;
}
Also used : ProviderService(org.meveo.service.crm.impl.ProviderService) Provider(org.meveo.model.crm.Provider)

Aggregations

Provider (org.meveo.model.crm.Provider)1 ProviderService (org.meveo.service.crm.impl.ProviderService)1