Search in sources :

Example 1 with SMigration

use of org.bimserver.interfaces.objects.SMigration in project BIMserver by opensourceBIM.

the class AdminServiceImpl method getMigrations.

@Override
public List<SMigration> getMigrations() throws UserException {
    Migrator migrator = getBimServer().getDatabase().getMigrator();
    List<SMigration> list = new ArrayList<SMigration>(getBimServer().getSConverter().convertToSSetMigration(migrator.getMigrations()));
    Collections.sort(list, new SMigrationComparator());
    return list;
}
Also used : SMigration(org.bimserver.interfaces.objects.SMigration) ArrayList(java.util.ArrayList) Migrator(org.bimserver.database.migrations.Migrator) SMigrationComparator(org.bimserver.webservices.SMigrationComparator)

Aggregations

ArrayList (java.util.ArrayList)1 Migrator (org.bimserver.database.migrations.Migrator)1 SMigration (org.bimserver.interfaces.objects.SMigration)1 SMigrationComparator (org.bimserver.webservices.SMigrationComparator)1