public final class JiraUtils extends Object
JiraEntityUtils
,
JiraKeyUtils
,
JiraTypeUtils
,
UserUtil
Constructor and Description |
---|
JiraUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
get24HourTime(String meridianIndicator,
int hours)
Calculate meridian adjustment add 12 hours if meridian is set to PM - note 12pm is 12:00 in 24 hour time.
|
static String |
getHostname()
Returns the server ip where the vm is running.
|
static boolean |
isPublicMode()
Returns true if JIRA is really running in public mode.
|
static boolean |
isSetup()
Deprecated.
The casing of this method is misleading; use
isSetUp() instead. Since v7.4. |
static boolean |
isSetUp()
Indicates whether JIRA has been set up.
|
public static final String AM
public static final String PM
public static boolean isPublicMode()
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.
public static int get24HourTime(String meridianIndicator, int hours)
meridianIndicator
- am or pmhours
- 1-12public static boolean isSetUp()
@Deprecated public static boolean isSetup()
isSetUp()
instead. Since v7.4.public static String getHostname()
Copyright © 2002-2023 Atlassian. All Rights Reserved.