com.atlassian.confluence.user
Class UserConfigurationChecker

java.lang.Object
  extended by com.atlassian.confluence.user.UserConfigurationChecker

public class UserConfigurationChecker
extends Object


Constructor Summary
UserConfigurationChecker()
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserConfigurationChecker

public UserConfigurationChecker()
Method Detail

isOsUserConfigPresent

public static boolean isOsUserConfigPresent()

isStandardOsUser

public static boolean isStandardOsUser()
                                throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

isJiraOsUser

public static boolean isJiraOsUser(org.dom4j.Document doc)
See Also:
http://confluence.atlassian.com/display/CONF34/Delegate+user+management+to+use+JIRA+logins

isLdapOsUser

public static boolean isLdapOsUser(org.dom4j.Document doc)
See Also:
http://confluence.atlassian.com/display/CONF34/LDAP+Authentication+with+OSUser

isStandardOsUser

public static boolean isStandardOsUser(org.dom4j.Document doc)

loadOsUserDocument

public static org.dom4j.Document loadOsUserDocument()
                                             throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

getAtlassianUserConfiguration

public static List<com.atlassian.user.configuration.RepositoryConfiguration> getAtlassianUserConfiguration()
                                                                                                    throws com.atlassian.user.configuration.ConfigurationException
Returns the list of repositories configured in atlassian-user.xml, or an empty list if none are configured or the file is missing.

Throws:
com.atlassian.user.configuration.ConfigurationException

isStandardAtlassianUser

public static boolean isStandardAtlassianUser(List<com.atlassian.user.configuration.RepositoryConfiguration> atlassianUserConfiguration)

isUpgradeableLdapConfiguration

public static boolean isUpgradeableLdapConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config)

isDefaultConfiguration

public static boolean isDefaultConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config)

isUpgradeableCrowdConfiguration

public static boolean isUpgradeableCrowdConfiguration(com.atlassian.user.configuration.RepositoryConfiguration config)

isOSUserConfiguration

public 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.



Copyright © 2003-2013 Atlassian. All Rights Reserved.