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, getUserLongin
public Collection<String> getAllShortGroupNames(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 accesspublic 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 void init(Properties ldapProperties_p, Properties adminLdapProperties_p) throws OwConfigurationException
OwLdapSchemaInterpreter
init
in interface OwLdapSchemaInterpreter
init
in class OwBasicLdapSchemaInterpreter
ldapProperties_p
- user based propertiesadminLdapProperties_p
- admin user based propertiesOwConfigurationException
protected String getObjectIdAttribute(OwLdapConnection connection_p)
getObjectIdAttribute
in class OwBasicLdapSchemaInterpreter
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
public String getRecordId(String dname, OwLdapConnection connection) throws OwException
getRecordId
in interface OwLdapSchemaInterpreter
getRecordId
in class OwBasicLdapSchemaInterpreter
OwException
protected String getUserLoginAttribute(OwLdapConnection connection_p)
getUserLoginAttribute
in class OwBasicLdapSchemaInterpreter
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.