use of org.bimserver.webservices.SPluginConfigurationComparator in project BIMserver by opensourceBIM.
the class PluginServiceImpl method getAllObjectIDMs.
@Override
public List<SObjectIDMPluginConfiguration> getAllObjectIDMs(Boolean onlyEnabled) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
UserSettings userSettings = getUserSettings(session);
List<SObjectIDMPluginConfiguration> objectIdms = getBimServer().getSConverter().convertToSListObjectIDMPluginConfiguration(userSettings.getObjectIDMs());
Collections.sort(objectIdms, new SPluginConfigurationComparator());
return objectIdms;
} catch (Exception e) {
handleException(e);
} finally {
session.close();
}
return null;
}
Aggregations