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