UsersController
class UsersController extends AbstractModuleController (View source)
The Neos User Admin module controller that allows for managing Neos users
Traits
A trait to add backend translation based on the backend users settings
Properties
protected Service | $_localizationService | from BackendUserTranslationTrait | |
protected UserService | $_userService | from BackendUserTranslationTrait | |
protected array | $moduleConfiguration | from AbstractModuleController | |
protected PrivilegeManagerInterface | $privilegeManager | ||
protected PolicyService | $policyService | ||
protected UserService | $userService | ||
protected User | $currentUser | ||
protected TokenAndProviderFactoryInterface | $tokenAndProviderFactory | ||
protected Translator | $translator | ||
protected array | $authenticationProviderSettings |
Methods
Set the locale according to the user settings
No description
Use this method to set an alternative title than the module label
Shows a list of all users
Display no flash message at all on errors.
Create a new user
Edit the given account
Update a given account
Create an new electronic address
Delete an electronic address action
No description
Returns sorted list of auth providers by name.
Returns the roles that the current editor is able to assign Administrator can assign any roles, other users can only assign their own roles
Details
protected void
initializeObject()
Set the locale according to the user settings
protected void
initializeAction()
No description
protected void
initializeView(ViewInterface $view)
No description
void
setTitle(string $title)
Use this method to set an alternative title than the module label
void
indexAction(string $searchTerm = '', string $sortBy = 'accounts.accountIdentifier', string $sortDirection = QueryInterface::ORDER_ASCENDING)
Shows a list of all users
protected Message
getErrorFlashMessage()
Display no flash message at all on errors.
void
showAction(User $user)
Shows details for the specified user
void
newAction(User $user = null)
Renders a form for creating a new user
void
createAction(string $username, array $password, User $user, array $roleIdentifiers, string $authenticationProviderName = null)
Create a new user
void
editAction(User $user)
Edit an existing user
void
updateAction(User $user)
Update a given user
void
deleteAction(User $user)
Delete the given user
void
editAccountAction(Account $account)
Edit the given account
void
updateAccountAction(Account $account, array $roleIdentifiers, array $password = [])
Update a given account
void
newElectronicAddressAction(User $user)
The add new electronic address action
void
createElectronicAddressAction(User $user, ElectronicAddress $electronicAddress)
Create an new electronic address
void
deleteElectronicAddressAction(User $user, ElectronicAddress $electronicAddress)
Delete an electronic address action
protected void
assignElectronicAddressOptions()
No description
protected array
getAuthenticationProviders()
Returns sorted list of auth providers by name.
protected array
getAllowedRoles()
Returns the roles that the current editor is able to assign Administrator can assign any roles, other users can only assign their own roles
protected bool
isEditingAllowed(User $user)
Returns whether the current user is allowed to edit the given user.
Administrators can edit anybody.