PHP 클래스 LdapTools\Operation\Invoker\LdapOperationInvoker

저자: Chad Sikorra ([email protected])
상속: implements LdapTools\Operation\Invoker\LdapOperationInvokerInterface, use trait LdapOperationInvokerTrait
파일 보기 프로젝트 열기: ldaptools/ldaptools

공개 메소드들

메소드 설명
__construct ( )
execute ( LdapTools\Operation\LdapOperationInterface $operation )

보호된 메소드들

메소드 설명
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, LogOperation $log = null ) : mixed Execute a given operation with an operation handler.
getLogObject ( LdapTools\Operation\LdapOperationInterface $operation ) : LogOperation | null 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.

메소드 상세

__construct() 공개 메소드

public __construct ( )

connectIfNotBound() 보호된 메소드

If a connection is not bound (such as a lazy bind config) we need to force a connection.
protected connectIfNotBound ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

execute() 공개 메소드

public execute ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

executeOperation() 보호된 메소드

Execute a given operation with an operation handler.
protected executeOperation ( LdapTools\Operation\LdapOperationInterface $operation, LogOperation $log = null ) : mixed
$operation LdapTools\Operation\LdapOperationInterface
$log LdapTools\Log\LogOperation
리턴 mixed

getLogObject() 보호된 메소드

Construct the LogOperation object for the operation.
protected getLogObject ( LdapTools\Operation\LdapOperationInterface $operation ) : LogOperation | null
$operation LdapTools\Operation\LdapOperationInterface
리턴 LdapTools\Log\LogOperation | null

getOperationHandler() 보호된 메소드

Find and return a supported handler for the operation.
protected getOperationHandler ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\Handler\OperationHandlerInterface
$operation LdapTools\Operation\LdapOperationInterface
리턴 LdapTools\Operation\Handler\OperationHandlerInterface

idleReconnectIfNeeded() 보호된 메소드

If the connection has been open as long as, or longer than, the configured idle reconnect time, then close and reconnect the LDAP connection.
protected idleReconnectIfNeeded ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

resetLdapControls() 보호된 메소드

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.
protected resetLdapControls ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

setLdapControls() 보호된 메소드

Set any specific LDAP controls for this operation.
protected setLdapControls ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

shouldSkipOperation() 보호된 메소드

In that case the resulting batch operation will be empty but will have generated post/pre operations for it still. The most common scenario is group membership only changes.
protected shouldSkipOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : boolean
$operation LdapTools\Operation\LdapOperationInterface
리턴 boolean

switchServerIfNeeded() 보호된 메소드

Performs the logic for switching the LDAP server connection.
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