‪TYPO3CMS  ‪main
TYPO3\CMS\Beuser\Controller\BackendUserController Class Reference
Inheritance diagram for TYPO3\CMS\Beuser\Controller\BackendUserController:
TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 __construct (protected readonly BackendUserRepository $backendUserRepository, protected readonly BackendUserGroupRepository $backendUserGroupRepository, protected readonly BackendUserSessionRepository $backendUserSessionRepository, protected readonly UserInformationService $userInformationService, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly BackendUriBuilder $backendUriBuilder, protected readonly IconFactory $iconFactory, protected readonly PageRenderer $pageRenderer, protected readonly FileMountRepository $fileMountRepository)
 
 processRequest (RequestInterface $request)
 
 initializeAction ()
 
 indexAction (?Demand $demand=null, int $currentPage=1, string $operation='')
 
 onlineAction ()
 
 showAction (int $uid=0)
 
 compareAction ()
 
 initiatePasswordResetAction (int $user)
 
 addToCompareListAction (int $uid)
 
 removeFromCompareListAction (int $uid, int $redirectToCompare=0)
 
 removeAllFromCompareListAction ()
 
 groupsAction (?BackendUserGroup $userGroupDto=null, int $currentPage=1, string $operation='')
 
 compareGroupsAction ()
 
 addGroupToCompareListAction (int $uid)
 
 removeGroupFromCompareListAction (int $uid, int $redirectToCompare=0)
 
 removeAllGroupsFromCompareListAction ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectResponseFactory (ResponseFactoryInterface $responseFactory)
 
 injectStreamFactory (StreamFactoryInterface $streamFactory)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 injectInternalFlashMessageService (FlashMessageService $flashMessageService)
 
 injectInternalExtensionService (ExtensionService $extensionService)
 
 initializeControllerArgumentsBaseValidators ()
 
 addFlashMessage (string $messageBody, string $messageTitle='', ContextualFeedbackSeverity $severity=ContextualFeedbackSeverity::OK, bool $storeInSession=true)
 
 throwStatus (int $statusCode, string $statusMessage='', ?string $content=null)
 

Protected Member Functions

 initializeView ()
 
 terminateBackendUserSessionAction (string $sessionId)
 
 filemountsAction (int $currentPage=1)
 
 getOnlineBackendUsers ()
 
 addMainMenu (string $currentAction)
 
 addToCompareList (string $listIdentifier, int $uid)
 
 removeFromCompareList (string $listIdentifier, int $uid)
 
 cleanCompareList (string $listIdentifier)
 
 getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
 renderAssetsForRequest (RequestInterface $request)
 
 resolveActionMethodName ()
 
 callActionMethod (RequestInterface $request)
 
 resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
 errorAction ()
 
 addErrorFlashMessage ()
 
 getErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
 getFlattenedValidationErrorMessage ()
 
 getFlashMessageQueue (string $identifier=null)
 
 redirect (?string $actionName, ?string $controllerName=null, ?string $extensionName=null, ?array $arguments=null, ?int $pageUid=null, $_=null, int $statusCode=303)
 
 redirectToUri (string|UriInterface $uri, $_=null, int $statusCode=303)
 
 addBaseUriIfNecessary (string $uri)
 
 mapRequestArgumentsToControllerArguments ()
 
 htmlResponse (string $html=null)
 
 jsonResponse (string $json=null)
 

Protected Attributes

ModuleData $moduleData = null
 
ModuleTemplate $moduleTemplate
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
HashService $hashService
 
ReflectionService $reflectionService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
RequestInterface $request
 
UriBuilder $uriBuilder
 
array $settings
 
ValidatorResolver $validatorResolver
 
Arguments $arguments
 
ConfigurationManagerInterface $configurationManager
 

Detailed Description

Backend module user and user group administration controller.

This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.

