/**
  * Sets the default object Acl entry for the supplied Vote.
  *
  * @param  VoteInterface $vote
  * @return void
  */
 public function setDefaultAcl(VoteInterface $vote)
 {
     $objectIdentity = $this->objectRetrieval->getObjectIdentity($vote);
     $acl = $this->aclProvider->createAcl($objectIdentity);
     if ($vote instanceof SignedVoteInterface && null !== $vote->getVoter()) {
         $securityIdentity = UserSecurityIdentity::fromAccount($vote->getVoter());
         $acl->insertObjectAce($securityIdentity, MaskBuilder::MASK_OWNER);
     }
     $this->aclProvider->updateAcl($acl);
 }
 /**
  * Sets the default object Acl entry for the supplied Thread.
  *
  * @param ThreadInterface $thread
  * @return void
  */
 public function setDefaultAcl(ThreadInterface $thread)
 {
     $objectIdentity = $this->objectRetrieval->getObjectIdentity($thread);
     $acl = $this->aclProvider->createAcl($objectIdentity);
     if ($thread instanceof SignedThreadInterface) {
         $securityIdentity = UserSecurityIdentity::fromAccount($thread->getAuthor());
         $acl->insertObjectAce($securityIdentity, MaskBuilder::MASK_OWNER);
     }
     $this->aclProvider->updateAcl($acl);
 }
 /**
  * Sets the default object Acl entry for the supplied Thread.
  *
  * @param  ThreadInterface $thread
  * @return void
  */
 public function setDefaultAcl(ThreadInterface $thread)
 {
     $objectIdentity = $this->objectRetrieval->getObjectIdentity($thread);
     $acl = $this->aclProvider->createAcl($objectIdentity);
     $this->aclProvider->updateAcl($acl);
 }
 /**
  * Sets the default object Acl entry for the supplied Invoice Item.
  *
  * @param  InvoiceItemInterface $invoiceItem
  * @return void
  */
 public function setDefaultAcl(InvoiceItemInterface $invoiceItem)
 {
     $objectIdentity = $this->objectRetrieval->getObjectIdentity($invoiceItem);
     $acl = $this->aclProvider->createAcl($objectIdentity);
     $this->aclProvider->updateAcl($acl);
 }