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

Public Member Functions

 __construct (PatchPropertyStatement $useCase, MiddlewareHandler $middlewareHandler, StatementSerializer $statementSerializer, ResponseFactory $responseFactory)
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 
 run (... $args)
 
 runUseCase (string $propertyId, string $statementId)
 
 getSupportedRequestTypes ()
 
 validate (Validator $restValidator)
 
 getParamSettings ()
 
 getBodyParamSettings ()
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (PatchStatementResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const STATEMENT_ID_PATH_PARAM = 'statement_id'
 
const PATCH_BODY_PARAM = 'patch'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
PatchPropertyStatement $useCase
 
MiddlewareHandler $middlewareHandler
 
StatementSerializer $statementSerializer
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::__construct ( PatchPropertyStatement $useCase,
MiddlewareHandler $middlewareHandler,
StatementSerializer $statementSerializer,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::getBodyParamSettings ( )

◆ getParamSettings()

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

◆ getSupportedRequestTypes()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::getSupportedRequestTypes ( )

◆ getUsername()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::getUsername ( )
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::newSuccessHttpResponse ( PatchStatementResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ validate()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::validate ( Validator $restValidator)

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $statementSerializer

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

◆ $useCase

PatchPropertyStatement Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::BOT_BODY_PARAM = 'bot'
private

◆ COMMENT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::COMMENT_BODY_PARAM = 'comment'
private

◆ PATCH_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::PATCH_BODY_PARAM = 'patch'
private

◆ PROPERTY_ID_PATH_PARAM

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

◆ STATEMENT_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::STATEMENT_ID_PATH_PARAM = 'statement_id'
private

◆ TAGS_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyStatementRouteHandler::TAGS_BODY_PARAM = 'tags'
private

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