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