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

Public Member Functions

 __construct (AddItemAliasesInLanguage $addItemAliases, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $itemId, string $languageCode)
 
 validate (Validator $restValidator)
 
 getParamSettings ()
 
 getBodyParamSettings ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (AddItemAliasesInLanguageResponse $useCaseResponse)
 
 setEtagFromRevId (Response $httpResponse, int $revId)
 
 getUsername ()
 

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const LANGUAGE_CODE_PATH_PARAM = 'language_code'
 
const ALIASES_BODY_PARAM = 'aliases'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
AddItemAliasesInLanguage $addItemAliases
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::__construct ( AddItemAliasesInLanguage $addItemAliases,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyParamSettings()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::newSuccessHttpResponse ( AddItemAliasesInLanguageResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::runUseCase ( string $itemId,
string $languageCode )

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::setEtagFromRevId ( Response $httpResponse,
int $revId )
private

◆ validate()

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

Member Data Documentation

◆ $addItemAliases

AddItemAliasesInLanguage Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::$addItemAliases
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ ALIASES_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::ALIASES_BODY_PARAM = 'aliases'
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ ITEM_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::ITEM_ID_PATH_PARAM = 'item_id'
private

◆ LANGUAGE_CODE_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::LANGUAGE_CODE_PATH_PARAM = 'language_code'
private

◆ TAGS_BODY_PARAM

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

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