Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
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 | |
Результат | 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 |
Результат | 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 |
Результат | 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" |
Результат | 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" |
Результат | The created user instance |
public currentUserCanManageWorkspace ( |
||
$workspace | The workspace | |
Результат | boolean |
public currentUserCanPublishToWorkspace ( |
||
$workspace | The workspace | |
Результат | boolean |
public currentUserCanReadWorkspace ( |
||
$workspace | The workspace | |
Результат | boolean |
public currentUserCanTransferOwnershipOfWorkspace ( |
||
$workspace | The workspace | |
Результат | boolean |
public deactivateUser ( |
||
$user | The user to deactivate | |
Результат | void |
protected deletePersonalWorkspace ( string $accountIdentifier ) : void | ||
$accountIdentifier | string | Identifier of the user's account |
Результат | void |
public deleteUser ( |
||
$user | The user to delete | |
Результат | void |
public emitRolesAdded ( |
||
$account | The account | |
$roles | array | |
Результат | void |
public emitRolesRemoved ( |
||
$account | The account | |
$roles | array | |
Результат | void |
public emitUserActivated ( |
||
$user | The user | |
Результат | void |
public emitUserCreated ( |
||
$user | The created user | |
Результат | void |
public emitUserDeactivated ( |
||
$user | The user | |
Результат | void |
public emitUserDeleted ( |
||
$user | The created user | |
Результат | void |
public emitUserUpdated ( |
||
$user | The created user | |
Результат | void |
protected getAllRoles ( |
||
$user | The user | |
Результат | array |
public getCurrentUser ( ) : |
||
Результат | The currently logged in user, or null |
public getDefaultAuthenticationProviderName ( ) : string | ||
Результат | string |
public getUser ( string $username, string $authenticationProviderName = null ) : |
||
$username | string | The username |
$authenticationProviderName | string | Name of the authentication provider to use. Example: "Typo3BackendProvider" |
Результат | The user, or null if the user does not exist |
public getUsername ( |
||
$user | ||
$authenticationProviderName | string | |
Результат | string | The username or null if the given user does not have a backend account |
public getUsers ( ) : array |
||
Результат | array |
protected normalizeRoleIdentifier ( string $roleIdentifier ) : string | ||
$roleIdentifier | string | |
Результат | string |
protected normalizeRoleIdentifiers ( array $roleIdentifiers ) : array | ||
$roleIdentifiers | array | |
Результат | array |
protected removeOwnerFromUsersWorkspaces ( |
||
$user | The user currently owning workspaces | |
Результат | 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 |
Результат | 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 |
Результат | 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 |
Результат | void |
public setUserPassword ( |
||
$user | The user to set the password for | |
$password | string | A new password |
Результат | void |
public updateUser ( |
||
$user | The modified user | |
Результат | void |
protected AccountFactory,Neos\Flow\Security $accountFactory | ||
Результат |
protected AccountRepository,Neos\Flow\Security $accountRepository | ||
Результат |
protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager | ||
Результат | Neos\Flow\Security\Authentication\AuthenticationManagerInterface |
protected string $defaultAuthenticationProviderName | ||
Результат | string |
protected HashService,Neos\Flow\Security\Cryptography $hashService | ||
Результат |
protected PartyRepository,Neos\Party\Domain\Repository $partyRepository | ||
Результат | Neos\Party\Domain\Repository\PartyRepository |
protected PartyService,Neos\Party\Domain\Service $partyService | ||
Результат | Neos\Party\Domain\Service\PartyService |
protected PolicyService,Neos\Flow\Security\Policy $policyService | ||
Результат |
protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager | ||
Результат | Neos\Flow\Security\Authorization\PrivilegeManagerInterface |
protected PublishingService,Neos\Neos\Service $publishingService | ||
Результат |
protected Context,Neos\Flow\Security $securityContext | ||
Результат |
protected UserRepository,Neos\Neos\Domain\Repository $userRepository | ||
Результат | Neos\Neos\Domain\Repository\UserRepository |