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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (ReplaceStatementResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
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'
 
ReplacePropertyStatement $useCase
 
StatementSerializer $statementSerializer
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyParamSettings()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

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

◆ run()

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

◆ runUseCase()

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

◆ validate()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $statementSerializer

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

◆ $useCase

ReplacePropertyStatement Wikibase\Repo\RestApi\RouteHandlers\ReplacePropertyStatementRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ PROPERTY_ID_PATH_PARAM

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

◆ STATEMENT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\ReplacePropertyStatementRouteHandler::STATEMENT_BODY_PARAM = 'statement'
private

◆ STATEMENT_ID_PATH_PARAM

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

◆ TAGS_BODY_PARAM

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

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