use of org.bimserver.database.actions.GetNrPrimitivesTotalDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method getNrPrimitivesTotal.
@Override
public Long getNrPrimitivesTotal(Set<Long> roids) throws ServerException, UserException {
requireAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.READ_ONLY);
try {
return new GetNrPrimitivesTotalDatabaseAction(getBimServer(), session, getInternalAccessMethod(), roids, getAuthorization()).execute();
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations