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/Organizations/src/Organizations/Entity/Organization.php 1 location
|
@@ 736-744 (lines=9) @@
|
| 733 |
|
} |
| 734 |
|
|
| 735 |
|
|
| 736 |
|
public function setUser(UserInterface $user) |
| 737 |
|
{ |
| 738 |
|
if ($this->user) { |
| 739 |
|
$this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL, false); |
| 740 |
|
} |
| 741 |
|
$this->user = $user; |
| 742 |
|
$this->getPermissions()->grant($user, Permissions::PERMISSION_ALL); |
| 743 |
|
|
| 744 |
|
return $this; |
| 745 |
|
} |
| 746 |
|
|
| 747 |
|
/** |
module/Jobs/src/Jobs/Entity/Job.php 1 location
|
@@ 545-553 (lines=9) @@
|
| 542 |
|
* (non-PHPdoc) |
| 543 |
|
* @see \Jobs\Entity\JobInterface::setUser() |
| 544 |
|
*/ |
| 545 |
|
public function setUser(UserInterface $user) |
| 546 |
|
{ |
| 547 |
|
if ($this->user) { |
| 548 |
|
$this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL, false); |
| 549 |
|
} |
| 550 |
|
$this->user = $user; |
| 551 |
|
$this->getPermissions()->grant($user, Permissions::PERMISSION_ALL); |
| 552 |
|
return $this; |
| 553 |
|
} |
| 554 |
|
/** |
| 555 |
|
* (non-PHPdoc) |
| 556 |
|
* @see \Jobs\Entity\JobInterface::getUser() |