Example #1
0
 @Override
 protected void initialiseHandler(BeanFactory factory) {
   setServices((ServiceRegistry) factory.getBean(ServiceRegistry.SERVICE_REGISTRY));
   fillContent = new FillContent();
   fillContent.setServiceRegistry(services);
   fillPdf = new FillPDF();
   fillPdf.setServiceRegistry(services);
   AlfrescoStructure.setServiceRegistry(services);
 }
Example #2
0
 private void executeActionScript(String actionValue, Map<String, String> commands)
     throws ValueActionException, DuplicateInputPdfException, MissingInputPdfKeyException,
         IOException, NoPdfFileException, DuplicateOutputContentException,
         MissingOutputContentException, NoContentException, InvalidValueOfParameterException,
         AttributeContentException, InvalidAssociationException, OutputTypeKeyException,
         InvalidContentException, MissingOutputPathForPDFException, DocumentException,
         MissingOverridePdfKeyException, FileExistsException, FileNotFoundException,
         MissingDateFormatException, InvalidNodeRefException, ParseException,
         InvalidFormatParameterException {
   if (actionValue.equals(ConstantsLanguage.ACTION_VALUES[0])) {
     fillContent.execute(commands);
   } else if (actionValue.equals(ConstantsLanguage.ACTION_VALUES[1])) {
     fillPdf.execute(commands);
   } else {
     throw new ValueActionException(ValueActionException.BAD_FORMAT);
   }
 }