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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$contentService eZ\Publish\API\Repository\ContentService Content service.
$objectStateService eZ\Publish\API\Repository\ObjectStateService ObjectState service.

공개 메소드들

메소드 설명
__construct ( eZ\Publish\API\Repository\ObjectStateService $objectStateService, eZ\Publish\API\Repository\ContentService $contentService ) Construct controller.
createObjectState ( $objectStateGroupId, Request $request ) : CreatedObjectState Creates a new object state.
createObjectStateGroup ( Request $request ) : CreatedObjectStateGroup Creates a new object state group.
deleteObjectState ( $objectStateId ) : eZ\Publish\Core\REST\Server\Values\NoContent The given object state is deleted.
deleteObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent The given object state group including the object states is deleted.
getObjectStatesForContent ( $contentId ) : ContentObjectStates Returns the object states of content.
loadObjectState ( $objectStateGroupId, $objectStateId ) : RestObjectState Loads an object state.
loadObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup Loads an object state group.
loadObjectStateGroups ( ) : ObjectStateGroupList Returns a list of all object state groups.
loadObjectStates ( $objectStateGroupId ) : ObjectStateList Returns a list of all object states of the given group.
setObjectStatesForContent ( $contentId, Request $request ) : ContentObjectStates Updates object states of content An object state in the input overrides the state of the object state group.
updateObjectState ( $objectStateGroupId, $objectStateId, Request $request ) : RestObjectState Updates an object state.
updateObjectStateGroup ( $objectStateGroupId, Request $request ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup Updates an object state group.

메소드 상세

__construct() 공개 메소드

Construct controller.
public __construct ( eZ\Publish\API\Repository\ObjectStateService $objectStateService, eZ\Publish\API\Repository\ContentService $contentService )
$objectStateService eZ\Publish\API\Repository\ObjectStateService
$contentService eZ\Publish\API\Repository\ContentService

createObjectState() 공개 메소드

Creates a new object state.
public createObjectState ( $objectStateGroupId, Request $request ) : CreatedObjectState
$objectStateGroupId
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\CreatedObjectState

createObjectStateGroup() 공개 메소드

Creates a new object state group.
public createObjectStateGroup ( Request $request ) : CreatedObjectStateGroup
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Server\Values\CreatedObjectStateGroup

deleteObjectState() 공개 메소드

The given object state is deleted.
public deleteObjectState ( $objectStateId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$objectStateId
리턴 eZ\Publish\Core\REST\Server\Values\NoContent

deleteObjectStateGroup() 공개 메소드

The given object state group including the object states is deleted.
public deleteObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$objectStateGroupId
리턴 eZ\Publish\Core\REST\Server\Values\NoContent

getObjectStatesForContent() 공개 메소드

Returns the object states of content.
public getObjectStatesForContent ( $contentId ) : ContentObjectStates
$contentId
리턴 eZ\Publish\Core\REST\Common\Values\ContentObjectStates

loadObjectState() 공개 메소드

Loads an object state.
public loadObjectState ( $objectStateGroupId, $objectStateId ) : RestObjectState
$objectStateGroupId
$objectStateId
리턴 eZ\Publish\Core\REST\Common\Values\RestObjectState

loadObjectStateGroup() 공개 메소드

Loads an object state group.
public loadObjectStateGroup ( $objectStateGroupId ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
$objectStateGroupId
리턴 eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup

loadObjectStateGroups() 공개 메소드

Returns a list of all object state groups.
public loadObjectStateGroups ( ) : ObjectStateGroupList
리턴 eZ\Publish\Core\REST\Server\Values\ObjectStateGroupList

loadObjectStates() 공개 메소드

Returns a list of all object states of the given group.
public loadObjectStates ( $objectStateGroupId ) : ObjectStateList
$objectStateGroupId
리턴 eZ\Publish\Core\REST\Server\Values\ObjectStateList

setObjectStatesForContent() 공개 메소드

Updates object states of content An object state in the input overrides the state of the object state group.
public setObjectStatesForContent ( $contentId, Request $request ) : ContentObjectStates
$contentId
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Common\Values\ContentObjectStates

updateObjectState() 공개 메소드

Updates an object state.
public updateObjectState ( $objectStateGroupId, $objectStateId, Request $request ) : RestObjectState
$objectStateGroupId
$objectStateId
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\Core\REST\Common\Values\RestObjectState

updateObjectStateGroup() 공개 메소드

Updates an object state group.
public updateObjectStateGroup ( $objectStateGroupId, Request $request ) : eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
$objectStateGroupId
$request Symfony\Component\HttpFoundation\Request
리턴 eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup

프로퍼티 상세

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

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

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

ObjectState service.
protected ObjectStateService,eZ\Publish\API\Repository $objectStateService
리턴 eZ\Publish\API\Repository\ObjectStateService