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

Public Member Functions

 __construct (ReplaceStatement $useCase, StatementSerializer $statementSerializer, MiddlewareHandler $middlewareHandler, ResponseFactory $responseFactory)
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 
 run (... $args)
 
 runUseCase (string $statementId)
 
 getParamSettings ()
 
 getBodyValidator ( $contentType)
 

Static Public Member Functions

static factory ()
 

Public Attributes

const STATEMENT_ID_PATH_PARAM = 'statement_id'
 
const STATEMENT_BODY_PARAM = 'statement'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 

Private Member Functions

 newSuccessHttpResponse (ReplaceStatementResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

ReplaceStatement $useCase
 
StatementSerializer $statementSerializer
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

Wikibase\Repo\RestApi\RouteHandlers\ReplaceStatementRouteHandler::getBodyValidator ( $contentType)

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\ReplaceStatementRouteHandler::newSuccessHttpResponse ( ReplaceStatementResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\ReplaceStatementRouteHandler::runUseCase ( string $statementId)

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $statementSerializer

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

◆ $useCase

ReplaceStatement Wikibase\Repo\RestApi\RouteHandlers\ReplaceStatementRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\ReplaceStatementRouteHandler::BOT_BODY_PARAM = 'bot'

◆ COMMENT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\ReplaceStatementRouteHandler::COMMENT_BODY_PARAM = 'comment'

◆ STATEMENT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\ReplaceStatementRouteHandler::STATEMENT_BODY_PARAM = 'statement'

◆ STATEMENT_ID_PATH_PARAM

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

◆ TAGS_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\ReplaceStatementRouteHandler::TAGS_BODY_PARAM = 'tags'

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