public class OwStandardSchemaInterpreter extends OwBasicLdapSchemaInterpreter
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
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 |
---|
OwStandardSchemaInterpreter() |
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) |
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. |
findDistinguishedNameAnonymously, findUserByDNAnonymously, findUserByIdAnonymously, findUserByLoginAnonymously, getRecordId, getUserDisplayName, getUserDisplayName, getUserLongin, init
public Collection<String> getAllShortGroupNames(OwLdapConnection connection_p) throws OwAuthenticationException, OwInvalidOperationException, OwConfigurationException
OwLdapSchemaInterpreter
OwAuthenticationException
- LDAP authorization ExceptionOwInvalidOperationException
- if the operation could no be performed due to errors during LDAP accessOwConfigurationException
- 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 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 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 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
OwLdapSchemaInterpreter
String
OwAuthenticationException
- LDAP authorization ExceptionOwInvalidOperationException
- invalid LDAP operationOwConfigurationException
- 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
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.