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