/**
  * @return void
  */
 protected function initializeAction()
 {
     if ($this->arguments->hasArgument('node')) {
         $this->arguments->getArgument('node')->getPropertyMappingConfiguration()->setTypeConverterOption('TYPO3\\TYPO3CR\\TypeConverter\\NodeConverter', \TYPO3\TYPO3CR\TypeConverter\NodeConverter::REMOVED_CONTENT_SHOWN, TRUE);
     }
     if ($this->arguments->hasArgument('nodes')) {
         $this->arguments->getArgument('nodes')->getPropertyMappingConfiguration()->forProperty('*')->setTypeConverterOption('TYPO3\\TYPO3CR\\TypeConverter\\NodeConverter', \TYPO3\TYPO3CR\TypeConverter\NodeConverter::REMOVED_CONTENT_SHOWN, TRUE);
     }
     parent::initializeAction();
 }
 /**
  * @return void
  */
 protected function initializeAction()
 {
     parent::initializeAction();
     $translationHelper = new TranslationHelper();
     $this->setTitle($translationHelper->translate($this->moduleConfiguration['label']) . ' :: ' . $translationHelper->translate(str_replace('label', 'action.', $this->moduleConfiguration['label']) . $this->request->getControllerActionName()));
     if ($this->arguments->hasArgument('user')) {
         $propertyMappingConfigurationForUser = $this->arguments->getArgument('user')->getPropertyMappingConfiguration();
         $propertyMappingConfigurationForUserName = $propertyMappingConfigurationForUser->forProperty('user.name');
         $propertyMappingConfigurationForPrimaryAccount = $propertyMappingConfigurationForUser->forProperty('user.primaryAccount');
         $propertyMappingConfigurationForPrimaryAccount->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_TARGET_TYPE, Account::class);
         /** @var PropertyMappingConfiguration $propertyMappingConfiguration */
         foreach (array($propertyMappingConfigurationForUser, $propertyMappingConfigurationForUserName, $propertyMappingConfigurationForPrimaryAccount) as $propertyMappingConfiguration) {
             $propertyMappingConfiguration->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED, true);
         }
     }
     $this->currentUser = $this->userService->getCurrentUser();
 }
 public function initializeAction()
 {
     parent::initializeAction();
     if ($this->arguments->hasArgument('receiverSource')) {
         if (!$this->request->hasArgument('receiverSourceType')) {
             throw new \Exception('TODO: receiverSourceType not specified.');
         }
         $receiverSourceType = $this->request->getArgument('receiverSourceType');
         if (!isset($this->receiverSourceTypes[$receiverSourceType])) {
             throw new \Exception(sprintf('TODO: receiverSourceType "%s" not configured.', $receiverSourceType));
         }
         if (!isset($this->receiverSourceTypes[$receiverSourceType]['className'])) {
             throw new \Exception(sprintf('TODO: receiverSourceType "%s" does not have a class name configured.', $receiverSourceType));
         }
         $this->arguments->getArgument('receiverSource')->setDataType($this->receiverSourceTypes[$receiverSourceType]['className']);
         $this->initializeActionMethodValidators();
     }
 }
 /**
  * @return void
  */
 protected function initializeUpdateAction()
 {
     $converter = new PersistentObjectConverter();
     $this->arguments->getArgument('workspace')->getPropertyMappingConfiguration()->forProperty('owner')->setTypeConverter($converter)->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_TARGET_TYPE, User::class);
     parent::initializeAction();
 }