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 AttributescreateGroupAttributes(String groupName)AttributescreateUserAttributes(User user)StringgetAllGroupsSelector()StringgetAllUsersSelector()StringgetEmailAttributeName()StringgetGivenNameAttributeName()StringgetGroupNameAttributeName()StringgetGroupRdn(String groupName)Create a group DN string given the group nameStringgetGroupRdnWithDc(String groupName)Create a group DN with domain component given the group nameStringgetGroupsBaseDn()StringgetGroupUsernamesAttributeName()StringgetSurnameAttributeName()StringgetUserDn(String userName)Create a user DN string given the usernameStringgetUserDnWithDc(String userName)Create a user DN with domain component given the usernameStringgetUserNameAttributeName()StringgetUsersBaseDn()voidsetPasswordAttribute(org.springframework.LdapDataEntry ldapUser, String newPassword)
-
-
-
Method Detail
-
getUserDnWithDc
public String getUserDnWithDc(String userName)
Description copied from interface:com.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfigCreate a user DN with domain component given the username- Specified by:
getUserDnWithDcin 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.LdapSchemaConfigCreate a user DN string given the username- Specified by:
getUserDnin 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.LdapSchemaConfigCreate a group DN with domain component given the group name- Specified by:
getGroupRdnWithDcin 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.LdapSchemaConfigCreate a group DN string given the group name- Specified by:
getGroupRdnin 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:
createUserAttributesin interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
createGroupAttributes
public Attributes createGroupAttributes(String groupName)
- Specified by:
createGroupAttributesin interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
setPasswordAttribute
public void setPasswordAttribute(org.springframework.LdapDataEntry ldapUser, String newPassword)- Specified by:
setPasswordAttributein interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getEmailAttributeName
public String getEmailAttributeName()
- Specified by:
getEmailAttributeNamein interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getSurnameAttributeName
public String getSurnameAttributeName()
- Specified by:
getSurnameAttributeNamein interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getGivenNameAttributeName
public String getGivenNameAttributeName()
- Specified by:
getGivenNameAttributeNamein interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getGroupUsernamesAttributeName
public String getGroupUsernamesAttributeName()
- Specified by:
getGroupUsernamesAttributeNamein interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getUserNameAttributeName
public String getUserNameAttributeName()
- Specified by:
getUserNameAttributeNamein interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getGroupNameAttributeName
public String getGroupNameAttributeName()
- Specified by:
getGroupNameAttributeNamein interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getUsersBaseDn
public String getUsersBaseDn()
- Specified by:
getUsersBaseDnin interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getGroupsBaseDn
public String getGroupsBaseDn()
- Specified by:
getGroupsBaseDnin interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getAllUsersSelector
public String getAllUsersSelector()
- Specified by:
getAllUsersSelectorin interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
getAllGroupsSelector
public String getAllGroupsSelector()
- Specified by:
getAllGroupsSelectorin interfacecom.atlassian.confluence.it.usermanagement.LdapServer.LdapSchemaConfig
-
-