Package com.atlassian.jira.util
package com.atlassian.jira.util
-
ClassDescriptionBase class for the message set.Helper class that makes easier blocking unauthorized access to Jira endpoints.Mockito answersBasic slurp implementation of an InputStream Consumer which provides Base64 encoded output.Utility class for swapping the base of a URL.Wraps an ExecutorService to ensure the number of queued tasks is bounded to the specified concurrency.Deprecated.Provides version information about the currently running build of Jira platform.This class gives access to build-time properties at runtime.CacheMap<K,
V> An object that caches values that are mapped under keys.Utility for case folding Java Strings.Class name abbreviator.Deprecated.UseClock
insteadDeprecated.UseClock
insteadA Closeable is a source or destination of data that can be closed.Assertions for unit tests to use on collections.Contains static utility methods pertaining to colour values.A factory that allows objects to be created through constructor dependency injection at runtime.A locator that allows components to be looked up at runtime.Deprecated.UseClock
insteadTODO: Document this class / interface hereDeprecated.UseClock
insteadConsumer<T>Consume the object aSupplier
produces.Helper for handling JIRA date fields.Default implementation for formatting and parsing dates in JIRA.This can take an input string and look into it for occurences of given terms.provides access to the jira-downgrade.properties fileUse this Factory to produce "Duck Type" proxies of a given interface with a delegate object that "implements" a subset of the interface methods.Provider forJiraDurationUtils.DurationFormatter
.Deprecated.UseLists
instead.Deprecated.UseClock
insteadUtility functions for Eithers.Returned email address appropriately masked/hidden for the current user.EncodingMap is a convenience class which handles conversions between IANA encoding names and Java encoding names, and vice versa.A very simple interface to collect errors.Provides methods to help unit tests make assertions about ErrorCollection objects.Static factory methods for creating simpleErrorCollection
instances.A predicate that checks that all the given predicates evaulate to true for the specified input.This util will feed an exception through the exception interpreter chain of responsibility.SPI which is implemented by an internal plugin, useful for delegating some part of logic outside of jira-core.Interface for file operations.Function<D,R> A Function that resolves Descriptors (of type D) to a Resource (of type R).Useful standard functions.This is a utility class to find out information aboutPermissions.ADMINISTER
andPermissions.SYSTEM_ADMIN
global permission information.I18nHelper is the main interface for finding internationalised text in JIRA.Ths BeanFactory is used to instantiateI18nHelper
instances for a specific Locale or User.Utility code originally written to support various importers.The annotated type (a component), field (a component dependency for another class), or constructor was designed to be compatible with injection, meaning that:Provides information about this jira instance.Provides information about this jira instance.General IO Stream manipulation.Default implementation ofComponentFactory
Helper for getting User Contact information linksUtil class responsible for printing durations in various formats.This formatter formats time duration to days only.This interface defines methods for formatting time durationThis formatter formats time duration to hours only.This formatter formats time duration to "pretty" format, such as 3 weeks, 2 days, 1 hour, 15 minutes.Component that provides access to project and issue key utilities.This class is not intended to be used outside of the setup process.A type of JIRA release.Class to wrap around the encoding of query strings.Miscellaneous utility methods.A bean version of JiraUtils that can be mocked out outA simple class store methods we want to expose to velocity templatesHelper class that contains a number of utility methods for velocity templates.KeyValuePair<K,V> Represents a Key-Value PairKeyValuePairImpl<K,V> Parses a key-value pair in a String such as "portNumber=5432" into its separate valuesAnOutputStream
that throws anLimitedOutputStream.TooBigIOException
if more than the configured number of bytes are ever written to the output stream.Is a message set that keeps the messages and warnings in the order in which they were added.Static utility to parse locale Strings into Locale objects.Used to lock resources using a file system file as a lockThrown when a timeout has been reached while trying to obtain a lockContains static utility methods pertaining to theLong
type.Deprecated.Use Guava or build your own inverter instead.Holds information about a particular MemoryPool in the JVM.Gathers data about the JVM memory poolsHolder of a 12 hour time with a meridian indicator (am/pm).Used to communicate error and warning messages.Message levelsA simple class for holding link text and a link url.Message set implementation that uses the messages natural ordering to sort the messages that are added.Comparison function that sorts based on the name of aNamed
object.Natural Order String Comparator compares Strings in a more "human friendly" way.The annotated type (a component), field (a component dependency for another class), or constructor was not designed to be compatible with injection, meaning that:A factory forNoopI18nHelper
objects.AnI18nHelper
that returns the i18n key concatenated with its arguments.Describes elements in JIRA code base, whose change will affect the On Demand code in terms of compilation or runtime behaviour.Utility methods relating to theOptional
type, to make up for its deficiencies.This implementation of ExceptionInterpreter shows links to confluence howto's on how to fix the oracle large string problem.Represents an "order by" request.A component that can parse raw strings intoOrderByRequest
objects.Class containing useful methods for sorting in accordance withOrderByRequest
s.A field implementing this interface provides a method for extracting the field's value from an entity of typeT
.Page<T>A single page of values.Pagination request.Class containing static factory methods used to createPageRequest
instances.Class containing static factory methods used to createPage
instances.This class can be used to "parse" values from a map of parameters.Deprecated.Only used in deprecated method.Indicates that a potential path traversal was prevented.This class contains utility methods for manipulating paths.Deprecated.UseClock
insteadClass that validates the value of a TCP/UDP port.Predicate<T>Evaluate an input and return true or false.A predicate that always returns false.A predicate that always returns true.Deprecated.UseClock
insteadResolver<I,O> A interface to resolve some input object into an output object.Convenience class for re-throwingInterruptedException
.An IOException was encountered and the stupid programmer didn't know how to recover, so this got thrown instead.Matcher forSearchResult
from testkit.Used to shut something down.The most straightforward serializable implementation of ErrorCollection interface.A simple implementation of the warning collection interfaceDeprecated.UseClock
insteadSupplier<T>A Supplier of objects of a single type.This util class was added to be able to create a "temporary" directory.You can never have enough StringUtils or TextUtilsContains a map of unsupported browsers and error message keys.Utility class for matching URIs.This class converts the URI query parameters into a map.Verify that a url is not executable Needs to be instantiated to support testing - oh PowerMock wherefore art thouBuilds a URL from parameters.Implements the 'www-form-urlencoded' encoding scheme, also misleadingly known as URL encoding.Performs URL validation.Utility class for sniffer UserAgentsDefault Implementation for Sniffing User Agents.A validation exception is essentially a "throwable" error collection.Factory that can create default Velocity Parameters for use in Velocity templates.Visitor<T>Callback interface for code that implements the Visitor Pattern.A very simple interface to collect warnings.Module descriptor for <whisper-message />.Window<T>A type of collection that contains another collection - underlying collection - and limits your view over it.Responsible for serializing/deserializing java objects to/from xml.This handles several XML-related tasks that normal java.io Readers don't support, inluding use of IETF standard encoding names and automatic detection of most XML encodings.Simple utility functions for dealing with zip files.
BuildUtilsInfo
instead.