Свойство | Type | Description | |
---|---|---|---|
$contentService | eZ\Publish\API\Repository\ContentService | Content service. | |
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService | Content service. | |
$locationService | eZ\Publish\API\Repository\LocationService | Location service. | |
$repository | eZ\Publish\API\Repository\Repository | Repository. | |
$roleService | eZ\Publish\API\Repository\RoleService | Role service. | |
$sectionService | eZ\Publish\API\Repository\SectionService | Section service. | |
$userService | eZ\Publish\API\Repository\UserService | User service. |
Méthode | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\UserService $userService, eZ\Publish\API\Repository\RoleService $roleService, eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\SectionService $sectionService, eZ\Publish\API\Repository\Repository $repository ) | Construct controller. | |
assignUserToUserGroup ( $userId, |
Assigns the user to a user group. | |
createSession ( |
Creates a new session based on the credentials provided as POST parameters. | |
createUser ( $groupPath, |
Create a new user group in the given group. | |
createUserGroup ( $groupPath, |
Create a new user group under the given parent To create a top level group use /user/groups/1/5/subgroups. | |
deleteSession ( string $sessionId, |
Deletes given session. | |
deleteUser ( $userId ) : eZ\Publish\Core\REST\Server\Values\NoContent | Given user is deleted. | |
deleteUserGroup ( $groupPath ) : eZ\Publish\Core\REST\Server\Values\NoContent | Given user group is deleted. | |
loadRootUserGroup ( ) : |
Redirects to the root user group. | |
loadSubUserGroups ( $groupPath, |
Returns a list of the sub groups. | |
loadUser ( $userId ) : |
Loads a user for the given ID. | |
loadUserDrafts ( $userId, |
Loads drafts assigned to user. | |
loadUserGroup ( $groupPath ) : |
Loads a user group for the given path. | |
loadUserGroupByRemoteId ( |
Loads a user group by its remote ID. | |
loadUserGroups ( |
Loads user groups. | |
loadUserGroupsAssignedToRole ( mixed $roleId ) : |
Loads a list of user groups assigned to role. | |
loadUserGroupsOfUser ( $userId, |
Returns a list of user groups the user belongs to. | |
loadUsers ( |
Loads users. | |
loadUsersAssignedToRole ( mixed $roleId ) : |
Loads a list of users assigned to role. | |
loadUsersFromGroup ( $groupPath, |
Loads the users of the group with the given path. | |
moveUserGroup ( $groupPath, |
Moves the user group to another parent. | |
refreshSession ( string $sessionId, |
Refresh given session. | |
setSessionController ( |
||
setTokenStorage ( Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface $csrfTokenStorage ) | ||
unassignUserFromUserGroup ( $userId, $groupPath ) : |
Unassigns the user from a user group. | |
updateUser ( $userId, |
Updates a user. | |
updateUserGroup ( $groupPath, |
Updates a user group. | |
verifyUsers ( |
Méthode | Description | |
---|---|---|
buildRestUserObject ( eZ\Publish\API\Repository\Values\User\User $user ) : |
||
extractLocationIdFromPath ( string $path ) : mixed | Extracts and returns an item id from a path, e.g. /1/2/58 => 58. |
public __construct ( eZ\Publish\API\Repository\UserService $userService, eZ\Publish\API\Repository\RoleService $roleService, eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\SectionService $sectionService, eZ\Publish\API\Repository\Repository $repository ) | ||
$userService | eZ\Publish\API\Repository\UserService | |
$roleService | eZ\Publish\API\Repository\RoleService | |
$contentService | eZ\Publish\API\Repository\ContentService | |
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService | |
$locationService | eZ\Publish\API\Repository\LocationService | |
$sectionService | eZ\Publish\API\Repository\SectionService | |
$repository | eZ\Publish\API\Repository\Repository |
public assignUserToUserGroup ( $userId, |
||
$userId | ||
$request | ||
Résultat |
public createSession ( |
||
$request | ||
Résultat |
public createUser ( $groupPath, |
||
$groupPath | ||
$request | ||
Résultat |
public createUserGroup ( $groupPath, |
||
$groupPath | ||
$request | ||
Résultat |
public deleteSession ( string $sessionId, |
||
$sessionId | string | |
$request | ||
Résultat |
public deleteUser ( $userId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$userId | ||
Résultat | eZ\Publish\Core\REST\Server\Values\NoContent |
public deleteUserGroup ( $groupPath ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$groupPath | ||
Résultat | eZ\Publish\Core\REST\Server\Values\NoContent |
public loadRootUserGroup ( ) : |
||
Résultat |
public loadSubUserGroups ( $groupPath, |
||
$groupPath | ||
$request | ||
Résultat |
public loadUser ( $userId ) : |
||
$userId | ||
Résultat |
public loadUserDrafts ( $userId, |
||
$userId | ||
$request | ||
Résultat |
public loadUserGroup ( $groupPath ) : |
||
$groupPath | ||
Résultat |
public loadUserGroupByRemoteId ( |
||
$request | ||
Résultat |
public loadUserGroups ( |
||
$request | ||
Résultat |
public loadUserGroupsAssignedToRole ( mixed $roleId ) : |
||
$roleId | mixed | |
Résultat |
public loadUserGroupsOfUser ( $userId, |
||
$userId | ||
$request | ||
Résultat |
public loadUsers ( |
||
$request | ||
Résultat |
public loadUsersAssignedToRole ( mixed $roleId ) : |
||
$roleId | mixed | |
Résultat |
public loadUsersFromGroup ( $groupPath, |
||
$groupPath | ||
$request | ||
Résultat |
public moveUserGroup ( $groupPath, |
||
$groupPath | ||
$request | ||
Résultat |
public refreshSession ( string $sessionId, |
||
$sessionId | string | |
$request | ||
Résultat |
public setSessionController ( |
||
$sessionController |
public setTokenStorage ( Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface $csrfTokenStorage ) | ||
$csrfTokenStorage | Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface |
public unassignUserFromUserGroup ( $userId, $groupPath ) : |
||
$userId | ||
$groupPath | ||
Résultat |
public updateUser ( $userId, |
||
$userId | ||
$request | ||
Résultat |
public updateUserGroup ( $groupPath, |
||
$groupPath | ||
$request | ||
Résultat |
public verifyUsers ( |
||
$request |
protected ContentService,eZ\Publish\API\Repository $contentService | ||
Résultat | eZ\Publish\API\Repository\ContentService |
protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService | ||
Résultat | eZ\Publish\API\Repository\ContentTypeService |
protected LocationService,eZ\Publish\API\Repository $locationService | ||
Résultat | eZ\Publish\API\Repository\LocationService |
protected Repository,eZ\Publish\API\Repository $repository | ||
Résultat | eZ\Publish\API\Repository\Repository |
protected RoleService,eZ\Publish\API\Repository $roleService | ||
Résultat | eZ\Publish\API\Repository\RoleService |
protected SectionService,eZ\Publish\API\Repository $sectionService | ||
Résultat | eZ\Publish\API\Repository\SectionService |