Esempio n. 1
0
 /**
  * @param \SPHERE\Application\Platform\Gatekeeper\Authorization\Token\Service\Entity\TblToken $tblToken
  */
 public function destroyToken(TblToken $tblToken)
 {
     $Manager = $this->Connection->getEntityManager();
     $Entity = $Manager->getEntityById('TblToken', $tblToken->getId());
     if (null !== $Entity) {
         $Manager->killEntity($Entity);
         Protocol::useService()->createDeleteEntry($this->Connection->getDatabase(), $Entity);
     }
 }
Esempio n. 2
0
 /**
  * @param \SPHERE\Application\Platform\Gatekeeper\Authorization\Token\Service\Entity\TblToken $tblToken
  *
  * @return bool|TblAccount[]
  */
 public function getAccountAllByToken(TblToken $tblToken)
 {
     $EntityList = $this->Connection->getEntityManager()->getEntity('TblAccount')->findBy(array(TblAccount::SERVICE_TBL_TOKEN => $tblToken->getId()));
     return empty($EntityList) ? false : $EntityList;
 }
 /**
  * @param null|\SPHERE\Application\Platform\Gatekeeper\Authorization\Token\Service\Entity\TblToken $tblToken
  */
 public function setServiceTblToken(TblToken $tblToken = null)
 {
     $this->serviceTblToken = null === $tblToken ? null : $tblToken->getId();
 }
Esempio n. 4
0
 /**
  * @param \SPHERE\Application\Platform\Gatekeeper\Authorization\Token\Service\Entity\TblToken $tblToken
  *
  * @return bool|TblAccount[]
  */
 public function getAccountAllByToken(TblToken $tblToken)
 {
     return $this->getCachedEntityListBy(__METHOD__, $this->Connection->getEntityManager(), 'TblAccount', array(TblAccount::SERVICE_TBL_TOKEN => $tblToken->getId()));
 }