You are here

final class TeamAppController in Apigee Edge 8

Definition of the Team app controller service.

We call company apps as team apps in Drupal.

Hierarchy

Expanded class hierarchy of TeamAppController

File

modules/apigee_edge_teams/src/Entity/Controller/TeamAppController.php, line 32

Namespace

Drupal\apigee_edge_teams\Entity\Controller
View source
final class TeamAppController extends AppByOwnerController implements TeamAppControllerInterface {

  /**
   * {@inheritdoc}
   */
  protected function decorated() : EdgeAppByOwnerControllerInterface {
    if (!isset($this->instances[$this->owner])) {
      $this->instances[$this->owner] = new EdgeCompanyAppController($this->connector
        ->getOrganization(), $this->owner, $this->connector
        ->getClient(), NULL, $this->organizationController);
    }
    return $this->instances[$this->owner];
  }

  /**
   * {@inheritdoc}
   */
  public function getCompanyName() : string {

    /** @var \Apigee\Edge\Api\Management\Controller\CompanyAppControllerInterface $decorated */
    $decorated = $this
      ->decorated();
    return $decorated
      ->getCompanyName();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AppByOwnerController::$appCacheByOwner protected property App owner's dedicated app cache that uses app names as cache ids.
AppByOwnerController::$appNameCacheByOwner protected property App owner's dedicated app name cache.
AppByOwnerController::$instances protected property Local cache for app by owner controller instances.
AppByOwnerController::$owner protected property The owner of an app.
AppByOwnerController::entityCache public function Returns the entity cache used by the controller. Overrides EntityCacheAwareControllerTrait::entityCache
AppByOwnerController::entityIdCache protected function Entity id cache used by the entity controller. Overrides CachedPaginatedEntityIdListingControllerTrait::entityIdCache
AppByOwnerController::getEntities public function
AppByOwnerController::getOrganisationName public function
AppByOwnerController::load public function Overrides CachedEntityCrudOperationsControllerTrait::load
AppByOwnerController::setStatus public function
AppByOwnerController::__construct public function AppByOwnerController constructor. Overrides AppControllerBase::__construct
AppControllerBase::$appCache protected property The app cache.
AppControllerBase::$connector protected property The SDK connector service.
AppControllerBase::$organizationController protected property The organization controller service.
CachedAttributesAwareEntityControllerTrait::deleteAttribute public function
CachedAttributesAwareEntityControllerTrait::getAttribute public function
CachedAttributesAwareEntityControllerTrait::getAttributes public function
CachedAttributesAwareEntityControllerTrait::updateAttribute public function
CachedAttributesAwareEntityControllerTrait::updateAttributes public function
CachedEntityCrudOperationsControllerTrait::create public function
CachedEntityCrudOperationsControllerTrait::delete public function
CachedEntityCrudOperationsControllerTrait::update public function
CachedPaginatedControllerHelperTrait::createPager public function
CachedPaginatedEntityIdListingControllerTrait::extractSubsetOfAssociativeArray abstract protected function
CachedPaginatedEntityIdListingControllerTrait::getEntityIds public function
TeamAppController::decorated protected function Returns the decorated developer- or company app controller. Overrides AppByOwnerController::decorated
TeamAppController::getCompanyName public function