private ClientIfcModel(BimServerClient bimServerClient, PackageMetaData packageMetaData, long poid, boolean recordChanges) { super(packageMetaData, null); this.bimServerClient = bimServerClient; this.recordChanges = recordChanges; if (recordChanges) { try { tid = bimServerClient.getLowLevelInterface().startTransaction(poid); } catch (Exception e) { LOGGER.error("", e); } } }
public void run(){ try { callback.success(syncService.startTransaction(poid)); } catch (Throwable e) { callback.error(e); } } });
public ClientIfcModel(BimServerClient bimServerClient, long poid, long roid, boolean deep, PackageMetaData packageMetaData, boolean recordChanges, boolean includeGeometry) throws ServerException, UserException, PublicInterfaceNotFoundException { super(packageMetaData, null); this.recordChanges = recordChanges; this.bimServerClient = bimServerClient; this.roid = roid; this.includeGeometry = includeGeometry; if (recordChanges) { try { tid = bimServerClient.getLowLevelInterface().startTransaction(poid); } catch (Exception e) { LOGGER.error("", e); } } if (deep) { try { loadDeep(); } catch (QueryException e) { LOGGER.error("", e); } } }