use of org.bimserver.database.actions.GetAvailableClassesDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method getAvailableClasses.
@Override
public List<String> getAvailableClasses() throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<List<String>> action = new GetAvailableClassesDatabaseAction(session, getInternalAccessMethod());
return session.executeAndCommitAction(action);
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations