Class TestPropertiesLdapSchemaConfig
- java.lang.Object
-
- com.atlassian.confluence.it.usermanagement.TestPropertiesLdapSchemaConfig
-
- All Implemented Interfaces:
com.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
public class TestPropertiesLdapSchemaConfig extends Object implements com.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
-
Constructor Summary
Constructors Constructor Description TestPropertiesLdapSchemaConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributes
createGroupAttributes(String groupName)
Attributes
createUserAttributes(User user)
String
getAllGroupsSelector()
String
getAllUsersSelector()
String
getEmailAttributeName()
String
getGivenNameAttributeName()
String
getGroupNameAttributeName()
String
getGroupRdn(String groupName)
Create a group DN string given the group nameString
getGroupRdnWithDc(String groupName)
Create a group DN with domain component given the group nameString
getGroupsBaseDn()
String
getGroupUsernamesAttributeName()
String
getSurnameAttributeName()
String
getUserDn(String userName)
Create a user DN string given the usernameString
getUserDnWithDc(String userName)
Create a user DN with domain component given the usernameString
getUserNameAttributeName()
String
getUsersBaseDn()
void
setPasswordAttribute(org.springframework.LdapDataEntry ldapUser, String newPassword)
-
-
-
Method Detail
-
getUserDnWithDc
public String getUserDnWithDc(String userName)
Description copied from interface:com.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
Create a user DN with domain component given the username- Specified by:
getUserDnWithDc
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
- Parameters:
userName
- User's username- Returns:
- A valid DN with domain component that refers to the user
-
getUserDn
public String getUserDn(String userName)
Description copied from interface:com.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
Create a user DN string given the username- Specified by:
getUserDn
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
- Parameters:
userName
- User's username- Returns:
- A valid DN that refers to the user
-
getGroupRdnWithDc
public String getGroupRdnWithDc(String groupName)
Description copied from interface:com.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
Create a group DN with domain component given the group name- Specified by:
getGroupRdnWithDc
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
- Parameters:
groupName
- Name of the group- Returns:
- A valid DN with domain component that refers to the group
-
getGroupRdn
public String getGroupRdn(String groupName)
Description copied from interface:com.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
Create a group DN string given the group name- Specified by:
getGroupRdn
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
- Parameters:
groupName
- Name of the group- Returns:
- A valid DN that refers to the group
-
createUserAttributes
public Attributes createUserAttributes(User user)
- Specified by:
createUserAttributes
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
createGroupAttributes
public Attributes createGroupAttributes(String groupName)
- Specified by:
createGroupAttributes
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
setPasswordAttribute
public void setPasswordAttribute(org.springframework.LdapDataEntry ldapUser, String newPassword)
- Specified by:
setPasswordAttribute
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getEmailAttributeName
public String getEmailAttributeName()
- Specified by:
getEmailAttributeName
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getSurnameAttributeName
public String getSurnameAttributeName()
- Specified by:
getSurnameAttributeName
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getGivenNameAttributeName
public String getGivenNameAttributeName()
- Specified by:
getGivenNameAttributeName
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getGroupUsernamesAttributeName
public String getGroupUsernamesAttributeName()
- Specified by:
getGroupUsernamesAttributeName
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getUserNameAttributeName
public String getUserNameAttributeName()
- Specified by:
getUserNameAttributeName
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getGroupNameAttributeName
public String getGroupNameAttributeName()
- Specified by:
getGroupNameAttributeName
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getUsersBaseDn
public String getUsersBaseDn()
- Specified by:
getUsersBaseDn
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getGroupsBaseDn
public String getGroupsBaseDn()
- Specified by:
getGroupsBaseDn
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getAllUsersSelector
public String getAllUsersSelector()
- Specified by:
getAllUsersSelector
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getAllGroupsSelector
public String getAllGroupsSelector()
- Specified by:
getAllGroupsSelector
in interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
-