Search in sources :

Example 1 with PluginManager

use of org.mifos.framework.plugin.PluginManager in project head by mifos.

the class ViewOrganizationSettingsServiceFacadeWebTier method getDisplayablePluginsProperties.

@Override
public Map<String, String> getDisplayablePluginsProperties() {
    Map<String, String> result = new LinkedHashMap<String, String>();
    for (TransactionImport ti : new PluginManager().loadImportPlugins()) {
        Map<String, String> properties = ti.getPropertiesForAdminDisplay();
        Iterator<String> iterator = properties.keySet().iterator();
        while (iterator.hasNext()) {
            String key = String.valueOf(iterator.next());
            String value = String.valueOf(properties.get(key));
            if (key != null && value != null) {
                result.put(key, value);
            }
        }
    }
    return result;
}
Also used : PluginManager(org.mifos.framework.plugin.PluginManager) TransactionImport(org.mifos.accounts.api.TransactionImport) LinkedHashMap(java.util.LinkedHashMap)

Example 2 with PluginManager

use of org.mifos.framework.plugin.PluginManager in project head by mifos.

the class ImportTransactionsServiceFacadeWebTier method getInitializedImportPlugin.

private TransactionImport getInitializedImportPlugin(String importPluginClassname, Short userId) {
    final TransactionImport ti = new PluginManager().getImportPlugin(importPluginClassname);
    final UserReferenceDto userReferenceDTO = new UserReferenceDto(userId);
    ti.setUserReferenceDto(userReferenceDTO);
    return ti;
}
Also used : PluginManager(org.mifos.framework.plugin.PluginManager) UserReferenceDto(org.mifos.dto.domain.UserReferenceDto) TransactionImport(org.mifos.accounts.api.TransactionImport)

Aggregations

TransactionImport (org.mifos.accounts.api.TransactionImport)2 PluginManager (org.mifos.framework.plugin.PluginManager)2 LinkedHashMap (java.util.LinkedHashMap)1 UserReferenceDto (org.mifos.dto.domain.UserReferenceDto)1