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;
}
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;
}
Aggregations