java.lang.Object | |
↳ | com.atlassian.jira.util.JiraUtils |
Miscellaneous utility methods. Most have moved into more specific classes.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | AM | ||||||||||
String | PM |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calculate meridian adjustment add 12 hours if meridian is set to PM - note 12pm is 12:00 in 24 hour time.
| |||||||||||
Returns true if JIRA is really running in public mode.
| |||||||||||
This method is deprecated.
This method does not work well with Plugins2 classes and dependency injection. Please use
ComponentClassManager .
| |||||||||||
This method will load and construct a class, but also pass it through PicoContainer, to inject any dependencies.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Calculate meridian adjustment add 12 hours if meridian is set to PM - note 12pm is 12:00 in 24 hour time.
meridianIndicator | am or pm |
---|---|
hours | 1-12 |
Returns true if JIRA is really running in public mode.
That is, JIRA Mode is enabled AND there is at least one writable User Directory.
JRA-15966 Public mode should only be allowed if External User Management is disabled, otherwise we cannot create a new user in JIRA. Older versions of JIRA would allow the admin to set up an invalid combination of both External User Management and Public Mode enabled, and so we need to account for this possibility.
This method is deprecated.
This method does not work well with Plugins2 classes and dependency injection. Please use ComponentClassManager
.
This method will load and construct a class, but also pass it through PicoContainer, to inject any dependencies. Please note that this method will only find Plugins2 classes in plugins that are enabled, and cannot inject plugins2 components.
className | the name of the class to load |
---|---|
classLoader | the classloader to use to load the class |
ClassNotFoundException | if the given className was not able to be loaded. |
---|
This method will load and construct a class, but also pass it through PicoContainer, to inject any dependencies.
className | the name of the class to load. |
---|---|
callingClass | the class requesting the class be loaded. |
ClassNotFoundException | if the class is not found on the classpath of the classloader of the calling class. |
---|