|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.security.sync.ldap.LDAPUserRegistry
public class LDAPUserRegistry
A UserRegistry implementation with the ability to query Alfresco-like descriptions of users and groups from
an LDAP directory, optionally restricted to those modified since a certain time.
| Nested Class Summary | |
|---|---|
class |
LDAPUserRegistry.PersonCollection
Wraps the LDAP user query as a virtual Collection. |
protected static interface |
LDAPUserRegistry.SearchCallback
An interface for callbacks passed to the LDAPUserRegistry.processQuery(SearchCallback, String, String, String[]) method. |
| Constructor Summary | |
|---|---|
LDAPUserRegistry()
Instantiates a new lDAP user registry. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
java.util.Collection |
getGroupNames()
Gets the names of all groups in the registry. |
java.util.Collection |
getGroups(java.util.Date modifiedSince)
Gets descriptions of all the groups in the user registry or all those changed since a certain date. |
java.util.Set |
getPersonMappedProperties()
Gets the set of property names that are auto-mapped by this user registry. |
java.util.Collection |
getPersonNames()
Gets the names of all persons in the registry. |
java.util.Collection |
getPersons(java.util.Date modifiedSince)
Gets descriptions of all the persons (users) in the user registry or all those changed since a certain date. |
boolean |
isActive()
Determines whether this bean is active. |
java.lang.String |
resolveDistinguishedName(java.lang.String userId)
Resolves a user ID to a distinguished name. |
void |
setActive(boolean active)
Controls whether this bean is active. |
void |
setAttributeBatchSize(int attributeBatchSize)
Sets the attribute batch size. |
void |
setEnableProgressEstimation(boolean enableProgressEstimation)
Controls whether progress estimation is enabled. |
void |
setErrorOnDuplicateGID(boolean errorOnDuplicateGID)
Decides whether to error on duplicate group IDs. |
void |
setErrorOnMissingGID(boolean errorOnMissingGID)
Decides whether to error on missing group IDs. |
void |
setErrorOnMissingMembers(boolean errorOnMissingMembers)
Decides whether to error on missing group members. |
void |
setErrorOnMissingUID(boolean errorOnMissingUID)
Decides whether to error on missing user IDs. |
void |
setGroupAttributeDefaults(java.util.Map groupAttributeDefaults)
Sets the group attribute defaults. |
void |
setGroupAttributeMapping(java.util.Map groupAttributeMapping)
Sets the group attribute mapping. |
void |
setGroupDifferentialQuery(java.lang.String groupDifferentialQuery)
Sets the group differential query. |
void |
setGroupIdAttributeName(java.lang.String groupIdAttributeName)
Sets the group id attribute name. |
void |
setGroupQuery(java.lang.String groupQuery)
Sets the group query. |
void |
setGroupSearchBase(java.lang.String groupSearchBase)
Sets the group search base. |
void |
setGroupType(java.lang.String groupType)
Sets the group type. |
void |
setLDAPInitialDirContextFactory(LDAPInitialDirContextFactory ldapInitialDirContextFactory)
Sets the LDAP initial dir context factory. |
void |
setMemberAttribute(java.lang.String memberAttribute)
Sets the member attribute name. |
void |
setModifyTimestampAttributeName(java.lang.String modifyTimestampAttributeName)
Sets the modification timestamp attribute name. |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Sets the namespace service. |
void |
setPersonAttributeDefaults(java.util.Map personAttributeDefaults)
Sets the person attribute defaults. |
void |
setPersonAttributeMapping(java.util.Map personAttributeMapping)
Sets the person attribute mapping. |
void |
setPersonDifferentialQuery(java.lang.String personDifferentialQuery)
Sets the person differential query. |
void |
setPersonQuery(java.lang.String personQuery)
Sets the person query. |
void |
setPersonType(java.lang.String personType)
Sets the person type. |
void |
setQueryBatchSize(int queryBatchSize)
Sets the query batch size. |
void |
setTimestampFormat(java.lang.String timestampFormat)
Sets the timestamp format. |
void |
setUserIdAttributeName(java.lang.String userIdAttributeName)
Sets the user id attribute name. |
void |
setUserSearchBase(java.lang.String userSearchBase)
Sets the user search base. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LDAPUserRegistry()
| Method Detail |
|---|
public void setActive(boolean active)
active - true if this bean is activepublic void setEnableProgressEstimation(boolean enableProgressEstimation)
enableProgressEstimation - true if progress estimation is enabledpublic void setGroupIdAttributeName(java.lang.String groupIdAttributeName)
groupIdAttributeName - the group id attribute namepublic void setGroupQuery(java.lang.String groupQuery)
groupQuery - the group querypublic void setGroupDifferentialQuery(java.lang.String groupDifferentialQuery)
groupDifferentialQuery - the group differential querypublic void setPersonQuery(java.lang.String personQuery)
personQuery - the person querypublic void setPersonDifferentialQuery(java.lang.String personDifferentialQuery)
personDifferentialQuery - the person differential querypublic void setGroupType(java.lang.String groupType)
groupType - the group typepublic void setMemberAttribute(java.lang.String memberAttribute)
memberAttribute - the member attribute namepublic void setPersonType(java.lang.String personType)
personType - the person typepublic void setGroupSearchBase(java.lang.String groupSearchBase)
groupSearchBase - the group search basepublic void setUserSearchBase(java.lang.String userSearchBase)
userSearchBase - the user search basepublic void setUserIdAttributeName(java.lang.String userIdAttributeName)
userIdAttributeName - the user id attribute namepublic void setModifyTimestampAttributeName(java.lang.String modifyTimestampAttributeName)
modifyTimestampAttributeName - the modification timestamp attribute namepublic void setTimestampFormat(java.lang.String timestampFormat)
timestampFormat - the timestamp format
public void setErrorOnMissingMembers(boolean errorOnMissingMembers)
errorOnMissingMembers - true if we should error on missing group memberspublic void setErrorOnMissingGID(boolean errorOnMissingGID)
errorOnMissingGID - true if we should error on missing group IDspublic void setErrorOnMissingUID(boolean errorOnMissingUID)
errorOnMissingUID - true if we should error on missing user IDspublic void setErrorOnDuplicateGID(boolean errorOnDuplicateGID)
errorOnDuplicateGID - true if we should error on duplicate group IDspublic void setLDAPInitialDirContextFactory(LDAPInitialDirContextFactory ldapInitialDirContextFactory)
ldapInitialDirContextFactory - the new LDAP initial dir context factorypublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - the namespace servicepublic void setPersonAttributeDefaults(java.util.Map personAttributeDefaults)
personAttributeDefaults - the person attribute defaultspublic void setPersonAttributeMapping(java.util.Map personAttributeMapping)
personAttributeMapping - the person attribute mappingpublic void setGroupAttributeDefaults(java.util.Map groupAttributeDefaults)
groupAttributeDefaults - the group attribute defaultspublic void setGroupAttributeMapping(java.util.Map groupAttributeMapping)
groupAttributeMapping - the group attribute mappingpublic void setQueryBatchSize(int queryBatchSize)
queryBatchSize - If positive, indicates that RFC 2696 paged results should be used to split query results into batches
of the specified size. Overcomes any size limits imposed by the LDAP server.public void setAttributeBatchSize(int attributeBatchSize)
attributeBatchSize - If positive, indicates that range retrieval should be used to fetch multi-valued attributes (such as
member) in batches of the specified size. Overcomes any size limits imposed by the LDAP server.public boolean isActive()
ActivateableBean
isActive in interface ActivateableBeantrue if this bean is active
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic java.util.Set getPersonMappedProperties()
UserRegistry
getPersonMappedProperties in interface UserRegistrypublic java.util.Collection getPersons(java.util.Date modifiedSince)
UserRegistry
getPersons in interface UserRegistrymodifiedSince - if non-null, then only descriptions of users modified since this date should be returned; if
null then descriptions of all users should be returned.
Collection of NodeDescriptions of all the persons (users) in the user registry or all
those changed since a certain date. The description properties should correspond to those of an Alfresco
person node.public java.util.Collection getPersonNames()
UserRegistry
getPersonNames in interface UserRegistrypublic java.util.Collection getGroupNames()
UserRegistry
getGroupNames in interface UserRegistrypublic java.util.Collection getGroups(java.util.Date modifiedSince)
UserRegistry
getGroups in interface UserRegistrymodifiedSince - if non-null, then only descriptions of groups modified since this date should be returned; if
null then descriptions of all groups should be returned.
Collection of NodeDescriptions of all the groups in the user registry or all those
changed since a certain date. The description properties should correspond to those of an Alfresco
authority node.
public java.lang.String resolveDistinguishedName(java.lang.String userId)
throws org.alfresco.repo.security.authentication.AuthenticationException
LDAPNameResolver
resolveDistinguishedName in interface LDAPNameResolveruserId - the user id
org.alfresco.repo.security.authentication.AuthenticationException - if the user ID cannot be resolved
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||