|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.directory.ldap.LDAPPropertiesMapperImpl
public class LDAPPropertiesMapperImpl
| Field Summary | |
|---|---|
static String |
CONNECTION_BINARY_ATTRIBUTES
LDAP binary attributes. |
static String |
CONNECTION_FACTORY
LDAP connection factory. |
static String |
CONNECTION_FACTORY_SSL_IMPL
LDAP secure connection factory. |
static String |
CONNECTION_INITIAL_CONTEXT_FACTORY
LDAP initial context factory. |
static String |
CONNECTION_SECURITY_AUTHENTICATION
LDAP connection method. |
static String |
CONNECTION_SSL_SECURITY_PROTOCOL
LDAP secure connection method. |
| Constructor Summary | |
|---|---|
LDAPPropertiesMapperImpl(LDAPPropertiesHelper ldapPropertiesHelper)
|
|
| Method Summary | |
|---|---|
String |
getAttribute(String key)
|
Map<String,String> |
getAttributes()
|
String |
getBaseDN()
|
protected boolean |
getBooleanKey(String key)
|
protected boolean |
getBooleanKey(String key,
boolean defaultValue)
|
int |
getCacheSynchroniseInterval()
Returns the interval in seconds when the local Cache should be synchronized with LDAP. |
Map<String,Properties> |
getConfigurationDetails()
Returns a map of the LDAP names as the keys and the properties associated
with that LDAP connector. |
protected String |
getConnectionTimeout()
|
String |
getConnectionURL()
|
Map<String,String> |
getEnvironment()
|
String |
getExternalIdAttribute()
Get the LDAP unique ID attribute. |
String |
getGroupBaseDN()
|
String |
getGroupDescriptionAttribute()
|
String |
getGroupFilter()
|
String |
getGroupMemberAttribute()
|
String |
getGroupNameAttribute()
|
String |
getGroupObjectClass()
|
Map<String,String> |
getImplementations()
Returns a map of the LDAP names as the keys and the implementation class as Strings. |
List<LdapTypeConfig> |
getLdapTypeConfigurations()
Get a list of Ldap Type Configuration objects. |
String |
getObjectClassAttribute()
|
int |
getPagedResultsSize()
|
String |
getPassword()
|
protected String |
getPoolInitSize()
|
protected String |
getPoolMaxSize()
|
protected String |
getPoolPrefSize()
|
protected String |
getPoolTimeout()
|
String |
getPrincipalBaseDN()
|
protected String |
getReadTimeout()
|
String |
getRoleBaseDN()
|
String |
getRoleDescriptionAttribute()
|
String |
getRoleFilter()
|
String |
getRoleMemberAttribute()
|
String |
getRoleNameAttribute()
|
String |
getRoleObjectClass()
|
int |
getSearchTimeLimit()
|
String |
getUserDisplayNameAttribute()
|
String |
getUserEmailAttribute()
|
String |
getUserEncryptionMethod()
|
String |
getUserFilter()
|
String |
getUserFirstNameAttribute()
|
String |
getUserGroupMembershipsAttribute()
The attribute on a principal that specifies their group memberships (usually "memberOf"). |
String |
getUserLastNameAttribute()
|
String |
getUsername()
|
String |
getUserNameAttribute()
|
String |
getUserNameRdnAttribute()
|
String |
getUserObjectClass()
|
String |
getUserPasswordAttribute()
|
boolean |
isLocalGroupsEnabled()
Returns true if groups and group memberships are to be mutated only
(created, updated, deleted) in local storage, otherwise the mutations will be
propagated to the underlying LDAP implementation (full read-write LDAP groups). |
boolean |
isLocalUserStatusEnabled()
Returns true if user status are updated independently in the Crowd cache and the remote directory. |
boolean |
isNestedGroupsDisabled()
|
boolean |
isPagedResultsControl()
Checks if the configuration of the LDAP directory server uses paged results. |
boolean |
isPrimaryGroupSupported()
|
boolean |
isReferral()
Returns true if referrals should be followed. |
boolean |
isRelaxedDnStandardisation()
Whether we should use the more expensive but completely cross-directory compatible method for standardising DNs when mapping object DNs and and memberDNs (value = false); or if we can use a more
efficient but relaxed form of standardisation (value = true). |
boolean |
isRolesDisabled()
Returns true if roles should be disabled, as in some caching setups. |
protected boolean |
isSecureSSL()
If the connection must be secure. |
protected boolean |
isUsingConnectionPooling()
|
boolean |
isUsingUserMembershipAttribute()
Whether we should use the "memberOf" (or equivalent) attribute in LDAP queries. |
boolean |
isUsingUserMembershipAttributeForGroupMembership()
Whether we should use the "memberOf" (or equivalent) attribute when fetching the list of groups a user belongs to. |
void |
setAttributes(Map<String,String> attributes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONNECTION_INITIAL_CONTEXT_FACTORY
public static final String CONNECTION_SECURITY_AUTHENTICATION
public static final String CONNECTION_SSL_SECURITY_PROTOCOL
public static final String CONNECTION_FACTORY
public static final String CONNECTION_FACTORY_SSL_IMPL
public static final String CONNECTION_BINARY_ATTRIBUTES
| Constructor Detail |
|---|
public LDAPPropertiesMapperImpl(LDAPPropertiesHelper ldapPropertiesHelper)
| Method Detail |
|---|
public Map<String,String> getImplementations()
getImplementations in interface LDAPPropertiesMapperpublic Map<String,Properties> getConfigurationDetails()
properties associated
with that LDAP connector.
getConfigurationDetails in interface LDAPPropertiesMapperpublic Map<String,String> getEnvironment()
getEnvironment in interface LDAPPropertiesMapperprotected boolean isSecureSSL()
true if and only if the connection must be secure, otherwise false.protected boolean isUsingConnectionPooling()
protected boolean getBooleanKey(String key)
protected boolean getBooleanKey(String key,
boolean defaultValue)
protected String getPoolInitSize()
protected String getPoolPrefSize()
protected String getPoolMaxSize()
protected String getPoolTimeout()
protected String getConnectionTimeout()
protected String getReadTimeout()
public int getSearchTimeLimit()
getSearchTimeLimit in interface LDAPPropertiesMapperpublic Map<String,String> getAttributes()
getAttributes in interface LDAPPropertiesMapperpublic void setAttributes(Map<String,String> attributes)
setAttributes in interface LDAPPropertiesMapperpublic String getAttribute(String key)
getAttribute in interface LDAPPropertiesMapper
public String getBaseDN()
throws InvalidNameException
InvalidNameException
public String getGroupBaseDN()
throws InvalidNameException
InvalidNameExceptionpublic String getGroupFilter()
getGroupFilter in interface LDAPPropertiesMapperpublic String getConnectionURL()
getConnectionURL in interface LDAPPropertiesMapperpublic String getUsername()
getUsername in interface LDAPPropertiesMapperpublic String getPassword()
getPassword in interface LDAPPropertiesMapperpublic String getGroupNameAttribute()
getGroupNameAttribute in interface LDAPPropertiesMapperpublic String getObjectClassAttribute()
getObjectClassAttribute in interface LDAPPropertiesMapperpublic String getRoleFilter()
getRoleFilter in interface LDAPPropertiesMapper
public String getRoleBaseDN()
throws InvalidNameException
InvalidNameExceptionpublic String getRoleNameAttribute()
getRoleNameAttribute in interface LDAPPropertiesMapperpublic String getUserFilter()
getUserFilter in interface LDAPPropertiesMapperpublic String getPrincipalBaseDN()
public String getUserNameAttribute()
getUserNameAttribute in interface LDAPPropertiesMapperpublic String getUserNameRdnAttribute()
getUserNameRdnAttribute in interface LDAPPropertiesMapperpublic String getUserEmailAttribute()
getUserEmailAttribute in interface LDAPPropertiesMapperpublic String getUserGroupMembershipsAttribute()
LDAPPropertiesMapper
getUserGroupMembershipsAttribute in interface LDAPPropertiesMapperpublic String getGroupObjectClass()
getGroupObjectClass in interface LDAPPropertiesMapperpublic String getGroupDescriptionAttribute()
getGroupDescriptionAttribute in interface LDAPPropertiesMapperpublic String getGroupMemberAttribute()
getGroupMemberAttribute in interface LDAPPropertiesMapperpublic String getRoleObjectClass()
getRoleObjectClass in interface LDAPPropertiesMapperpublic String getRoleDescriptionAttribute()
getRoleDescriptionAttribute in interface LDAPPropertiesMapperpublic String getRoleMemberAttribute()
getRoleMemberAttribute in interface LDAPPropertiesMapperpublic String getUserObjectClass()
getUserObjectClass in interface LDAPPropertiesMapperpublic String getUserFirstNameAttribute()
getUserFirstNameAttribute in interface LDAPPropertiesMapperpublic String getUserLastNameAttribute()
getUserLastNameAttribute in interface LDAPPropertiesMapperpublic String getUserDisplayNameAttribute()
getUserDisplayNameAttribute in interface LDAPPropertiesMapperpublic String getUserPasswordAttribute()
getUserPasswordAttribute in interface LDAPPropertiesMapperpublic String getUserEncryptionMethod()
getUserEncryptionMethod in interface LDAPPropertiesMapperpublic boolean isPagedResultsControl()
isPagedResultsControl in interface LDAPPropertiesMappertrue if and only if paged results is enabled for the LDAP server, otherwise false.public int getPagedResultsSize()
getPagedResultsSize in interface LDAPPropertiesMapperpublic boolean isNestedGroupsDisabled()
isNestedGroupsDisabled in interface LDAPPropertiesMapperpublic boolean isUsingUserMembershipAttribute()
LDAPPropertiesMapper
isUsingUserMembershipAttribute in interface LDAPPropertiesMapperpublic boolean isUsingUserMembershipAttributeForGroupMembership()
LDAPPropertiesMapper
isUsingUserMembershipAttributeForGroupMembership in interface LDAPPropertiesMapperpublic boolean isReferral()
LDAPPropertiesMapper
isReferral in interface LDAPPropertiesMapperpublic boolean isRelaxedDnStandardisation()
LDAPPropertiesMapperfalse); or if we can use a more
efficient but relaxed form of standardisation (value = true).
See DNStandardiser for more information.
isRelaxedDnStandardisation in interface LDAPPropertiesMapperfalse if proper standardisation is required.public boolean isRolesDisabled()
LDAPPropertiesMapper
isRolesDisabled in interface LDAPPropertiesMapperpublic boolean isLocalGroupsEnabled()
LDAPPropertiesMappertrue if groups and group memberships are to be mutated only
(created, updated, deleted) in local storage, otherwise the mutations will be
propagated to the underlying LDAP implementation (full read-write LDAP groups).
isLocalGroupsEnabled in interface LDAPPropertiesMappertrue if using local storage for groups and membershipspublic boolean isLocalUserStatusEnabled()
LDAPPropertiesMappertrue if user status are updated independently in the Crowd cache and the remote directory.
Otherwise, user status is synchronised between the cache and the remote directory.
isLocalUserStatusEnabled in interface LDAPPropertiesMappertrue if user status in the cache is updated independently of the remote directory.public String getExternalIdAttribute()
LDAPPropertiesMapper
getExternalIdAttribute in interface LDAPPropertiesMapperpublic boolean isPrimaryGroupSupported()
isPrimaryGroupSupported in interface LDAPPropertiesMappertrue if the support for primary groups is enabled for this directory.public int getCacheSynchroniseInterval()
LDAPPropertiesMapper
getCacheSynchroniseInterval in interface LDAPPropertiesMapperpublic List<LdapTypeConfig> getLdapTypeConfigurations()
LDAPPropertiesMapper
getLdapTypeConfigurations in interface LDAPPropertiesMapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||