public InlongStreamEntity checkStreamStatus(String groupId, String streamId, String operator) {
        InlongStreamEntity inlongStreamEntity = streamMapper.selectByIdentifier(groupId, streamId);
        if (inlongStreamEntity == null) {
            throw new BusinessException(
                    String.format("InlongStream does not exist with groupId=%s, streamId=%s", groupId, streamId));
        }

        StreamStatus status = StreamStatus.forCode(inlongStreamEntity.getStatus());
        if (StreamStatus.notAllowedUpdate(status)) {
            throw new BusinessException(String.format(ErrorCodeEnum.OPT_NOT_ALLOWED_BY_STATUS.getMessage(), status));
        }

        return inlongStreamEntity;
    }
Check whether the inlong group status is temporary

@param groupId inlong group id
@return inlong group entity, for caller reuse
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/group/GroupCheckService.java