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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Public Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const STATEMENT_ID_PATH_PARAM = 'statement_id'
 
const ROUTE = '/wikibase/v1/entities/properties/{property_id}/statements/{statement_id}'
 

Private Member Functions

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

Private Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newSuccessHttpResponse()

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

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementRouteHandler::runUseCase ( string $propertyId,
string $statementId )

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $getStatement

GetPropertyStatement Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementRouteHandler::$getStatement
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $statementSerializer

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

◆ PROPERTY_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementRouteHandler::PROPERTY_ID_PATH_PARAM = 'property_id'

◆ ROUTE

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementRouteHandler::ROUTE = '/wikibase/v1/entities/properties/{property_id}/statements/{statement_id}'

◆ STATEMENT_ID_PATH_PARAM

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

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