Method | Description | |
---|---|---|
__construct ( ) | ||
execute ( LdapTools\Operation\LdapOperationInterface $operation ) |
Method | Description | |
---|---|---|
connectIfNotBound ( LdapTools\Operation\LdapOperationInterface $operation ) | If a connection is not bound (such as a lazy bind config) we need to force a connection. | |
executeOperation ( LdapTools\Operation\LdapOperationInterface $operation, |
Execute a given operation with an operation handler. | |
getLogObject ( LdapTools\Operation\LdapOperationInterface $operation ) : |
Construct the LogOperation object for the operation. | |
getOperationHandler ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\Handler\OperationHandlerInterface | Find and return a supported handler for the operation. | |
idleReconnectIfNeeded ( LdapTools\Operation\LdapOperationInterface $operation ) | If the connection has been open as long as, or longer than, the configured idle reconnect time, then close and reconnect the LDAP connection. | |
resetLdapControls ( LdapTools\Operation\LdapOperationInterface $operation ) | Reset any specific LDAP controls used with this operation. This is to make sure they are not accidentally used in future operations when it is not expected. | |
setLdapControls ( LdapTools\Operation\LdapOperationInterface $operation ) | Set any specific LDAP controls for this operation. | |
shouldSkipOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : boolean | It's possible we need to skip an operation. For example, if a batch operation was only for attribute values that were converted into other operations (such as a modification where only operation generator converters are used). | |
switchServerIfNeeded ( string | null $currentServer, string | null $wantedServer, LdapTools\Operation\LdapOperationInterface $operation ) | Performs the logic for switching the LDAP server connection. |
protected connectIfNotBound ( LdapTools\Operation\LdapOperationInterface $operation ) | ||
$operation | LdapTools\Operation\LdapOperationInterface |
public execute ( LdapTools\Operation\LdapOperationInterface $operation ) | ||
$operation | LdapTools\Operation\LdapOperationInterface |
protected executeOperation ( LdapTools\Operation\LdapOperationInterface $operation, |
||
$operation | LdapTools\Operation\LdapOperationInterface | |
$log | ||
return | mixed |
protected getLogObject ( LdapTools\Operation\LdapOperationInterface $operation ) : |
||
$operation | LdapTools\Operation\LdapOperationInterface | |
return |
protected getOperationHandler ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\Handler\OperationHandlerInterface | ||
$operation | LdapTools\Operation\LdapOperationInterface | |
return | LdapTools\Operation\Handler\OperationHandlerInterface |
protected idleReconnectIfNeeded ( LdapTools\Operation\LdapOperationInterface $operation ) | ||
$operation | LdapTools\Operation\LdapOperationInterface |
protected resetLdapControls ( LdapTools\Operation\LdapOperationInterface $operation ) | ||
$operation | LdapTools\Operation\LdapOperationInterface |
protected setLdapControls ( LdapTools\Operation\LdapOperationInterface $operation ) | ||
$operation | LdapTools\Operation\LdapOperationInterface |
protected shouldSkipOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : boolean | ||
$operation | LdapTools\Operation\LdapOperationInterface | |
return | boolean |
protected switchServerIfNeeded ( string | null $currentServer, string | null $wantedServer, LdapTools\Operation\LdapOperationInterface $operation ) | ||
$currentServer | string | null | The server we are currently on. |
$wantedServer | string | null | The server we want the connection to be on. |
$operation | LdapTools\Operation\LdapOperationInterface |