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

Public Member Functions

 __construct (MiddlewareHandler $middlewareHandler, PatchItemAliases $useCase, AliasesSerializer $serializer, ResponseFactory $responseFactory)
 
 run (... $args)
 
 runUseCase (string $itemId)
 
 getParamSettings ()
 
 getBodyValidator ( $contentType)
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Public Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const PATCH_BODY_PARAM = 'patch'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 

Private Member Functions

 newSuccessHttpResponse (PatchItemAliasesResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

MiddlewareHandler $middlewareHandler
 
PatchItemAliases $useCase
 
AliasesSerializer $serializer
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\PatchItemAliasesRouteHandler::__construct ( MiddlewareHandler $middlewareHandler,
PatchItemAliases $useCase,
AliasesSerializer $serializer,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\PatchItemAliasesRouteHandler::newSuccessHttpResponse ( PatchItemAliasesResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\PatchItemAliasesRouteHandler::runUseCase ( string $itemId)

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $serializer

AliasesSerializer Wikibase\Repo\RestApi\RouteHandlers\PatchItemAliasesRouteHandler::$serializer
private

◆ $useCase

PatchItemAliases Wikibase\Repo\RestApi\RouteHandlers\PatchItemAliasesRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ ITEM_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchItemAliasesRouteHandler::ITEM_ID_PATH_PARAM = 'item_id'

◆ PATCH_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchItemAliasesRouteHandler::PATCH_BODY_PARAM = 'patch'

◆ TAGS_BODY_PARAM

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

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