use of org.bimserver.database.actions.SetRevisionTagDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method setRevisionTag.
@Override
public void setRevisionTag(Long roid, String tag) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.POSSIBLY_WRITE);
try {
BimDatabaseAction<String> action = new SetRevisionTagDatabaseAction(session, getInternalAccessMethod(), roid, tag);
session.executeAndCommitAction(action);
} catch (Exception e) {
handleException(e);
} finally {
session.close();
}
}
Aggregations