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

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

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

origin: com.atlassian.jira/jira-core

@Override
public DateTime buildDate()
{
  return application.buildDate();
}
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.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);
    };
  }
}
com.atlassian.application.apiApplicationbuildDate

Javadoc

Return the build date of the application.

Popular methods of Application

  • 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
  • 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
  • getProductHelpCloudSpaceURI
    Returns relative URI to use as target space for product user helplinks in cloud. io.atlassian.fugue
  • getPostUpdateURI,
  • getProductHelpCloudSpaceURI,
  • getProductHelpServerSpaceURI,
  • getVersion

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Menu (java.awt)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Table (org.hibernate.mapping)
    A relational table
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text 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