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

Public Member Functions

 __construct (GetPropertyStatements $useCase, StatementListSerializer $statementListSerializer, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $propertyId)
 
 getParamSettings ()
 
 needsWriteAccess ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (GetPropertyStatementsResponse $useCaseResponse)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const PROPERTY_ID_QUERY_PARAM = 'property'
 
GetPropertyStatements $useCase
 
StatementListSerializer $statementListSerializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementsRouteHandler::__construct ( GetPropertyStatements $useCase,
StatementListSerializer $statementListSerializer,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementsRouteHandler::newSuccessHttpResponse ( GetPropertyStatementsResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementsRouteHandler::runUseCase ( string $propertyId)

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementsRouteHandler::setEtagFromRevId ( Response $response,
int $revId )
private

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $statementListSerializer

StatementListSerializer Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementsRouteHandler::$statementListSerializer
private

◆ $useCase

GetPropertyStatements Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementsRouteHandler::$useCase
private

◆ PROPERTY_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementsRouteHandler::PROPERTY_ID_PATH_PARAM = 'property_id'
private

◆ PROPERTY_ID_QUERY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyStatementsRouteHandler::PROPERTY_ID_QUERY_PARAM = 'property'
private

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