public class UserConfigurationChecker extends Object
Constructor and Description |
---|
UserConfigurationChecker() |
Modifier and Type | Method and Description |
---|---|
static List<com.atlassian.user.configuration.RepositoryConfiguration> |
getAtlassianUserConfiguration()
Returns the list of repositories configured in atlassian-user.xml, or an empty list if none are configured or the file is missing.
|
static boolean |
isDefaultConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config) |
static boolean |
isJiraOsUser(org.dom4j.Document doc) |
static boolean |
isLdapOsUser(org.dom4j.Document doc) |
static boolean |
isOsUserConfigPresent() |
static boolean |
isOSUserConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config)
An OSUser repository in atlassian-user.xml might not be upgradable, but we want to match them anyway.
|
static boolean |
isStandardAtlassianUser(List<com.atlassian.user.configuration.RepositoryConfiguration> atlassianUserConfiguration) |
static boolean |
isStandardOsUser() |
static boolean |
isStandardOsUser(org.dom4j.Document doc) |
static boolean |
isUpgradeableCrowdConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config) |
static boolean |
isUpgradeableLdapConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config) |
static org.dom4j.Document |
loadOsUserDocument() |
public static boolean isOsUserConfigPresent()
public static boolean isStandardOsUser() throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static boolean isJiraOsUser(org.dom4j.Document doc)
http://confluence.atlassian.com/display/CONF34/Delegate+user+management+to+use+JIRA+logins
public static boolean isLdapOsUser(org.dom4j.Document doc)
http://confluence.atlassian.com/display/CONF34/LDAP+Authentication+with+OSUser
public static boolean isStandardOsUser(org.dom4j.Document doc)
public static org.dom4j.Document loadOsUserDocument() throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static List<com.atlassian.user.configuration.RepositoryConfiguration> getAtlassianUserConfiguration() throws com.atlassian.user.configuration.ConfigurationException
com.atlassian.user.configuration.ConfigurationException
public static boolean isStandardAtlassianUser(List<com.atlassian.user.configuration.RepositoryConfiguration> atlassianUserConfiguration)
public static boolean isUpgradeableLdapConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config)
public static boolean isDefaultConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config)
public static boolean isUpgradeableCrowdConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config)
public static boolean isOSUserConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config)
Copyright © 2003–2016 Atlassian. All rights reserved.