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

Public Member Functions

 __construct (MiddlewareHandler $middlewareHandler, PatchProperty $useCase, PropertySerializer $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 (PatchPropertyResponse $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'
 
MiddlewareHandler $middlewareHandler
 
PatchProperty $useCase
 
PropertySerializer $serializer
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyRouteHandler::__construct ( MiddlewareHandler $middlewareHandler,
PatchProperty $useCase,
PropertySerializer $serializer,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyParamSettings()

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

◆ getParamSettings()

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

◆ getSupportedRequestTypes()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyRouteHandler::newSuccessHttpResponse ( PatchPropertyResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ validate()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $serializer

PropertySerializer Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyRouteHandler::$serializer
private

◆ $useCase

PatchProperty Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ PATCH_BODY_PARAM

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

◆ PROPERTY_ID_PATH_PARAM

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

◆ TAGS_BODY_PARAM

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

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