|
||||||||||
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.mapper.ContainerContextMapper
public abstract class ContainerContextMapper
Given a container object, fetches all members.
Nested Class Summary | |
---|---|
static class |
ContainerContextMapper.MemberFetchType
|
Field Summary | |
---|---|
protected long |
directoryID
|
protected LDAPPropertiesMapper |
ldapPropertiesMapper
|
protected org.springframework.ldap.core.LdapTemplate |
ldapTemplate
|
protected org.apache.log4j.Logger |
logger
|
protected MemberAttributeParser |
memberParser
|
protected ContainerContextMapper.MemberFetchType |
populateMembers
|
Constructor Summary | |
---|---|
protected |
ContainerContextMapper(long directoryID,
org.springframework.ldap.core.LdapTemplate ldapTemplate,
LDAPPropertiesMapper ldapPropertiesMapper,
ContainerContextMapper.MemberFetchType populateMembers,
MemberAttributeParser memberParser)
|
Method Summary | |
---|---|
protected abstract java.lang.String |
getDescriptionAttribute()
Returns the name of the attribute that identifies the object description |
protected MemberFetcher |
getFetcher(ContainerContextMapper.MemberFetchType fetchType)
Creates the member fetcher - the object that's responsible for fetching and creating group/role members |
protected abstract java.lang.String |
getNameAttribute()
Returns the name of the attribute that identifies the object name |
protected abstract DirectoryContainer |
getNewContainer()
Responsible for creating the object used to represent the container within Crowd. |
DirectoryContainer |
mapFromContext(org.springframework.ldap.core.DirContextAdapter context,
ContainerContextMapper.MemberFetchType fetchMembers)
Allows us to override the populateMembers tag - this is so we can make sure that we *don't* recursively try to populate memberships when using the DirectFetcher. |
java.lang.Object |
mapFromContext(java.lang.Object ctx)
ContextMapper interface implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger logger
protected final long directoryID
protected final org.springframework.ldap.core.LdapTemplate ldapTemplate
protected final LDAPPropertiesMapper ldapPropertiesMapper
protected final MemberAttributeParser memberParser
protected final ContainerContextMapper.MemberFetchType populateMembers
Constructor Detail |
---|
protected ContainerContextMapper(long directoryID, org.springframework.ldap.core.LdapTemplate ldapTemplate, LDAPPropertiesMapper ldapPropertiesMapper, ContainerContextMapper.MemberFetchType populateMembers, MemberAttributeParser memberParser)
Method Detail |
---|
public java.lang.Object mapFromContext(java.lang.Object ctx)
mapFromContext
in interface org.springframework.ldap.core.ContextMapper
ctx
-
public DirectoryContainer mapFromContext(org.springframework.ldap.core.DirContextAdapter context, ContainerContextMapper.MemberFetchType fetchMembers)
context
- fetchMembers
-
protected abstract DirectoryContainer getNewContainer()
protected MemberFetcher getFetcher(ContainerContextMapper.MemberFetchType fetchType)
fetchType
- Determines which MemberFetcher we create - do we want all users, all users in all groups, or just
the groups?
protected abstract java.lang.String getNameAttribute()
protected abstract java.lang.String getDescriptionAttribute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |