Tabnine Logo
LifecycleBeanBuilder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
com.atlassian.plugin.connect.modules.beans.builder.LifecycleBeanBuilder

Best Java code snippets using com.atlassian.plugin.connect.modules.beans.builder.LifecycleBeanBuilder.build (Showing top 19 results out of 315)

origin: com.atlassian.plugins/atlassian-connect-server-modules

public ShallowConnectAddonBean() {
  this.key = "";
  this.name = "";
  this.version = "1.0";
  this.description = "";
  this.vendor = VendorBean.newVendorBean().build();
  this.links = newHashMap();
  this.lifecycle = LifecycleBean.newLifecycleBean().build();
  this.scopes = new HashSet<>();
  this.baseUrl = "";
  this.authentication = newAuthenticationBean().build();
  this.enableLicensing = null;
}
origin: com.atlassian.plugins/atlassian-connect-server-modules

private static String createLifecycleExample() {
  LifecycleBean bean = LifecycleBean.newLifecycleBean()
      .withInstalled("/installed")
      .withUninstalled("/uninstalled")
      .withEnabled("/enabled")
      .withDisabled("/disabled")
      .build();
  return gson.toJson(bean);
}
origin: com.atlassian.plugins/atlassian-connect-modules

private static String createLifecycleExample() {
  LifecycleBean bean = LifecycleBean.newLifecycleBean()
      .withInstalled("/installed")
      .withUninstalled("/uninstalled")
      .withEnabled("/enabled")
      .withDisabled("/disabled")
      .build();
  return gson.toJson(bean);
}
origin: com.atlassian.plugins/atlassian-connect-integration-tests-support

public ConnectRunner addDisableLifecycle() {
  LifecycleBean lifecycle = getLifecycle();
  addonBuilder.withLifecycle(newLifecycleBean(lifecycle).withDisabled(DISABLED_PATH).build());
  return this;
}
origin: com.atlassian.plugins/atlassian-connect-server-integration-tests-support

public ConnectRunner addEnableLifecycle() {
  LifecycleBean lifecycle = getLifecycle();
  addonBuilder.withLifecycle(newLifecycleBean(lifecycle).withEnabled(ENABLED_PATH).build());
  return this;
}
origin: com.atlassian.plugins/atlassian-connect-integration-tests-support

public ConnectRunner addInstallLifecycle() {
  LifecycleBean lifecycle = getLifecycle();
  addonBuilder.withLifecycle(newLifecycleBean(lifecycle).withInstalled(INSTALLED_PATH).build());
  return this;
}
origin: com.atlassian.plugins/atlassian-connect-integration-tests-support

public ConnectRunner addUninstallLifecycle() {
  LifecycleBean lifecycle = getLifecycle();
  addonBuilder.withLifecycle(newLifecycleBean(lifecycle).withUninstalled(UNINSTALLED_PATH).build());
  return this;
}
origin: com.atlassian.plugins/atlassian-connect-integration-tests-support

private LifecycleBean getLifecycle() {
  if (null == addonBuilder.getLifecycle()) {
    addonBuilder.withLifecycle(newLifecycleBean().build());
  }
  return addonBuilder.getLifecycle();
}
origin: com.atlassian.plugins/atlassian-connect-integration-tests-support

public ConnectRunner addEnableLifecycle() {
  LifecycleBean lifecycle = getLifecycle();
  addonBuilder.withLifecycle(newLifecycleBean(lifecycle).withEnabled(ENABLED_PATH).build());
  return this;
}
origin: com.atlassian.plugins/atlassian-connect-server-integration-tests-support

public ConnectRunner addUninstallLifecycle() {
  LifecycleBean lifecycle = getLifecycle();
  addonBuilder.withLifecycle(newLifecycleBean(lifecycle).withUninstalled(UNINSTALLED_PATH).build());
  return this;
}
origin: com.atlassian.plugins/atlassian-connect-server-integration-tests-support

private LifecycleBean getLifecycle() {
  if (null == addonBuilder.getLifecycle()) {
    addonBuilder.withLifecycle(newLifecycleBean().build());
  }
  return addonBuilder.getLifecycle();
}
origin: com.atlassian.plugins/atlassian-connect-server-integration-tests-support

public ConnectRunner addInstallLifecycle() {
  LifecycleBean lifecycle = getLifecycle();
  addonBuilder.withLifecycle(newLifecycleBean(lifecycle).withInstalled(INSTALLED_PATH).build());
  return this;
}
origin: com.atlassian.plugins/atlassian-connect-server-integration-tests-support

public ConnectRunner addDisableLifecycle() {
  LifecycleBean lifecycle = getLifecycle();
  addonBuilder.withLifecycle(newLifecycleBean(lifecycle).withDisabled(DISABLED_PATH).build());
  return this;
}
origin: com.atlassian.plugins/atlassian-connect-modules

public ShallowConnectAddonBean() {
  this.key = "";
  this.name = "";
  this.version = "1.0";
  this.description = "";
  this.vendor = VendorBean.newVendorBean().build();
  this.links = newHashMap();
  this.lifecycle = LifecycleBean.newLifecycleBean().build();
  this.scopes = new HashSet<>();
  this.baseUrl = "";
  this.authentication = newAuthenticationBean().build();
  this.enableLicensing = false;
  this.translations = TranslationsBean.empty();
  this.dependencies = new DependenciesBean();
}
origin: com.atlassian.plugins/atlassian-connect-server-modules

this.lifecycle = LifecycleBean.newLifecycleBean().build();
origin: com.atlassian.plugins/atlassian-connect-modules

this.lifecycle = LifecycleBean.newLifecycleBean().build();
origin: com.atlassian.plugins/atlassian-connect-modules

private static String createAddonExample() {
  Map<String, String> links = ImmutableMap.<String, String>builder().put("self", "http://www.example.com/connect/jira").build();
  Set<ScopeName> scopes = Sets.newHashSet(ScopeName.READ, ScopeName.WRITE);
  ConnectAddonBean addonBean = newConnectAddonBean()
      .withKey("my-addon-key")
      .withName("My Connect Addon")
      .withDescription("A connect addon that does something")
      .withVendor(newVendorBean().withName("My Company").withUrl("http://www.example.com").build())
      .withBaseurl("http://www.example.com/connect/jira")
      .withLinks(links)
      .withAuthentication(newAuthenticationBean().build())
      .withLicensing(true)
      .withLifecycle(LifecycleBean.newLifecycleBean().withInstalled("/installed").withUninstalled("/uninstalled").build())
      .withScopes(scopes)
      .build();
  final JsonElement jsonRepresentation = gson.toJsonTree(addonBean);
  // Remove the version element from the example because our vendors should
  jsonRepresentation.getAsJsonObject().remove("version");
  return gson.toJson(jsonRepresentation);
}
origin: com.atlassian.plugins/atlassian-connect-server-modules

private static String createAddonExample() {
  Map<String, String> links = ImmutableMap.<String, String>builder().put("self", "http://www.example.com/connect/jira").build();
  Set<ScopeName> scopes = Sets.newHashSet(ScopeName.READ, ScopeName.WRITE);
  ConnectAddonBean addonBean = newConnectAddonBean()
      .withKey("my-addon-key")
      .withName("My Connect Addon")
      .withDescription("A connect addon that does something")
      .withVendor(newVendorBean().withName("My Company").withUrl("http://www.example.com").build())
      .withBaseurl("http://www.example.com/connect/jira")
      .withLinks(links)
      .withAuthentication(newAuthenticationBean().build())
      .withLicensing(true)
      .withLifecycle(LifecycleBean.newLifecycleBean().withInstalled("/installed").withUninstalled("/uninstalled").build())
      .withScopes(scopes)
      .build();
  final JsonElement jsonRepresentation = gson.toJsonTree(addonBean);
  // Remove the version element from the example because our vendors should
  jsonRepresentation.getAsJsonObject().remove("version");
  return gson.toJson(jsonRepresentation);
}
origin: com.atlassian.plugins/atlassian-connect-test-support-plugin

  private ConnectAddonBean createAddonBeanWithScope(ScopeName scopeName) {
    final String key = getPluginKeyForScopeName(scopeName);
    ConnectAddonBeanBuilder connectAddonBeanBuilder = newConnectAddonBean()
        .withKey(key)
        .withName(key)
        .withBaseurl(testPluginInstaller.getInternalAddonBaseUrl(key))
        .withLicensing(true)
        .withAuthentication(newAuthenticationBean()
            .withType(AuthenticationType.JWT)
            .build())
        .withLifecycle(newLifecycleBean()
            .withInstalled("/installed")
            .build())
        .withModule("generalPages", newPageBean()
            .withUrl("/hello-world.html")
            .withKey("general")
            .withName(I18nProperty.value("Greeting"))
            .build());

    // scopes are optional so that we can have "no scopes" test classes
    if (null != scopeName) {
      connectAddonBeanBuilder = connectAddonBeanBuilder.withScopes(new HashSet<>(singletonList(scopeName)));
    }

    return connectAddonBeanBuilder.build();
  }
}
com.atlassian.plugin.connect.modules.beans.builderLifecycleBeanBuilderbuild

Popular methods of LifecycleBeanBuilder

  • withInstalled
  • withDisabled
  • withEnabled
  • withUninstalled
  • <init>

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JList (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now