PHP 클래스 eZ\Publish\Core\REST\Server\Controller\User

상속: extends eZ\Publish\Core\REST\Server\Controller
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__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, Request $request ) : UserGroupRefList Assigns the user to a user group.
createSession ( Request $request ) : UserSession | eZ\Publish\Core\REST\Server\Values\Conflict Creates a new session based on the credentials provided as POST parameters.
createUser ( $groupPath, Request $request ) : CreatedUser Create a new user group in the given group.
createUserGroup ( $groupPath, Request $request ) : CreatedUserGroup Create a new user group under the given parent To create a top level group use /user/groups/1/5/subgroups.
deleteSession ( string $sessionId, Request $request ) : DeletedUserSession | Response 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 ( ) : PermanentRedirect Redirects to the root user group.
loadSubUserGroups ( $groupPath, Request $request ) : UserGroupList | UserGroupRefList Returns a list of the sub groups.
loadUser ( $userId ) : RestUser Loads a user for the given ID.
loadUserDrafts ( $userId, Request $request ) : VersionList Loads drafts assigned to user.
loadUserGroup ( $groupPath ) : RestUserGroup Loads a user group for the given path.
loadUserGroupByRemoteId ( Request $request ) : RestUserGroup Loads a user group by its remote ID.
loadUserGroups ( Request $request ) : UserGroupList | UserGroupRefList Loads user groups.
loadUserGroupsAssignedToRole ( mixed $roleId ) : RestUserGroup[] Loads a list of user groups assigned to role.
loadUserGroupsOfUser ( $userId, Request $request ) : UserGroupRefList Returns a list of user groups the user belongs to.
loadUsers ( Request $request ) : UserList | UserRefList Loads users.
loadUsersAssignedToRole ( mixed $roleId ) : RestUser[] Loads a list of users assigned to role.
loadUsersFromGroup ( $groupPath, Request $request ) : UserList | UserRefList Loads the users of the group with the given path.
moveUserGroup ( $groupPath, Request $request ) : ResourceCreated Moves the user group to another parent.
refreshSession ( string $sessionId, Request $request ) : UserSession Refresh given session.
setSessionController ( SessionController $sessionController )
setTokenStorage ( Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface $csrfTokenStorage )
unassignUserFromUserGroup ( $userId, $groupPath ) : UserGroupRefList Unassigns the user from a user group.
updateUser ( $userId, Request $request ) : RestUser Updates a user.
updateUserGroup ( $groupPath, Request $request ) : RestUserGroup Updates a user group.
verifyUsers ( Request $request )

비공개 메소드들

메소드 설명
buildRestUserObject ( eZ\Publish\API\Repository\Values\User\User $user ) : RestUser
extractLocationIdFromPath ( string $path ) : mixed Extracts and returns an item id from a path, e.g. /1/2/58 => 58.

메소드 상세

__construct() 공개 메소드

Construct controller.
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

assignUserToUserGroup() 공개 메소드

Assigns the user to a user group.
public assignUserToUserGroup ( $userId, Request $request ) : UserGroupRefList
$userId
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserGroupRefList

createSession() 공개 메소드

Creates a new session based on the credentials provided as POST parameters.
사용 중단: Deprecated since 6.5. Use SessionController::refreshSessionAction().
public createSession ( Request $request ) : UserSession | eZ\Publish\Core\REST\Server\Values\Conflict
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserSession | eZ\Publish\Core\REST\Server\Values\Conflict

createUser() 공개 메소드

Create a new user group in the given group.
public createUser ( $groupPath, Request $request ) : CreatedUser
$groupPath
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\CreatedUser

createUserGroup() 공개 메소드

Create a new user group under the given parent To create a top level group use /user/groups/1/5/subgroups.
public createUserGroup ( $groupPath, Request $request ) : CreatedUserGroup
$groupPath
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\CreatedUserGroup

deleteSession() 공개 메소드

Deletes given session.
사용 중단: Deprecated since 6.5. Use SessionController::refreshSessionAction().
public deleteSession ( string $sessionId, Request $request ) : DeletedUserSession | Response
$sessionId string
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\DeletedUserSession | Symfony\Component\HttpFoundation\Response

deleteUser() 공개 메소드

