public class OwADSchemaInterpreter extends OwBasicLdapSchemaInterpreter
Microsoft's Active Directory schema LDAP interpreter.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
DISTINGUISHED_NAME, GROUP_REFERENCE_ATTRIBUTE_PROPERTY, GROUPS_DIRECTORY_PROPERTY, GROUPS_OBJECT_CLASS_PROPERTY, LDAP_COUNT_LIMIT_PROPERTY, LOGIN_QUERY_NAME, NAME_LONGNAME_PROPERTY, NAME_MEMBER_OF_PROPERTY, NAME_OBJECTGUID_PROPERTY, NAME_SHORTNAME_PROPERTY, USER_DISPLAY_NAME_PROPERTY, USER_GROUP_REFERENCE_PROPERTY| Constructor and Description |
|---|
OwADSchemaInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
OwObjectCollection |
findGroupsMatching(OwLdapConnection connection,
String pattern)
Search for groups that match the pattern.
|
OwObjectCollection |
findUserMatching(OwLdapConnection connection,
String pattern) |
Collection<String> |
getAllShortGroupNames(OwLdapConnection connection_p)
Reads all groups from the LDAP (e.g.
|
protected String |
getDisplayNameAttName(OwLdapConnection connection_p) |
protected String |
getObjectIdAttribute(OwLdapConnection connection_p) |
String |
getRecordId(String dname,
OwLdapConnection connection) |
Collection<String> |
getShortGroupNames(OwLdapConnection connection_p)
Returns the group names of the user.
|
String |
getUserId(OwLdapConnection connection_p)
Returns a unique ID of the user
|
protected String |
getUserLoginAttribute(OwLdapConnection connection_p) |
String |
getUserLongName(OwLdapConnection connection_p)
Gets the user's long name
|
String |
getUserShortName(OwLdapConnection connection_p)
Get the user short name, or a
null value. |
void |
init(Properties ldapProperties_p,
Properties adminLdapProperties_p)
Properties initialization method used to make schema specific initializations of the directory properties
|
findDistinguishedNameAnonymously, findUserByDNAnonymously, findUserByIdAnonymously, findUserByLoginAnonymously, getUserDisplayName, getUserDisplayName, getUserLonginpublic Collection<String> getAllShortGroupNames(OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException, OwInvalidOperationException
OwLdapSchemaInterpreterOwAuthenticationException - LDAP authorization ExceptionOwConfigurationException - possible cause: the LDAP connector is not set up correctly in the bootstrap.xml (Authentication node)OwInvalidOperationException - if the operation could no be performed due to errors during LDAP accesspublic Collection<String> getShortGroupNames(OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException, OwInvalidOperationException
OwLdapSchemaInterpreterOwAuthenticationException - LDAP authorization ExceptionOwConfigurationException - possible cause: the LDAP connector is not set up correctly in the bootstrap.xml (Authentication node)OwInvalidOperationException - if the operation could no be performed due to errors during LDAP accessprotected String getDisplayNameAttName(OwLdapConnection connection_p)
getDisplayNameAttName in class OwBasicLdapSchemaInterpreterpublic String getUserShortName(OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException, OwInvalidOperationException
OwLdapSchemaInterpreternull value.null value.OwAuthenticationException - thrown when the user is not authenticated.OwConfigurationException - possible cause: the LDAP connector is not set up correctly in the bootstrap.xml (Authentication node)OwInvalidOperationException - thrown when the "name" attribute cannot be resolved.public String getUserLongName(OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException, OwInvalidOperationException
OwLdapSchemaInterpreterStringOwAuthenticationException - LDAP authorization ExceptionOwConfigurationException - possible cause: the LDAP connector is not set up correctly in the bootstrap.xml (Authentication node)OwInvalidOperationException - invalid LDAP operationpublic String getUserId(OwLdapConnection connection_p) throws OwAuthenticationException, OwInvalidOperationException, OwConfigurationException
OwLdapSchemaInterpreterStringOwAuthenticationException - LDAP authorization ExceptionOwInvalidOperationException - invalid LDAP operationOwConfigurationException - possible cause: the LDAP connector is not set up correctly in the bootstrap.xml (Authentication node)public void init(Properties ldapProperties_p, Properties adminLdapProperties_p) throws OwConfigurationException
OwLdapSchemaInterpreterinit in interface OwLdapSchemaInterpreterinit in class OwBasicLdapSchemaInterpreterldapProperties_p - user based propertiesadminLdapProperties_p - admin user based propertiesOwConfigurationExceptionprotected String getObjectIdAttribute(OwLdapConnection connection_p)
getObjectIdAttribute in class OwBasicLdapSchemaInterpreterpublic OwObjectCollection findUserMatching(OwLdapConnection connection, String pattern) throws OwException
OwExceptionpublic OwObjectCollection findGroupsMatching(OwLdapConnection connection, String pattern) throws OwException
OwLdapSchemaInterpreterOwUserInfo representing groups that match the pattern.OwExceptionpublic String getRecordId(String dname, OwLdapConnection connection) throws OwException
getRecordId in interface OwLdapSchemaInterpretergetRecordId in class OwBasicLdapSchemaInterpreterOwExceptionprotected String getUserLoginAttribute(OwLdapConnection connection_p)
getUserLoginAttribute in class OwBasicLdapSchemaInterpreterCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.