public class LdaptiveSessionImpl extends Object implements LdapSession
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ENCRYPTABLE_LDAPTIVE_PROPERTIES
What ldaptive properties will be decrypted if their values are Morph files?
(We don't decrypt all properties because that would prevent the use of slashes in the property values)
|
| Constructor and Description |
|---|
LdaptiveSessionImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignDebug(boolean isDebug)
if we should capture debug info
|
void |
assignDebug(boolean isDebug,
StringBuilder theDebugLog)
if we should capture debug info
|
void |
authenticate(String ldapServerId,
String userDn,
String password)
Authenticate a user
|
boolean |
create(String ldapServerId,
LdapEntry ldapEntry)
Create entry.
|
void |
delete(String ldapServerId,
String dn)
Delete an entry if it exists.
|
StringBuilder |
getDebugLog()
debug log where lines are separated by newlines
|
void |
internal_modifyHelper(String ldapServerId,
String dn,
List<LdapModificationItem> ldapModificationItems)
modify attributes for an object.
|
boolean |
isDebug()
if we are debugging
|
<R> List<R> |
list(Class<R> returnType,
String ldapServerId,
String searchDn,
LdapSearchScope ldapSearchScope,
String filter,
String attributeName)
run a filter, for one attribute, and return a list of that attribute typecast as a certain type
note, if it is a multi-valued attributes, and there are multiple object results, it will be flattened into one list
|
List<LdapEntry> |
list(String ldapServerId,
String searchDn,
LdapSearchScope ldapSearchScope,
String filter,
String[] attributeNames,
Long sizeLimit)
Run a filter and return the results.
|
<R> Map<String,List<R>> |
listInObjects(Class<R> returnType,
String ldapServerId,
String searchDn,
LdapSearchScope ldapSearchScope,
String filter,
String attributeName)
run a filter, for one attribute, and return a map of the DN key to the value of list of that attribute typecast as a certain type
|
boolean |
move(String ldapServerId,
String oldDn,
String newDn)
Move an object to a new dn.
|
List<LdapEntry> |
read(String ldapServerId,
String searchDn,
List<String> dnList,
String[] attributeNames)
Get the following entries.
|
void |
refreshConnectionsIfNeeded(String ldapServerId)
Check if connections need to be refreshed due to config changes
|
boolean |
testConnection(String ldapServerId)
test a connection
|
public static final String[] ENCRYPTABLE_LDAPTIVE_PROPERTIES
public StringBuilder getDebugLog()
getDebugLog in interface LdapSessionpublic boolean isDebug()
isDebug in interface LdapSessionpublic void assignDebug(boolean isDebug,
StringBuilder theDebugLog)
isDebug - public void assignDebug(boolean isDebug)
assignDebug in interface LdapSessionisDebug - public <R> List<R> list(Class<R> returnType, String ldapServerId, String searchDn, LdapSearchScope ldapSearchScope, String filter, String attributeName)
LdapSessionlist in interface LdapSessionreturnType - note, only String.class is currently supportedLdapSession.list(java.lang.Class, java.lang.String, java.lang.String, edu.internet2.middleware.grouper.ldap.LdapSearchScope, java.lang.String, java.lang.String)public <R> Map<String,List<R>> listInObjects(Class<R> returnType, String ldapServerId, String searchDn, LdapSearchScope ldapSearchScope, String filter, String attributeName)
LdapSessionlistInObjects in interface LdapSessionreturnType - note, only String.class is currently supportedLdapSession.listInObjects(java.lang.Class, java.lang.String, java.lang.String, edu.internet2.middleware.grouper.ldap.LdapSearchScope, java.lang.String, java.lang.String)public List<LdapEntry> list(String ldapServerId, String searchDn, LdapSearchScope ldapSearchScope, String filter, String[] attributeNames, Long sizeLimit)
LdapSessionlist in interface LdapSessionLdapSession.list(java.lang.String, java.lang.String, edu.internet2.middleware.grouper.ldap.LdapSearchScope, java.lang.String, java.lang.String[], java.lang.Long)public List<LdapEntry> read(String ldapServerId, String searchDn, List<String> dnList, String[] attributeNames)
LdapSessionread in interface LdapSessionpublic void authenticate(String ldapServerId, String userDn, String password)
LdapSessionauthenticate in interface LdapSessionLdapSession.authenticate(java.lang.String, java.lang.String, java.lang.String)public void delete(String ldapServerId, String dn)
LdapSessiondelete in interface LdapSessionpublic boolean create(String ldapServerId, LdapEntry ldapEntry)
LdapSessioncreate in interface LdapSessionpublic boolean move(String ldapServerId, String oldDn, String newDn)
LdapSessionmove in interface LdapSessionpublic void internal_modifyHelper(String ldapServerId, String dn, List<LdapModificationItem> ldapModificationItems)
LdapSessioninternal_modifyHelper in interface LdapSessionpublic boolean testConnection(String ldapServerId)
LdapSessiontestConnection in interface LdapSessionpublic void refreshConnectionsIfNeeded(String ldapServerId)
LdapSessionrefreshConnectionsIfNeeded in interface LdapSessionCopyright © 2016 Internet2. All rights reserved.