Tabnine Logo
PluginUtils.asString
Code IndexAdd Tabnine to your IDE (free)

How to use
asString
method
in
com.atlassian.plugin.util.PluginUtils

Best Java code snippets using com.atlassian.plugin.util.PluginUtils.asString (Showing top 1 results out of 315)

origin: com.atlassian.plugins/atlassian-plugins-core

/**
 * Determines if a module element applies to the current application by matching the 'application' attribute
 * to the set of applications. If the application is specified, but isn't in the set, we return false
 *
 * @param element      The module element
 * @param applications The set of application applications
 * @return True if it should apply, false otherwise
 * @since 2.2.0
 */
public static boolean doesModuleElementApplyToApplication(final Element element,
                             final Set<Application> applications,
                             final InstallationMode installationMode) {
  checkNotNull(element);
  checkNotNull(applications);
  final ModuleRestricts restricts = ModuleRestricts.parse(element);
  final boolean valid = restricts.isValidFor(applications, installationMode);
  if (!valid && logger.isDebugEnabled()) {
    logger.debug("Module '{}' with key '{}' is restricted to the following " +
            "applications {} and therefore does not apply to applications {}",
        element.getName(), element.attributeValue("key"), restricts, asString(applications));
  }
  return valid;
}
com.atlassian.plugin.utilPluginUtilsasString

Popular methods of PluginUtils

  • isAtlassianDevMode
  • getDefaultEnablingWaitPeriod
  • doesModuleElementApplyToApplication
    Determines if a module element applies to the current application by matching the 'application' attr
  • doesPluginRequireRestart
    Determines if a plugin requires a restart after being installed at runtime. Looks for the annotation
  • getPluginModulesThatRequireRestart
    Gets a list of all the module keys in a plugin that require restart. Looks for the annotation Requir

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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