/**
* @param Ace $ace
*/
protected function validateAce(Ace $ace)
{
$type = array_search($ace->getType()->getValue(), AceType::TYPE);
if (substr($type, 0, strlen($this->getAllowedAceType())) !== $this->getAllowedAceType()) {
throw new InvalidArgumentException(sprintf('The Ace type with short name "%s" is not allowed in a %sacl.', $ace->getType()->getShortName(), $this->getSddlIdentifier()));
}
}