public abstract class OwBasicLdapSchemaInterpreter extends Object implements OwLdapSchemaInterpreter
Common base class for LDAP schema 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
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DISTINGUISHED_NAME |
protected static String |
GROUP_REFERENCE_ATTRIBUTE_PROPERTY |
protected static String |
GROUPS_DIRECTORY_PROPERTY |
protected static String |
GROUPS_OBJECT_CLASS_PROPERTY |
protected static String |
LDAP_COUNT_LIMIT_PROPERTY |
protected static String |
LOGIN_QUERY_NAME |
protected static String |
NAME_LONGNAME_PROPERTY |
protected static String |
NAME_MEMBER_OF_PROPERTY |
protected static String |
NAME_OBJECTGUID_PROPERTY |
protected static String |
NAME_SHORTNAME_PROPERTY |
protected static String |
USER_DISPLAY_NAME_PROPERTY |
protected static String |
USER_GROUP_REFERENCE_PROPERTY |
| Constructor and Description |
|---|
OwBasicLdapSchemaInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
String |
findDistinguishedNameAnonymously(String user_p,
OwLdapConnection connection_p)
Returns the full distinguished name for the login user to use for authentication later.
|
OwUserInfo |
findUserByDNAnonymously(String strID_p,
OwLdapConnection connection_p)
Finds a user by its Distinguished Name.
|
OwUserInfo |
findUserByIdAnonymously(String strID_p,
OwLdapConnection connection_p)
Finds a user by its ID.
|
OwUserInfo |
findUserByLoginAnonymously(String strID_p,
OwLdapConnection connection_p) |
protected abstract String |
getDisplayNameAttName(OwLdapConnection connection_p) |
protected abstract String |
getObjectIdAttribute(OwLdapConnection connection_p) |
String |
getRecordId(String dname,
OwLdapConnection connection) |
String |
getUserDisplayName(OwLdapConnection connection_p)
Get the user display name, or a
null value. |
String |
getUserDisplayName(String dname,
OwLdapConnection connection) |
protected abstract String |
getUserLoginAttribute(OwLdapConnection connection_p) |
String |
getUserLongin(String dname,
OwLdapConnection connection) |
void |
init(Properties ldapProperties_p,
Properties adminLdapProperties_p)
Properties initialization method used to make schema specific initializations of the directory properties
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindGroupsMatching, findUserMatching, getAllShortGroupNames, getShortGroupNames, getUserId, getUserLongName, getUserShortNameprotected static final String LOGIN_QUERY_NAME
protected static final String DISTINGUISHED_NAME
protected static final String GROUPS_DIRECTORY_PROPERTY
protected static final String LDAP_COUNT_LIMIT_PROPERTY
protected static final String USER_DISPLAY_NAME_PROPERTY
protected static final String NAME_MEMBER_OF_PROPERTY
protected static final String NAME_OBJECTGUID_PROPERTY
protected static final String NAME_SHORTNAME_PROPERTY
protected static final String NAME_LONGNAME_PROPERTY
protected static final String GROUPS_OBJECT_CLASS_PROPERTY
protected static final String GROUP_REFERENCE_ATTRIBUTE_PROPERTY
protected static final String USER_GROUP_REFERENCE_PROPERTY
public String findDistinguishedNameAnonymously(String user_p, OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException
OwLdapSchemaInterpreterfindDistinguishedNameAnonymously in interface OwLdapSchemaInterpreteruser_p - representing the login name for the user being searchedOwAuthenticationException - the user that wants to login is not available in the LDAPOwConfigurationException - 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 OwLdapSchemaInterpreterldapProperties_p - user based propertiesadminLdapProperties_p - admin user based propertiesOwConfigurationExceptionpublic OwUserInfo findUserByDNAnonymously(String strID_p, OwLdapConnection connection_p) throws OwException
OwLdapSchemaInterpreterfindUserByDNAnonymously in interface OwLdapSchemaInterpreterOwException - Throws OwObjectNotFoundException if no user was found.public OwUserInfo findUserByIdAnonymously(String strID_p, OwLdapConnection connection_p) throws OwException
OwLdapSchemaInterpreterfindUserByIdAnonymously in interface OwLdapSchemaInterpreterOwException - Throws OwObjectNotFoundException if no user was found.public OwUserInfo findUserByLoginAnonymously(String strID_p, OwLdapConnection connection_p) throws OwException
findUserByLoginAnonymously in interface OwLdapSchemaInterpreterOwExceptionpublic String getUserDisplayName(OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException, OwInvalidOperationException
OwLdapSchemaInterpreternull value.getUserDisplayName in interface OwLdapSchemaInterpreternull 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 "displayName" attribute cannot be resolved.public String getUserDisplayName(String dname, OwLdapConnection connection) throws OwException
getUserDisplayName in interface OwLdapSchemaInterpreterdname - User DN.OwExceptionpublic String getUserLongin(String dname, OwLdapConnection connection) throws OwException
getUserLongin in interface OwLdapSchemaInterpreterOwExceptionpublic String getRecordId(String dname, OwLdapConnection connection) throws OwException
getRecordId in interface OwLdapSchemaInterpreterOwExceptionprotected abstract String getUserLoginAttribute(OwLdapConnection connection_p)
protected abstract String getObjectIdAttribute(OwLdapConnection connection_p)
protected abstract String getDisplayNameAttName(OwLdapConnection connection_p)
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.