Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler:
+ Collaboration diagram for Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler:

Public Member Functions

 __construct (GetItemStatement $getStatement, StatementSerializer $statementSerializer, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $itemId, string $statementId)
 
 getParamSettings ()
 
 needsWriteAccess ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Public Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const STATEMENT_ID_PATH_PARAM = 'statement_id'
 
const ROUTE = '/wikibase/v1/entities/items/{item_id}/statements/{statement_id}'
 

Private Member Functions

 newSuccessHttpResponse (GetStatementResponse $useCaseResponse)
 
 setEtagFromRevId (Response $httpResponse, int $revId)
 

Private Attributes

GetItemStatement $getStatement
 
StatementSerializer $statementSerializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::__construct ( GetItemStatement $getStatement,
StatementSerializer $statementSerializer,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::checkPreconditions ( )

Preconditions are checked via PreconditionMiddleware.

◆ factory()

static Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::factory ( )
static

◆ getParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::getParamSettings ( )

◆ needsWriteAccess()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::needsWriteAccess ( )

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::newSuccessHttpResponse ( GetStatementResponse $useCaseResponse)
private

◆ run()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::run ( $args)
Parameters
mixed...$args

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::runUseCase ( string $itemId,
string $statementId )

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::setEtagFromRevId ( Response $httpResponse,
int $revId )
private

Member Data Documentation

◆ $getStatement

GetItemStatement Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::$getStatement
private

◆ $middlewareHandler

MiddlewareHandler Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::$middlewareHandler
private

◆ $responseFactory

ResponseFactory Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::$responseFactory
private

◆ $statementSerializer

StatementSerializer Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::$statementSerializer
private

◆ ITEM_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::ITEM_ID_PATH_PARAM = 'item_id'

◆ ROUTE

const Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::ROUTE = '/wikibase/v1/entities/items/{item_id}/statements/{statement_id}'

◆ STATEMENT_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::STATEMENT_ID_PATH_PARAM = 'statement_id'

The documentation for this class was generated from the following file: