module/Applications/src/Applications/Entity/Application.php 1 location
|
@@ 277-285 (lines=9) @@
|
| 274 |
|
* @return Application |
| 275 |
|
* @see \Applications\Entity\ApplicationInterface::setUser() |
| 276 |
|
*/ |
| 277 |
|
public function setUser(UserInterface $user) |
| 278 |
|
{ |
| 279 |
|
if ($this->user) { |
| 280 |
|
$this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL, false); |
| 281 |
|
} |
| 282 |
|
$this->getPermissions()->grant($user, Permissions::PERMISSION_ALL); |
| 283 |
|
$this->user = $user; |
| 284 |
|
return $this; |
| 285 |
|
} |
| 286 |
|
|
| 287 |
|
/** |
| 288 |
|
* {@inheritDoc} |
module/Core/src/Core/Entity/FileEntity.php 1 location
|
@@ 96-105 (lines=10) @@
|
| 93 |
|
* @param UserInterface $user |
| 94 |
|
* @return $this |
| 95 |
|
*/ |
| 96 |
|
public function setUser(UserInterface $user) |
| 97 |
|
{ |
| 98 |
|
if ($this->user) { |
| 99 |
|
$this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL, false); |
| 100 |
|
} |
| 101 |
|
$this->user = $user; |
| 102 |
|
$this->getPermissions()->grant($user, Permissions::PERMISSION_ALL); |
| 103 |
|
|
| 104 |
|
return $this; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* Gets the owner of a file |
module/Jobs/src/Jobs/Entity/Job.php 1 location
|
@@ 550-558 (lines=9) @@
|
| 547 |
|
* (non-PHPdoc) |
| 548 |
|
* @see \Jobs\Entity\JobInterface::setUser() |
| 549 |
|
*/ |
| 550 |
|
public function setUser(UserInterface $user) |
| 551 |
|
{ |
| 552 |
|
if ($this->user) { |
| 553 |
|
$this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL, false); |
| 554 |
|
} |
| 555 |
|
$this->user = $user; |
| 556 |
|
$this->getPermissions()->grant($user, Permissions::PERMISSION_ALL); |
| 557 |
|
return $this; |
| 558 |
|
} |
| 559 |
|
/** |
| 560 |
|
* (non-PHPdoc) |
| 561 |
|
* @see \Jobs\Entity\JobInterface::getUser() |
module/Organizations/src/Organizations/Entity/Organization.php 1 location
|
@@ 775-783 (lines=9) @@
|
| 772 |
|
return $employees; |
| 773 |
|
} |
| 774 |
|
|
| 775 |
|
public function setUser(UserInterface $user) |
| 776 |
|
{ |
| 777 |
|
if ($this->user) { |
| 778 |
|
$this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL, false); |
| 779 |
|
} |
| 780 |
|
$this->user = $user; |
| 781 |
|
$this->getPermissions()->grant($user, Permissions::PERMISSION_ALL); |
| 782 |
|
|
| 783 |
|
return $this; |
| 784 |
|
} |
| 785 |
|
|
| 786 |
|
/** |