|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.directory.connector.spring.RemotePrincipalAttributesMapper
public class RemotePrincipalAttributesMapper
Maps an LDAP Attributes
object to the Crowd {RemotePrincipal} object type, and vice versa.
Constructor Summary | |
---|---|
RemotePrincipalAttributesMapper()
|
|
RemotePrincipalAttributesMapper(LDAPPropertiesMapper ldapPropertiesMapper)
|
|
RemotePrincipalAttributesMapper(LDAPPropertiesMapper ldapPropertiesMapper,
boolean loadAttributes)
|
Method Summary | |
---|---|
protected java.util.List |
mapAttribute(javax.naming.directory.Attribute directoryAttribute)
Translates an LDAP attribute into a list of Strings. |
javax.naming.directory.Attributes |
mapAttributesFromRemotePrincipal(RemotePrincipal remotePrincipal)
Creates an LDAP Attributes object containing the information in the RemotePrincipal object. |
java.lang.Object |
mapFromAttributes(javax.naming.directory.Attributes attributes)
Maps an LDAP object to the Crowd {RemotePrincipal} object type. |
protected void |
mapRemotePrincipalFromAttribute(java.lang.String remotePrincipalAttributeName,
RemotePrincipal remotePrincipal,
java.lang.String directoryAttributeName,
javax.naming.directory.Attributes directoryAttributes)
Obtains a single value for a {RemotePrincipal} from an LDAP attribute. |
RemotePrincipal |
mapRemotePrincipalFromAttributes(javax.naming.directory.Attributes directoryAttributes)
Creates a RemotePrincipal object containing the information in the Attributes object. |
void |
setLdapPropertiesMapper(LDAPPropertiesMapper ldapPropertiesMapper)
|
void |
setLoadAttributes(boolean loadAttributes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemotePrincipalAttributesMapper()
public RemotePrincipalAttributesMapper(LDAPPropertiesMapper ldapPropertiesMapper)
public RemotePrincipalAttributesMapper(LDAPPropertiesMapper ldapPropertiesMapper, boolean loadAttributes)
Method Detail |
---|
public void setLdapPropertiesMapper(LDAPPropertiesMapper ldapPropertiesMapper)
public void setLoadAttributes(boolean loadAttributes)
public java.lang.Object mapFromAttributes(javax.naming.directory.Attributes attributes) throws org.springframework.ldap.NamingException
mapFromAttributes
in interface org.springframework.ldap.core.AttributesMapper
attributes
- The principal from the LDAP server to map into a {RemotePrincipal} object.
org.springframework.ldap.NamingException
- A mapping exception occured.AttributesMapper.mapFromAttributes(javax.naming.directory.Attributes)
public javax.naming.directory.Attributes mapAttributesFromRemotePrincipal(RemotePrincipal remotePrincipal) throws org.springframework.ldap.NamingException
Attributes
object containing the information in the RemotePrincipal
object.
remotePrincipal
- The object to take the values from
org.springframework.ldap.NamingException
public RemotePrincipal mapRemotePrincipalFromAttributes(javax.naming.directory.Attributes directoryAttributes) throws org.springframework.ldap.NamingException
RemotePrincipal
object containing the information in the Attributes
object.
directoryAttributes
- The directory-specific {Attributes} object to take the values from
org.springframework.ldap.NamingException
protected void mapRemotePrincipalFromAttribute(java.lang.String remotePrincipalAttributeName, RemotePrincipal remotePrincipal, java.lang.String directoryAttributeName, javax.naming.directory.Attributes directoryAttributes) throws org.springframework.ldap.NamingException
remotePrincipalAttributeName
- The name of the attribute whose value is being obtainedremotePrincipal
- The object to place the attribute into.directoryAttributeName
- The name of the attribute in the target directorydirectoryAttributes
- The attributes object to fetch the the attribute from
org.springframework.ldap.NamingException
protected java.util.List mapAttribute(javax.naming.directory.Attribute directoryAttribute) throws org.springframework.ldap.NamingException
directoryAttribute
- LDAP attribute.
org.springframework.ldap.NamingException
- An LDAP name exception occured.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |