Property | 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. |
Method | 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 ( |
Method | 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 | ||
return |
public createSession ( |
||
$request | ||
return |
public createUser ( $groupPath, |
||
$groupPath | ||
$request | ||
return |
public createUserGroup ( $groupPath, |
||
$groupPath | ||
$request | ||
return |
public deleteSession ( string $sessionId, |
||
$sessionId | string | |
$request | ||
return |
public deleteUser ( $userId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$userId | ||
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public deleteUserGroup ( $groupPath ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$groupPath | ||
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public loadRootUserGroup ( ) : |
||
return |
public loadSubUserGroups ( $groupPath, |
||
$groupPath | ||
$request | ||
return |
public loadUser ( $userId ) : |
||
$userId | ||
return |
public loadUserDrafts ( $userId, |
||
$userId | ||
$request | ||
return |
public loadUserGroup ( $groupPath ) : |
||
$groupPath | ||
return |
public loadUserGroupByRemoteId ( |
||
$request | ||
return |
public loadUserGroups ( |
||
$request | ||
return |
public loadUserGroupsAssignedToRole ( mixed $roleId ) : |
||
$roleId | mixed | |
return |
public loadUserGroupsOfUser ( $userId, |
||
$userId | ||
$request | ||
return |
public loadUsers ( |
||
$request | ||
return |
public loadUsersAssignedToRole ( mixed $roleId ) : |
||
$roleId | mixed | |
return |
public loadUsersFromGroup ( $groupPath, |
||
$groupPath | ||
$request | ||
return |
public moveUserGroup ( $groupPath, |
||
$groupPath | ||
$request | ||
return |
public refreshSession ( string $sessionId, |
||
$sessionId | string | |
$request | ||
return |
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 | ||
return |
public updateUser ( $userId, |
||
$userId | ||
$request | ||
return |
public updateUserGroup ( $groupPath, |
||
$groupPath | ||
$request | ||
return |
public verifyUsers ( |
||
$request |
protected ContentService,eZ\Publish\API\Repository $contentService | ||
return | eZ\Publish\API\Repository\ContentService |
protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService | ||
return | eZ\Publish\API\Repository\ContentTypeService |
protected LocationService,eZ\Publish\API\Repository $locationService | ||
return | eZ\Publish\API\Repository\LocationService |
protected Repository,eZ\Publish\API\Repository $repository | ||
return | eZ\Publish\API\Repository\Repository |
protected RoleService,eZ\Publish\API\Repository $roleService | ||
return | eZ\Publish\API\Repository\RoleService |
protected SectionService,eZ\Publish\API\Repository $sectionService | ||
return | eZ\Publish\API\Repository\SectionService |