PHP Class Neos\Neos\Controller\Module\Administration\UsersController

Inheritance: extends Neos\Neos\Controller\Module\AbstractModuleController
Exibir arquivo Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$currentUser Neos\Neos\Domain\Model\User
$policyService Neos\Flow\Security\Policy\PolicyService
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$userService Neos\Neos\Domain\Service\UserService

Public Methods

Method Description
createAction ( string $username, array $password, User $user, array $roleIdentifiers ) : void Create a new user
createElectronicAddressAction ( User $user, Neos\Party\Domain\Model\ElectronicAddress $electronicAddress ) : void Create an new electronic address
deleteAction ( User $user ) : void Delete the given user
deleteElectronicAddressAction ( User $user, Neos\Party\Domain\Model\ElectronicAddress $electronicAddress ) : void Delete an electronic address action
editAccountAction ( Account $account ) : void Edit the given account
editAction ( User $user ) : void Edit an existing user
indexAction ( ) : void Shows a list of all users
newAction ( User $user = null ) : void Renders a form for creating a new user
newElectronicAddressAction ( User $user ) : void The add new electronic address action
showAction ( User $user ) : void Shows details for the specified user
updateAccountAction ( Account $account, array $roleIdentifiers, array $password = [] ) : void Update a given account
updateAction ( User $user ) : void Update a given user

Protected Methods

Method Description
assignElectronicAddressOptions ( ) : void
initializeAction ( ) : void

Method Details

assignElectronicAddressOptions() protected method

protected assignElectronicAddressOptions ( ) : void
return void

createAction() public method

Create a new user
public createAction ( string $username, array $password, User $user, array $roleIdentifiers ) : void
$username string The user name (ie. account identifier) of the new user
$password array Expects an array in the format array('', '')
$user Neos\Neos\Domain\Model\User The user to create
$roleIdentifiers array A list of roles (role identifiers) to assign to the new user
return void

createElectronicAddressAction() public method

Create an new electronic address
public createElectronicAddressAction ( User $user, Neos\Party\Domain\Model\ElectronicAddress $electronicAddress ) : void
$user Neos\Neos\Domain\Model\User
$electronicAddress Neos\Party\Domain\Model\ElectronicAddress
return void

deleteAction() public method

Delete the given user
public deleteAction ( User $user ) : void
$user Neos\Neos\Domain\Model\User
return void

deleteElectronicAddressAction() public method

Delete an electronic address action
public deleteElectronicAddressAction ( User $user, Neos\Party\Domain\Model\ElectronicAddress $electronicAddress ) : void
$user Neos\Neos\Domain\Model\User
$electronicAddress Neos\Party\Domain\Model\ElectronicAddress
return void

editAccountAction() public method

Edit the given account
public editAccountAction ( Account $account ) : void
$account Neos\Flow\Security\Account
return void

editAction() public method

Edit an existing user
public editAction ( User $user ) : void
$user Neos\Neos\Domain\Model\User
return void

indexAction() public method

Shows a list of all users
public indexAction ( ) : void
return void

initializeAction() protected method

protected initializeAction ( ) : void
return void

newAction() public method

Renders a form for creating a new user
public newAction ( User $user = null ) : void
$user Neos\Neos\Domain\Model\User
return void

newElectronicAddressAction() public method

The add new electronic address action
public newElectronicAddressAction ( User $user ) : void
$user Neos\Neos\Domain\Model\User
return void

showAction() public method

Shows details for the specified user
public showAction ( User $user ) : void
$user Neos\Neos\Domain\Model\User
return void

updateAccountAction() public method

Update a given account
public updateAccountAction ( Account $account, array $roleIdentifiers, array $password = [] ) : void
$account Neos\Flow\Security\Account The account to update
$roleIdentifiers array A possibly updated list of roles for the user's primary account
$password array Expects an array in the format array('', '')
return void

updateAction() public method

Update a given user
public updateAction ( User $user ) : void
$user Neos\Neos\Domain\Model\User The user to update, including updated data already (name, email address etc)
return void

Property Details

$currentUser protected_oe property

protected User,Neos\Neos\Domain\Model $currentUser
return Neos\Neos\Domain\Model\User

$policyService protected_oe property

protected PolicyService,Neos\Flow\Security\Policy $policyService
return Neos\Flow\Security\Policy\PolicyService

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$userService protected_oe property

protected UserService,Neos\Neos\Domain\Service $userService
return Neos\Neos\Domain\Service\UserService