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