Given user is deleted.
public deleteUser ( $userId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$userId
리턴 eZ\Publish\Core\REST\Server\Values\NoContent

deleteUserGroup() 공개 메소드

Given user group is deleted.
public deleteUserGroup ( $groupPath ) : eZ\Publish\Core\REST\Server\Values\NoContent
$groupPath
리턴 eZ\Publish\Core\REST\Server\Values\NoContent

loadRootUserGroup() 공개 메소드

Redirects to the root user group.
public loadRootUserGroup ( ) : PermanentRedirect
리턴 eZ\Publish\Core\REST\Server\Values\PermanentRedirect

loadSubUserGroups() 공개 메소드

Returns a list of the sub groups.
public loadSubUserGroups ( $groupPath, Request $request ) : UserGroupList | UserGroupRefList
$groupPath
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserGroupList | eZ\Publish\Core\REST\Server\Values\UserGroupRefList

loadUser() 공개 메소드

Loads a user for the given ID.
public loadUser ( $userId ) : RestUser
$userId
리턴 eZ\Publish\Core\REST\Server\Values\RestUser

loadUserDrafts() 공개 메소드

Loads drafts assigned to user.
public loadUserDrafts ( $userId, Request $request ) : VersionList
$userId
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\VersionList

loadUserGroup() 공개 메소드

Loads a user group for the given path.
public loadUserGroup ( $groupPath ) : RestUserGroup
$groupPath
리턴 eZ\Publish\Core\REST\Server\Values\RestUserGroup

loadUserGroupByRemoteId() 공개 메소드

Loads a user group by its remote ID.
public loadUserGroupByRemoteId ( Request $request ) : RestUserGroup
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\RestUserGroup

loadUserGroups() 공개 메소드

Loads user groups.
public loadUserGroups ( Request $request ) : UserGroupList | UserGroupRefList
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserGroupList | eZ\Publish\Core\REST\Server\Values\UserGroupRefList

loadUserGroupsAssignedToRole() 공개 메소드

Loads a list of user groups assigned to role.
public loadUserGroupsAssignedToRole ( mixed $roleId ) : RestUserGroup[]
$roleId mixed
리턴 eZ\Publish\Core\REST\Server\Values\RestUserGroup[]

loadUserGroupsOfUser() 공개 메소드

The returned list includes the resources for unassigning a user group if the user is in multiple groups.
public loadUserGroupsOfUser ( $userId, Request $request ) : UserGroupRefList
$userId
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserGroupRefList

loadUsers() 공개 메소드

Loads users.
public loadUsers ( Request $request ) : UserList | UserRefList
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserList | eZ\Publish\Core\REST\Server\Values\UserRefList

loadUsersAssignedToRole() 공개 메소드

Loads a list of users assigned to role.
public loadUsersAssignedToRole ( mixed $roleId ) : RestUser[]
$roleId mixed
리턴 eZ\Publish\Core\REST\Server\Values\RestUser[]

loadUsersFromGroup() 공개 메소드

Loads the users of the group with the given path.
public loadUsersFromGroup ( $groupPath, Request $request ) : UserList | UserRefList
$groupPath
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserList | eZ\Publish\Core\REST\Server\Values\UserRefList

moveUserGroup() 공개 메소드

Moves the user group to another parent.
public moveUserGroup ( $groupPath, Request $request ) : ResourceCreated
$groupPath
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\ResourceCreated

refreshSession() 공개 메소드

Refresh given session.
사용 중단: Deprecated since 6.5. Use SessionController::refreshSessionAction().
public refreshSession ( string $sessionId, Request $request ) : UserSession
$sessionId string
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\UserSession

setSessionController() 공개 메소드

public setSessionController ( SessionController $sessionController )
$sessionController SessionController

setTokenStorage() 공개 메소드

public setTokenStorage ( Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface $csrfTokenStorage )
$csrfTokenStorage Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface

unassignUserFromUserGroup() 공개 메소드

Unassigns the user from a user group.
public unassignUserFromUserGroup ( $userId, $groupPath ) : UserGroupRefList
$userId
$groupPath
리턴 eZ\Publish\Core\REST\Server\Values\UserGroupRefList

updateUser() 공개 메소드

Updates a user.
public updateUser ( $userId, Request $request ) : RestUser
$userId
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\RestUser

updateUserGroup() 공개 메소드

Updates a user group.
public updateUserGroup ( $groupPath, Request $request ) : RestUserGroup
$groupPath
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\RestUserGroup

verifyUsers() 공개 메소드

public verifyUsers ( Request $request )
$request Symfony\Component\HttpFoundation\Request

프로퍼티 상세

$contentService 보호되어 있는 프로퍼티

Content service.
protected ContentService,eZ\Publish\API\Repository $contentService
리턴 eZ\Publish\API\Repository\ContentService

$contentTypeService 보호되어 있는 프로퍼티

Content service.
protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService
리턴 eZ\Publish\API\Repository\ContentTypeService

$locationService 보호되어 있는 프로퍼티

Location service.
protected LocationService,eZ\Publish\API\Repository $locationService
리턴 eZ\Publish\API\Repository\LocationService

$repository 보호되어 있는 프로퍼티

Repository.
protected Repository,eZ\Publish\API\Repository $repository
리턴 eZ\Publish\API\Repository\Repository

$roleService 보호되어 있는 프로퍼티

Role service.
protected RoleService,eZ\Publish\API\Repository $roleService
리턴 eZ\Publish\API\Repository\RoleService

$sectionService 보호되어 있는 프로퍼티

Section service.
protected SectionService,eZ\Publish\API\Repository $sectionService
리턴 eZ\Publish\API\Repository\SectionService

$userService 보호되어 있는 프로퍼티

User service.
protected UserService,eZ\Publish\API\Repository $userService
리턴 eZ\Publish\API\Repository\UserService