|
||||||||||
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
com.wewebu.ow.server.util.ldap.OwStandardSchemaInterpreter
public class OwStandardSchemaInterpreter
Interpreter for X.500(96) User Schema for LDAPv3 (see RFC2256) and for variations of Unix Posix accounts based schemas. Both schemas use the inetOrgPerson object class for user directory entries (see RFC 2798).
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 |
---|
Fields inherited from class com.wewebu.ow.server.util.ldap.OwBasicLdapSchemaInterpreter |
---|
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 Summary | |
---|---|
OwStandardSchemaInterpreter()
|
Method Summary | |
---|---|
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)
|
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. |
Methods inherited from class com.wewebu.ow.server.util.ldap.OwBasicLdapSchemaInterpreter |
---|
findDistinguishedNameAnonymously, findUserByDNAnonymously, findUserByIdAnonymously, findUserByLoginAnonymously, getRecordId, getUserDisplayName, getUserDisplayName, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwStandardSchemaInterpreter()
Method Detail |
---|
public Collection<String> getAllShortGroupNames(OwLdapConnection connection_p) throws OwAuthenticationException, OwInvalidOperationException, OwConfigurationException
OwLdapSchemaInterpreter
OwAuthenticationException
- LDAP authorization Exception
OwInvalidOperationException
- if the operation could no be performed due to errors during LDAP access
OwConfigurationException
- possible cause: the LDAP connector is not set up correctly in the bootstrap.xml (Authentication node)public Collection<String> getShortGroupNames(OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException, OwInvalidOperationException
OwLdapSchemaInterpreter
OwAuthenticationException
- LDAP authorization Exception
OwConfigurationException
- 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 OwBasicLdapSchemaInterpreter
public String getUserShortName(OwLdapConnection connection_p) throws OwAuthenticationException, OwConfigurationException, OwInvalidOperationException
OwLdapSchemaInterpreter
null
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
OwLdapSchemaInterpreter
String
OwAuthenticationException
- LDAP authorization Exception
OwConfigurationException
- 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
OwLdapSchemaInterpreter
String
OwAuthenticationException
- LDAP authorization Exception
OwInvalidOperationException
- invalid LDAP operation
OwConfigurationException
- possible cause: the LDAP connector is not set up correctly in the bootstrap.xml (Authentication node)public OwObjectCollection findUserMatching(OwLdapConnection connection, String pattern) throws OwException
OwException
public OwObjectCollection findGroupsMatching(OwLdapConnection connection, String pattern) throws OwException
OwLdapSchemaInterpreter
OwUserInfo
representing groups that match the pattern.
OwException
protected String getObjectIdAttribute(OwLdapConnection connection_p)
getObjectIdAttribute
in class OwBasicLdapSchemaInterpreter
protected String getUserLoginAttribute(OwLdapConnection connection_p)
getUserLoginAttribute
in class OwBasicLdapSchemaInterpreter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |