congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Application
Code IndexAdd Tabnine to your IDE (free)

How to use
Application
in
com.atlassian.application.api

Best Java code snippets using com.atlassian.application.api.Application (Showing top 18 results out of 315)

origin: com.atlassian.jira/jira-core

@Override
public ApplicationAccess getAccess()
{
  return application.getAccess();
}
origin: com.atlassian.jira/jira-core

@Override
public ApplicationKey getKey()
{
  return application.getKey();
}
origin: com.atlassian.jira/jira-core

@Override
public String getUserCountDescription(final Option<Integer> integers)
{
  return application.getUserCountDescription(integers);
}
origin: com.atlassian.jira/jira-core

@ActionViewData ("success")
public Map<String, Object> getData()
{
  Application application = StreamSupport.stream(applicationManager.getApplications().spliterator(), false)
      .filter(app -> !ApplicationKeys.CORE.equals(app.getKey()))
      .findFirst()
      .orElseGet(applicationManager::getPlatform);
  return MapBuilder.<String, Object>newBuilder()
      .add("productName", application.getName())
      .add("productVersion", application.getVersion())
      .add("notMigratedGroups", notMigratedGroups())
      .add("notDefinedRoles", notDefinedRoles())
      .toMap();
}
origin: com.atlassian.jira/jira-core

  /**
   * Checks maintenance for given application keys if they are installed.
   */
  public Function<LicenseDetails, Either<String, LicenseDetails>> validateMaintenanceForApplications(@Nonnull final Set<ApplicationKey> installedAppKeys,
      @Nonnull final ApplicationManager applicationManager)
  {
    return jiraLicenseDetails ->
    {
      for (ApplicationKey appKey : installedAppKeys)
      {
        final Option<Application> application = applicationManager.getApplication(appKey);
        if (application.isDefined())
        {
          if (!jiraLicenseDetails.isMaintenanceValidForBuildDate(application.get().buildDate().toDate()))
          {
            final LicenseDetails.LicenseStatusMessage maintenanceMessage =
                jiraLicenseDetails.getMaintenanceMessage(i18nHelper, application.get().getName());
            //Subscription license does not have any messages and are valid
            if (maintenanceMessage.hasAnyMessages())
            {
              return Either.left(maintenanceMessage.getAllMessages("<br/><br/>"));
            }
          }
        }
      }
      return Either.right(jiraLicenseDetails);
    };
  }
}
origin: com.atlassian.jira/jira-core

@Override
public DateTime buildDate()
{
  return application.buildDate();
}
origin: com.atlassian.jira/jira-core

@Override
public Option<URI> getConfigurationURI()
{
  return application.getConfigurationURI();
}
origin: com.atlassian.jira/jira-core

@Override
public Option<SingleProductLicenseDetailsView> getLicense()
{
  return application.getLicense();
}
origin: com.atlassian.jira/jira-core

@Override
public String getDescription()
{
  return application.getDescription();
}
origin: com.atlassian.jira/jira-core

@Override
public String getName()
{
  return application.getName();
}
origin: com.atlassian.jira/jira-core

  @Override
  public void clearConfiguration()
  {
    application.clearConfiguration();
  }
}
origin: com.atlassian.jira/jira-core

@Override
public String getDefaultGroup()
{
  return application.getDefaultGroup();
}
origin: com.atlassian.jira/jira-core

  @Override
  public boolean test(@Nonnull final LicenseDetails details)
  {
    notNull("details", details);

    final Set<ApplicationKey> licensedApplicationKeys = details.getLicensedApplications().getKeys();
    for (final ApplicationKey key : licensedApplicationKeys)
    {
      final Option<Application> appOption = applicationManager.getApplication(key);
      if (appOption.isDefined())
      {
        final Date buildDate = appOption.get().buildDate().toDate();
        if (!details.isMaintenanceValidForBuildDate(buildDate))
        {
          return false;
        }
      }
    }
    // We need to also check against the platform build.
    return details.isMaintenanceValidForBuildDate(info.getCurrentBuildDate());
  }
}
origin: com.atlassian.application/atlassian-application-host

  @Override
  public boolean apply(@Nullable final Application input)
  {
    assert input != null;
    return input.getKey().equals(key);
  }
});
origin: com.atlassian.jira/jira-rest-plugin

public ApplicationRoleBean roleBean(ApplicationRole role)
{
  final ApplicationKey key = role.getKey();
  final int userCount = roleManager.getUserCount(key);
  final Application application = appManager.getApplication(key).getOrElse(platform);
  final String userCountDescription = application.getUserCountDescription(Option.some(userCount));
  final int remainingSeats = roleManager.getRemainingSeats(key);
  return new ApplicationRoleBean(
      key.value(),
      role.getName(),
      toNames(role.getGroups()),
      toNames(role.getDefaultGroups()),
      role.isSelectedByDefault(),
      role.isDefined(),
      role.getNumberOfSeats(),
      remainingSeats,
      userCount,
      userCountDescription,
      remainingSeats == UNLIMITED_USERS,
      role.isPlatform());
}
origin: com.atlassian.application/atlassian-application-host

  @Override
  public ApplicationAccess apply(@Nullable final Application input)
  {
    assert input != null;
    return input.getAccess();
  }
});
origin: com.atlassian.jira/jira-core

@Override
public ValidationResult validateApplicationLicense(@Nonnull final I18nHelper i18nHelper, @Nonnull final String licenseString)
{
  final Set<ApplicationKey> appKeys = newHashSet();
  for (Application application : applicationManager.getApplications())
  {
    appKeys.add(application.getKey());
  }
  return validate(appKeys, licenseString, i18nHelper);
}
origin: com.atlassian.jira/jira-core

private Stream<JiraApplication> getJiraApplicationFor(Application application)
{
  return getMetadataForApplication(application.getKey())
      .map(meta -> new JiraApplication(application, meta.getProjectTypes()))
      .map(Stream::of)
      .getOrElse(Stream.empty());
}
com.atlassian.application.apiApplication

Javadoc

Represents an Application (e.g. Service Desk) installed on top of the platform (e.g. JIRA).

An application may be implemented as a group of plugins com.atlassian.application.api.PluginApplicationor a fundamental part of the platform com.atlassian.application.api.PlatformApplication or by some other yet to be determined means.

None of the parameters or return values can be null (unless noted otherwise).

Most used methods

  • getAccess
    Return the com.atlassian.application.api.ApplicationAccess associated with the application.
  • getKey
    Return the com.atlassian.application.api.ApplicationKey associated with the application.
  • getUserCountDescription
    Returns the internationalised description for the passed number of users. For example, JIRA Service
  • buildDate
    Return the build date of the application.
  • clearConfiguration
    Clear (remove) application's configuration. This is typically implemented by the host system and sho
  • getConfigurationURI
    Get the relative URI for the configuration of the application. The context path must not be included
  • getDefaultGroup
    Get the default user group defined for the application.
  • getDescription
    Get the description of the application.The description should be internationalised for the calling u
  • getLicense
    Return the license associated with the application. io.atlassian.fugue.Option#none() will be returne
  • getName
    Get the name of the application.
  • getPostInstallURI
    Get the relative URI to show after the application is installed. The context path must not be includ
  • getPostUpdateURI
    Get the relative URI to show after the application is updated. The context path must not be included
  • getPostInstallURI,
  • getPostUpdateURI,
  • getProductHelpCloudSpaceURI,
  • getProductHelpServerSpaceURI,
  • getVersion

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Collectors (java.util.stream)
  • JFileChooser (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top PhpStorm 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