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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (PatchPropertyAliasesResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const PATCH_BODY_PARAM = 'patch'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
PatchPropertyAliases $useCase
 
MiddlewareHandler $middlewareHandler
 
AliasesSerializer $serializer
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyParamSettings()

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

◆ getParamSettings()

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

◆ getSupportedRequestTypes()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyAliasesRouteHandler::newSuccessHttpResponse ( PatchPropertyAliasesResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ validate()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $serializer

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

◆ $useCase

PatchPropertyAliases Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyAliasesRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ PATCH_BODY_PARAM

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

◆ PROPERTY_ID_PATH_PARAM

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

◆ TAGS_BODY_PARAM

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

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