|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.util.ldap.OwBasicLdapSchemaInterpreter
public abstract class OwBasicLdapSchemaInterpreter
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
Field Summary | |
---|---|
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 Summary | |
---|---|
OwBasicLdapSchemaInterpreter()
|
Method Summary | |
---|---|
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)
|
void |
init(Properties ldapProperties_p,
Properties adminLdapProperties_p)
Properties initialization method used to make schema specific initializations of the directory properties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.wewebu.ow.server.util.ldap.OwLdapSchemaInterpreter |
---|
findGroupsMatching, findUserMatching, getAllShortGroupNames, getShortGroupNames, getUserId, getUserLongName, getUserShortName |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public OwBasicLdapSchemaInterpreter()
Method Detail |
---|
public String findDistinguishedNameAnonymously(String user_p, OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException
OwLdapSchemaInterpreter
findDistinguishedNameAnonymously
in interface OwLdapSchemaInterpreter
user_p
- representing the login name for the user being searched
OwAuthenticationException
- the user that wants to login is not available in the LDAP
OwConfigurationException
- 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
OwLdapSchemaInterpreter
init
in interface OwLdapSchemaInterpreter
ldapProperties_p
- user based propertiesadminLdapProperties_p
- admin user based properties
OwConfigurationException
public OwUserInfo findUserByDNAnonymously(String strID_p, OwLdapConnection connection_p) throws OwException
OwLdapSchemaInterpreter
findUserByDNAnonymously
in interface OwLdapSchemaInterpreter
OwException
- Throws OwObjectNotFoundException if no user was found.public OwUserInfo findUserByIdAnonymously(String strID_p, OwLdapConnection connection_p) throws OwException
OwLdapSchemaInterpreter
findUserByIdAnonymously
in interface OwLdapSchemaInterpreter
OwException
- Throws OwObjectNotFoundException if no user was found.public OwUserInfo findUserByLoginAnonymously(String strID_p, OwLdapConnection connection_p) throws OwException
findUserByLoginAnonymously
in interface OwLdapSchemaInterpreter
OwException
public String getUserDisplayName(OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException, OwInvalidOperationException
OwLdapSchemaInterpreter
null
value.
getUserDisplayName
in interface OwLdapSchemaInterpreter
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 "displayName" attribute cannot be resolved.public String getUserDisplayName(String dname, OwLdapConnection connection) throws OwException
getUserDisplayName
in interface OwLdapSchemaInterpreter
dname
- User DN.
OwException
public String getRecordId(String dname, OwLdapConnection connection) throws OwException
getRecordId
in interface OwLdapSchemaInterpreter
OwException
protected abstract String getUserLoginAttribute(OwLdapConnection connection_p)
protected abstract String getObjectIdAttribute(OwLdapConnection connection_p)
protected abstract String getDisplayNameAttName(OwLdapConnection connection_p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |