You are here

final class TeamAppCredentialController in Apigee Edge 8

Definition of the team app credential controller service.

This integrates the Management API's Company app credential controller from the SDK's with Drupal.

Hierarchy

Expanded class hierarchy of TeamAppCredentialController

File

modules/apigee_edge_teams/src/Entity/Controller/TeamAppCredentialController.php, line 34

Namespace

Drupal\apigee_edge_teams\Entity\Controller
View source
final class TeamAppCredentialController extends AppCredentialControllerBase implements TeamAppCredentialControllerInterface {

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

  /**
   * {@inheritdoc}
   */
  protected function getAppType() : string {
    return AbstractAppCredentialEvent::APP_TYPE_TEAM;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AppCredentialControllerBase::$appCacheByOwner protected property App owner's dedicated app cache that uses app names as cache ids.
AppCredentialControllerBase::$appName protected property Name of the app.
AppCredentialControllerBase::$connector protected property The SDK connector service.
AppCredentialControllerBase::$eventDispatcher private property The event dispatcher service.
AppCredentialControllerBase::$instances protected property Local cache for app credential controller instances.
AppCredentialControllerBase::$owner protected property Email address or id (UUID) of a developer, or name of a company.
AppCredentialControllerBase::addProducts public function
AppCredentialControllerBase::create public function
AppCredentialControllerBase::delete public function
AppCredentialControllerBase::deleteApiProduct public function
AppCredentialControllerBase::deleteAttribute public function
AppCredentialControllerBase::generate public function
AppCredentialControllerBase::getAttribute public function
AppCredentialControllerBase::getAttributes public function
AppCredentialControllerBase::getOrganisationName public function
AppCredentialControllerBase::load public function
AppCredentialControllerBase::overrideScopes public function
AppCredentialControllerBase::setApiProductStatus public function
AppCredentialControllerBase::setStatus public function
AppCredentialControllerBase::updateAttribute public function
AppCredentialControllerBase::updateAttributes public function
AppCredentialControllerBase::__construct public function AppCredentialControllerBase constructor.
TeamAppCredentialController::decorated protected function Returns the decorated app credential controller from the SDK. Overrides AppCredentialControllerBase::decorated
TeamAppCredentialController::getAppType protected function Returns either "developer" or "team". Overrides AppCredentialControllerBase::getAppType