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

Public Member Functions

 __construct (ContainerInterface $serviceContainer)
 
 validateAndDeserialize (UseCaseRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\AddItemStatement\AddItemStatementValidator
 validateAndDeserialize (AddItemStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\AddPropertyStatement\AddPropertyStatementValidator
 validateAndDeserialize (AddPropertyStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItem\GetItemValidator
 validateAndDeserialize (GetItemRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItemLabels\GetItemLabelsValidator
 validateAndDeserialize (GetItemLabelsRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItemLabel\GetItemLabelValidator
 validateAndDeserialize (GetItemLabelRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItemDescriptions\GetItemDescriptionsValidator
 validateAndDeserialize (GetItemDescriptionsRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItemDescription\GetItemDescriptionValidator
 validateAndDeserialize (GetItemDescriptionRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItemAliases\GetItemAliasesValidator
 validateAndDeserialize (GetItemAliasesRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItemAliasesInLanguage\GetItemAliasesInLanguageValidator
 validateAndDeserialize (GetItemAliasesInLanguageRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItemStatement\GetItemStatementValidator
 validateAndDeserialize (GetItemStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetItemStatements\GetItemStatementsValidator
 validateAndDeserialize (GetItemStatementsRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetProperty\GetPropertyValidator
 validateAndDeserialize (GetPropertyRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetPropertyLabels\GetPropertyLabelsValidator
 validateAndDeserialize (GetPropertyLabelsRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetPropertyDescriptions\GetPropertyDescriptionsValidator
 validateAndDeserialize (GetPropertyDescriptionsRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetPropertyAliases\GetPropertyAliasesValidator
 validateAndDeserialize (GetPropertyAliasesRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetPropertyAliasesInLanguage\GetPropertyAliasesInLanguageValidator
 validateAndDeserialize (GetPropertyAliasesInLanguageRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetPropertyStatement\GetPropertyStatementValidator
 validateAndDeserialize (GetPropertyStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetPropertyStatements\GetPropertyStatementsValidator
 validateAndDeserialize (GetPropertyStatementsRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetStatement\GetStatementValidator
 validateAndDeserialize (GetStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\PatchItemLabels\PatchItemLabelsValidator
 validateAndDeserialize (PatchItemLabelsRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\PatchItemDescriptions\PatchItemDescriptionsValidator
 validateAndDeserialize (PatchItemDescriptionsRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\PatchItemStatement\PatchItemStatementValidator
 validateAndDeserialize (PatchItemStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyStatement\PatchPropertyStatementValidator
 validateAndDeserialize (PatchPropertyStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatementValidator
 validateAndDeserialize (PatchStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\RemoveItemStatement\RemoveItemStatementValidator
 validateAndDeserialize (RemoveItemStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\RemovePropertyStatement\RemovePropertyStatementValidator
 validateAndDeserialize (RemovePropertyStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\RemoveStatement\RemoveStatementValidator
 validateAndDeserialize (RemoveStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\ReplaceItemStatement\ReplaceItemStatementValidator
 validateAndDeserialize (ReplaceItemStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\ReplacePropertyStatement\ReplacePropertyStatementValidator
 validateAndDeserialize (ReplacePropertyStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\ReplaceStatement\ReplaceStatementValidator
 validateAndDeserialize (ReplaceStatementRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\SetItemLabel\SetItemLabelValidator
 validateAndDeserialize (SetItemLabelRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\SetItemDescription\SetItemDescriptionValidator
 validateAndDeserialize (SetItemDescriptionRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetPropertyLabel\GetPropertyLabelValidator
 validateAndDeserialize (GetPropertyLabelRequest $request)
 
- Public Member Functions inherited from Wikibase\Repo\RestApi\Application\UseCases\GetPropertyDescription\GetPropertyDescriptionValidator
 validateAndDeserialize (GetPropertyDescriptionRequest $request)
 

Public Attributes

const ITEM_ID_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'ItemIdRequestValidatingDeserializer'
 
const PROPERTY_ID_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'PropertyIdRequestValidatingDeserializer'
 
const STATEMENT_ID_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'StatementIdRequestValidatingDeserializer'
 
const PROPERTY_ID_FILTER_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'PropertyIdFilterRequestValidatingDeserializer'
 
const LANGUAGE_CODE_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'LanguageCodeRequestValidatingDeserializer'
 
const ITEM_FIELDS_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'ItemFieldsRequestValidatingDeserializer'
 
const PROPERTY_FIELDS_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'PropertyFieldsRequestValidatingDeserializer'
 
const STATEMENT_SERIALIZATION_REQUEST_VALIDATING_DESERIALIZER
 
const EDIT_METADATA_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'EditMetadataRequestValidatingDeserializer'
 
const PATCH_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'PatchRequestValidatingDeserializer'
 
const ITEM_LABEL_EDIT_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'ItemLabelEditRequestValidatingDeserializer'
 
const ITEM_DESCRIPTION_EDIT_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'ItemDescriptionEditRequestValidatingDeserializer'
 

Private Attributes

const PREFIX = 'WbRestApi.RequestValidation.'
 
ContainerInterface $serviceContainer
 
array $validRequestResults = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::__construct ( ContainerInterface $serviceContainer)
Parameters
ContainerInterface$serviceContainerUsing the service container here allows us to lazily instantiate only the validators that are needed for the request object.

Member Function Documentation

◆ validateAndDeserialize()

Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::validateAndDeserialize ( UseCaseRequest $request)
Exceptions
UseCaseError

Member Data Documentation

◆ $serviceContainer

ContainerInterface Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::$serviceContainer
private

◆ $validRequestResults

array Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::$validRequestResults = []
private

◆ EDIT_METADATA_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::EDIT_METADATA_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'EditMetadataRequestValidatingDeserializer'

◆ ITEM_DESCRIPTION_EDIT_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::ITEM_DESCRIPTION_EDIT_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'ItemDescriptionEditRequestValidatingDeserializer'

◆ ITEM_FIELDS_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::ITEM_FIELDS_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'ItemFieldsRequestValidatingDeserializer'

◆ ITEM_ID_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::ITEM_ID_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'ItemIdRequestValidatingDeserializer'

◆ ITEM_LABEL_EDIT_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::ITEM_LABEL_EDIT_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'ItemLabelEditRequestValidatingDeserializer'

◆ LANGUAGE_CODE_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::LANGUAGE_CODE_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'LanguageCodeRequestValidatingDeserializer'

◆ PATCH_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::PATCH_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'PatchRequestValidatingDeserializer'

◆ PREFIX

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::PREFIX = 'WbRestApi.RequestValidation.'
private

◆ PROPERTY_FIELDS_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::PROPERTY_FIELDS_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'PropertyFieldsRequestValidatingDeserializer'

◆ PROPERTY_ID_FILTER_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::PROPERTY_ID_FILTER_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'PropertyIdFilterRequestValidatingDeserializer'

◆ PROPERTY_ID_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::PROPERTY_ID_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'PropertyIdRequestValidatingDeserializer'

◆ STATEMENT_ID_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::STATEMENT_ID_REQUEST_VALIDATING_DESERIALIZER = self::PREFIX . 'StatementIdRequestValidatingDeserializer'

◆ STATEMENT_SERIALIZATION_REQUEST_VALIDATING_DESERIALIZER

const Wikibase\Repo\RestApi\Infrastructure\ValidatingRequestDeserializer::STATEMENT_SERIALIZATION_REQUEST_VALIDATING_DESERIALIZER
Initial value:
=
self::PREFIX . 'StatementSerializationRequestValidatingDeserializer'

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