Definition at line 56 of file BackendUserController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Beuser\Controller\BackendUserController::__construct ( protected readonly BackendUserRepository  $backendUserRepository,
protected readonly BackendUserGroupRepository  $backendUserGroupRepository,
protected readonly BackendUserSessionRepository  $backendUserSessionRepository,
protected readonly UserInformationService  $userInformationService,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory,
protected readonly BackendUriBuilder  $backendUriBuilder,
protected readonly IconFactory  $iconFactory,
protected readonly PageRenderer  $pageRenderer,
protected readonly FileMountRepository  $fileMountRepository 
)

Definition at line 61 of file BackendUserController.php.

Member Function Documentation

◆ addGroupToCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::addGroupToCompareListAction ( int  $uid)

◆ addMainMenu()

◆ addToCompareList()

TYPO3\CMS\Beuser\Controller\BackendUserController::addToCompareList ( string  $listIdentifier,
int  $uid 
)
protected

◆ addToCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::addToCompareListAction ( int  $uid)

Attaches one backend user to the compare list

Definition at line 330 of file BackendUserController.php.

References TYPO3\CMS\Beuser\Controller\BackendUserController\addToCompareList().

◆ cleanCompareList()

TYPO3\CMS\Beuser\Controller\BackendUserController::cleanCompareList ( string  $listIdentifier)
protected

◆ compareAction()

◆ compareGroupsAction()

◆ filemountsAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::filemountsAction ( int  $currentPage = 1)
protected

◆ getBackendUser()

◆ getOnlineBackendUsers()

TYPO3\CMS\Beuser\Controller\BackendUserController::getOnlineBackendUsers ( )
protected

Create an array with the uids of online users as the keys [ 1 => true, 5 => true ]

Definition at line 530 of file BackendUserController.php.

Referenced by TYPO3\CMS\Beuser\Controller\BackendUserController\compareAction(), and TYPO3\CMS\Beuser\Controller\BackendUserController\indexAction().

◆ groupsAction()

◆ indexAction()

◆ initializeAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::initializeAction ( )

Init module state. This isn't done within __construct() since the controller object is only created once in extbase when multiple actions are called in one call. When those change module state, the second action would see old state.

Reimplemented from TYPO3\CMS\Extbase\Mvc\Controller\ActionController.

Definition at line 104 of file BackendUserController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\getFlashMessageQueue(), and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

◆ initializeView()

TYPO3\CMS\Beuser\Controller\BackendUserController::initializeView ( )
protected

Assign default variables to ModuleTemplate view

Definition at line 115 of file BackendUserController.php.

References $GLOBALS.

◆ initiatePasswordResetAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::initiatePasswordResetAction ( int  $user)

Starts the password reset process for a selected user.

Definition at line 301 of file BackendUserController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\addFlashMessage(), and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

◆ onlineAction()

◆ processRequest()

◆ removeAllFromCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeAllFromCompareListAction ( )

◆ removeAllGroupsFromCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeAllGroupsFromCompareListAction ( )

Removes all backend user groups from the compare list

Definition at line 485 of file BackendUserController.php.

References TYPO3\CMS\Beuser\Controller\BackendUserController\cleanCompareList(), and TYPO3\CMS\Extbase\Mvc\Controller\ActionController\redirect().

◆ removeFromCompareList()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeFromCompareList ( string  $listIdentifier,
int  $uid 
)
protected

◆ removeFromCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeFromCompareListAction ( int  $uid,
int  $redirectToCompare = 0 
)

◆ removeGroupFromCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeGroupFromCompareListAction ( int  $uid,
int  $redirectToCompare = 0 
)

◆ showAction()

◆ terminateBackendUserSessionAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::terminateBackendUserSessionAction ( string  $sessionId)
protected

Terminate BackendUser session and logout corresponding client Redirects to onlineAction with message

Definition at line 361 of file BackendUserController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\addFlashMessage(), and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

Member Data Documentation

◆ $moduleData

ModuleData TYPO3\CMS\Beuser\Controller\BackendUserController::$moduleData = null
protected

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Beuser\Controller\BackendUserController::$moduleTemplate
protected

Definition at line 59 of file BackendUserController.php.