gpt4 book ai didi

net.nemerosa.ontrack.model.form.YesNo.value()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 15:16:49 29 4
gpt4 key购买 nike

本文整理了Java中net.nemerosa.ontrack.model.form.YesNo.value()方法的一些代码示例,展示了YesNo.value()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesNo.value()方法的具体详情如下:
包路径:net.nemerosa.ontrack.model.form.YesNo
类名称:YesNo
方法名:value

YesNo.value介绍

暂无

代码示例

代码示例来源:origin: net.nemerosa.ontrack/ontrack-model

public Form form() {
    return Form.create()
        .with(
            YesNo.of("grantProjectViewToAll")
                .label("Grants project view to all")
                .help("Unless disabled at project level, this would enable any user (even anonymous) " +
                    "to view the content of all projects.")
                .value(isGrantProjectViewToAll())
        );
  }
}

代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-general

@Override
public Form getEditionForm(ProjectEntity entity, AutoPromotionLevelProperty value) {
  return Form.create()
      .with(
          YesNo.of("autoCreate")
              .label("Auto creation")
              .help("If set, allows promotion levels to be created automatically")
              .value(value != null && value.isAutoCreate())
      )
      ;
}

代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-general

@Override
public Form getEditionForm(ProjectEntity entity, AutoValidationStampProperty value) {
  return Form.create()
      .with(
          YesNo.of("autoCreate")
              .label("Auto creation")
              .help("If set, allows validation stamps to be created automatically")
              .value(value != null && value.isAutoCreate())
      )
      .with(
          YesNo.of("autoCreateIfNotPredefined")
              .label("Auto creation if not predefined")
              .help("If set, allows validation stamps to be created automatically, even if not predefined version is present.")
              .value(value != null && value.isAutoCreateIfNotPredefined())
      )
      ;
}

代码示例来源:origin: net.nemerosa.ontrack/ontrack-model

@JsonIgnore
  public Form getForm() {
    Form form = Form.create();
    // Parameters only if at least one is available
    if (!parameters.isEmpty()) {
      // Auto expression
      form = form.with(
          YesNo.of("manual")
              .label("Manual")
              .help("Do not use automatic expansion of parameters using the branch name.")
              .value(false)
      );
      // Template parameters
      for (TemplateParameter parameter : parameters) {
        form = form.with(
            Text.of(parameter.getName())
                .label(parameter.getName())
                .visibleIf("manual")
                .help(parameter.getDescription())
        );
      }
    }
    // OK
    return form;
  }
}

代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-svn

@Override
public Form getEditionForm(ProjectEntity entity, SVNSyncProperty value) {
  return Form.create()
      .with(
          YesNo.of("override")
              .label("Override builds")
              .help("Can the existing builds be overridden by a synchronisation? If yes, " +
                  "the existing validation and promotion runs would be lost as well.")
              .value(value != null && value.isOverride())
      )
      .with(
          Int.of("interval")
              .label("Sync. interval (min)")
              .min(0)
              .max(60 * 24 * 7) // 1 week
              .help("Interval in minutes for the synchronisation. If 0, the synchronisation " +
                  "must be done manually")
              .value(value != null ? value.getInterval() : 0)
      );
}

代码示例来源:origin: nemerosa/ontrack

@Override
public Form getEditionForm(ProjectEntity entity, TestDecorationData value) {
  return Form.create()
      .with(
          Text.of("value")
              .label("Value")
              .value(value != null ? value.getValue() : "")
      )
      .with(
          YesNo.of("valid")
              .label("Valid")
              .value(value != null && value.isValid())
      )
      ;
}

代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-ldap

YesNo.of("enabled")
    .label("Enable LDAP authentication")
    .value(settings.isEnabled())

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com