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

Public Member Functions

 __construct (IContextSource $context, MediaWikiEditEntityFactory $editEntityFactory, LoggerInterface $logger, EditSummaryFormatter $summaryFormatter, PermissionManager $permissionManager, EntityStore $entityStore, GuidGenerator $statementIdGenerator, SettingsArray $repoSettings)
 
 create (EntityDocument $entity, EditMetadata $editMetadata)
 
 update (EntityDocument $entity, EditMetadata $editMetadata)
 

Private Member Functions

 createOrUpdate (EntityDocument $entity, EditMetadata $editMetadata, int $newOrUpdateFlag)
 
 throwIfPreventedEdit (Status $status)
 
 checkBotRightIfProvided (User $user, bool $isBot)
 
 generateStatementIds (StatementListProvidingEntity $entity)
 

Private Attributes

IContextSource $context
 
MediaWikiEditEntityFactory $editEntityFactory
 
LoggerInterface $logger
 
EditSummaryFormatter $summaryFormatter
 
PermissionManager $permissionManager
 
EntityStore $entityStore
 
GuidGenerator $statementIdGenerator
 
SettingsArray $repoSettings
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::__construct ( IContextSource $context,
MediaWikiEditEntityFactory $editEntityFactory,
LoggerInterface $logger,
EditSummaryFormatter $summaryFormatter,
PermissionManager $permissionManager,
EntityStore $entityStore,
GuidGenerator $statementIdGenerator,
SettingsArray $repoSettings )

Member Function Documentation

◆ checkBotRightIfProvided()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::checkBotRightIfProvided ( User $user,
bool $isBot )
private

◆ create()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::create ( EntityDocument $entity,
EditMetadata $editMetadata )
Exceptions
EntityUpdateFailed
ResourceTooLargeException
EditPrevented
RateLimitReached
TempAccountCreationLimitReached

◆ createOrUpdate()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::createOrUpdate ( EntityDocument $entity,
EditMetadata $editMetadata,
int $newOrUpdateFlag )
private
Exceptions
EntityUpdateFailed
ResourceTooLargeException
EditPrevented
RateLimitReached
TempAccountCreationLimitReached

◆ generateStatementIds()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::generateStatementIds ( StatementListProvidingEntity $entity)
private

◆ throwIfPreventedEdit()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::throwIfPreventedEdit ( Status $status)
private
Exceptions
EditPrevented

◆ update()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::update ( EntityDocument $entity,
EditMetadata $editMetadata )
Exceptions
EntityUpdateFailed
ResourceTooLargeException
EditPrevented
RateLimitReached
TempAccountCreationLimitReached

Member Data Documentation

◆ $context

IContextSource Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::$context
private

◆ $editEntityFactory

MediaWikiEditEntityFactory Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::$editEntityFactory
private

◆ $entityStore

EntityStore Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::$entityStore
private

◆ $logger

LoggerInterface Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::$logger
private

◆ $permissionManager

PermissionManager Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::$permissionManager
private

◆ $repoSettings

SettingsArray Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::$repoSettings
private

◆ $statementIdGenerator

GuidGenerator Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::$statementIdGenerator
private

◆ $summaryFormatter

EditSummaryFormatter Wikibase\Repo\RestApi\Infrastructure\DataAccess\EntityUpdater::$summaryFormatter
private

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