Property | Type | Description | |
---|---|---|---|
$accountFactory | |||
$accountRepository | |||
$authenticationManager | Neos\Flow\Security\Authentication\AuthenticationManagerInterface | ||
$defaultAuthenticationProviderName | string | Might be configurable in the future, for now centralising this as a "constant" | |
$hashService | |||
$now | Neos\Flow\Utility\Now | ||
$partyRepository | Neos\Party\Domain\Repository\PartyRepository | ||
$partyService | Neos\Party\Domain\Service\PartyService | ||
$policyService | |||
$privilegeManager | Neos\Flow\Security\Authorization\PrivilegeManagerInterface | ||
$publishingService | |||
$runtimeUserCache | array | ||
$securityContext | |||
$userRepository | Neos\Neos\Domain\Repository\UserRepository | ||
$workspaceRepository |
Method | Description | |
---|---|---|
activateUser ( |
Reactivates the given user | |
addRoleToAccount ( |
Adds the specified role to the given account and potentially carries out further actions which are needed to properly reflect these changes. | |
addRoleToUser ( |
Adds the specified role to all accounts of the given user and potentially carries out further actions which are needed to properly reflect these changes. | |
addUser ( string $username, string $password, |
Adds a user whose User object has been created elsewhere | |
createUser ( string $username, string $password, string $firstName, string $lastName, array $roleIdentifiers = null, string $authenticationProviderName = null ) : |
Creates a user based on the given information | |
currentUserCanManageWorkspace ( |
Checks if the current user may manage the given workspace according to one the roles of the user's accounts | |
currentUserCanPublishToWorkspace ( |
Checks if the current user may publish to the given workspace according to one the roles of the user's accounts | |
currentUserCanReadWorkspace ( |
Checks if the current user may read the given workspace according to one the roles of the user's accounts | |
currentUserCanTransferOwnershipOfWorkspace ( |
Checks if the current user may transfer ownership of the given workspace | |
deactivateUser ( |
Deactivates the given user | |
deleteUser ( |
Deletes the specified user and all remaining content in his personal workspaces | |
emitRolesAdded ( |
Signals that new roles have been assigned to the given account | |
emitRolesRemoved ( |
Signals that roles have been removed to the given account | |
emitUserActivated ( |
Signals that the given user has been activated | |
emitUserCreated ( |
Signals that a new user, including a new account has been created. | |
emitUserDeactivated ( |
Signals that the given user has been activated | |
emitUserDeleted ( |
Signals that the given user has been deleted. | |
emitUserUpdated ( |
Signals that the given user data has been updated. | |
getCurrentUser ( ) : |
Returns the currently logged in user, if any | |
getDefaultAuthenticationProviderName ( ) : string | Returns the default authentication provider name | |
getUser ( string $username, string $authenticationProviderName = null ) : |
Retrieves an existing user by the given username | |
getUsername ( |
Returns the username of the given user | |
getUsers ( ) : array |
Retrieves a list of all existing users | |
removeRoleFromAccount ( |
Removes the specified role from the given account and potentially carries out further actions which are needed to properly reflect these changes. | |
removeRoleFromUser ( |
Removes the specified role from all accounts of the given user and potentially carries out further actions which are needed to properly reflect these changes. | |
setRolesForAccount ( |
Overrides any assigned roles of the given account and potentially carries out further actions which are needed to properly reflect these changes. | |
setUserPassword ( |
Sets a new password for the given user | |
updateUser ( |
Updates the given user in the respective repository and potentially executes further actions depending on what has been changed. |
Method | Description | |
---|---|---|
createPersonalWorkspace ( |
Creates a personal workspace for the given user's account if it does not exist already. | |
deletePersonalWorkspace ( string $accountIdentifier ) : void | Removes all personal workspaces of the given user's account if these workspaces exist. Also removes all possibly existing content of these workspaces. | |
getAllRoles ( |
Returns an array with all roles of a user's accounts, including parent roles, the "Everybody" role and the "AuthenticatedUser" role, assuming that the user is logged in. | |
normalizeRoleIdentifier ( string $roleIdentifier ) : string | Replaces a role identifier not containing a "." into fully qualified role identifier from the Neos.Neos namespace. | |
normalizeRoleIdentifiers ( array $roleIdentifiers ) : array | Replaces role identifiers not containing a "." into fully qualified role identifiers from the Neos.Neos namespace. | |
removeOwnerFromUsersWorkspaces ( |
Removes ownership of all workspaces currently owned by the given user |
public activateUser ( |
||
$user | The user to deactivate | |
return | void |
public addRoleToAccount ( |
||
$account | The account to add roles to | |
$roleIdentifier | string | A fully qualified role identifier, or a role identifier relative to the Neos.Neos namespace |
return | integer | How often this role has been added to the given account (effectively can be 1 or 0) |
public addRoleToUser ( |
||
$user | The user to add roles to | |
$roleIdentifier | string | A fully qualified role identifier, or a role identifier relative to the Neos.Neos namespace |
return | integer | How often this role has been added to accounts owned by the user |
public addUser ( string $username, string $password, |
||
$username | string | The username of the user to be created. |
$password | string | Password of the user to be created |
$user | The pre-built user object to start with | |
$roleIdentifiers | array | A list of role identifiers to assign |
$authenticationProviderName | string | Name of the authentication provider to use. Example: "Typo3BackendProvider" |
return | The same user object |
protected createPersonalWorkspace ( |
||
$user | The new user to create a workspace for | |
$account | The user's backend account |
public createUser ( string $username, string $password, string $firstName, string $lastName, array $roleIdentifiers = null, string $authenticationProviderName = null ) : |
||
$username | string | The username of the user to be created. |
$password | string | Password of the user to be created |
$firstName | string | First name of the user to be created |
$lastName | string | Last name of the user to be created |
$roleIdentifiers | array | A list of role identifiers to assign |
$authenticationProviderName | string | Name of the authentication provider to use. Example: "Typo3BackendProvider" |
return | The created user instance |
public currentUserCanManageWorkspace ( |
||
$workspace | The workspace | |
return | boolean |
public currentUserCanPublishToWorkspace ( |
||
$workspace | The workspace | |
return | boolean |
public currentUserCanReadWorkspace ( |
||
$workspace | The workspace | |
return | boolean |
public currentUserCanTransferOwnershipOfWorkspace ( |
||
$workspace | The workspace | |
return | boolean |
public deactivateUser ( |
||
$user | The user to deactivate | |
return | void |
protected deletePersonalWorkspace ( string $accountIdentifier ) : void | ||
$accountIdentifier | string | Identifier of the user's account |
return | void |
public deleteUser ( |
||
$user | The user to delete | |
return | void |
public emitRolesAdded ( |
||
$account | The account | |
$roles | array | |
return | void |
public emitRolesRemoved ( |
||
$account | The account | |
$roles | array | |
return | void |
public emitUserActivated ( |
||
$user | The user | |
return | void |
public emitUserCreated ( |
||
$user | The created user | |
return | void |
public emitUserDeactivated ( |
||
$user | The user | |
return | void |
public emitUserDeleted ( |
||
$user | The created user | |
return | void |
public emitUserUpdated ( |
||
$user | The created user | |
return | void |
protected getAllRoles ( |
||
$user | The user | |
return | array |
public getCurrentUser ( ) : |
||
return | The currently logged in user, or null |
public getDefaultAuthenticationProviderName ( ) : string | ||
return | string |
public getUser ( string $username, string $authenticationProviderName = null ) : |
||
$username | string | The username |
$authenticationProviderName | string | Name of the authentication provider to use. Example: "Typo3BackendProvider" |
return | The user, or null if the user does not exist |
public getUsername ( |
||
$user | ||
$authenticationProviderName | string | |
return | string | The username or null if the given user does not have a backend account |
public getUsers ( ) : array |
||
return | array |
protected normalizeRoleIdentifier ( string $roleIdentifier ) : string | ||
$roleIdentifier | string | |
return | string |
protected normalizeRoleIdentifiers ( array $roleIdentifiers ) : array | ||
$roleIdentifiers | array | |
return | array |
protected removeOwnerFromUsersWorkspaces ( |
||
$user | The user currently owning workspaces | |
return | void |
public removeRoleFromAccount ( |
||
$account | The account to remove roles from | |
$roleIdentifier | string | A fully qualified role identifier, or a role identifier relative to the Neos.Neos namespace |
return | integer | How often this role has been removed from the given account (effectively can be 1 or 0) |
public removeRoleFromUser ( |
||
$user | The user to remove roles from | |
$roleIdentifier | string | A fully qualified role identifier, or a role identifier relative to the Neos.Neos namespace |
return | integer | How often this role has been removed from accounts owned by the user |
public setRolesForAccount ( |
||
$account | The account to assign the roles to | |
$newRoleIdentifiers | array | A list of fully qualified role identifiers, or role identifiers relative to the Neos.Neos namespace |
return | void |
public setUserPassword ( |
||
$user | The user to set the password for | |
$password | string | A new password |
return | void |
public updateUser ( |
||
$user | The modified user | |
return | void |
protected AccountFactory,Neos\Flow\Security $accountFactory | ||
return |
protected AccountRepository,Neos\Flow\Security $accountRepository | ||
return |
protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager | ||
return | Neos\Flow\Security\Authentication\AuthenticationManagerInterface |
protected string $defaultAuthenticationProviderName | ||
return | string |
protected HashService,Neos\Flow\Security\Cryptography $hashService | ||
return |
protected PartyRepository,Neos\Party\Domain\Repository $partyRepository | ||
return | Neos\Party\Domain\Repository\PartyRepository |
protected PartyService,Neos\Party\Domain\Service $partyService | ||
return | Neos\Party\Domain\Service\PartyService |
protected PolicyService,Neos\Flow\Security\Policy $policyService | ||
return |
protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager | ||
return | Neos\Flow\Security\Authorization\PrivilegeManagerInterface |
protected PublishingService,Neos\Neos\Service $publishingService | ||
return |
protected Context,Neos\Flow\Security $securityContext | ||
return |
protected UserRepository,Neos\Neos\Domain\Repository $userRepository | ||
return | Neos\Neos\Domain\Repository\UserRepository |