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

Public Member Functions

 __construct (GetPropertyAliases $useCase, AliasesSerializer $aliasesSerializer, MiddlewareHandler $middlewareHandler, ResponseFactory $responseFactory)
 
 run (... $args)
 
 runUseCase (string $propertyId)
 
 needsWriteAccess ()
 
 getParamSettings ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (GetPropertyAliasesResponse $useCaseResponse)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
GetPropertyAliases $useCase
 
AliasesSerializer $aliasesSerializer
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyAliasesRouteHandler::__construct ( GetPropertyAliases $useCase,
AliasesSerializer $aliasesSerializer,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyAliasesRouteHandler::needsWriteAccess ( )

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyAliasesRouteHandler::newSuccessHttpResponse ( GetPropertyAliasesResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyAliasesRouteHandler::setEtagFromRevId ( Response $response,
int $revId )
private

Member Data Documentation

◆ $aliasesSerializer

AliasesSerializer Wikibase\Repo\RestApi\RouteHandlers\GetPropertyAliasesRouteHandler::$aliasesSerializer
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

GetPropertyAliases Wikibase\Repo\RestApi\RouteHandlers\GetPropertyAliasesRouteHandler::$useCase
private

◆ PROPERTY_ID_PATH_PARAM

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

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