use of org.bimserver.webservices.SPluginDescriptorComparator in project BIMserver by opensourceBIM.
the class AdminServiceImpl method getAllPlugins.
@Override
public List<SPluginDescriptor> getAllPlugins() throws UserException, ServerException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
List<SPluginDescriptor> convertToSListPluginDescriptor = getBimServer().getSConverter().convertToSListPluginDescriptor(session.getAllOfType(StorePackage.eINSTANCE.getPluginDescriptor(), PluginDescriptor.class, OldQuery.getDefault()));
Collections.sort(convertToSListPluginDescriptor, new SPluginDescriptorComparator());
return convertToSListPluginDescriptor;
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations