test_class.declarator: printService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private PrintService printService;
test_class.type: PrintService
test_class.var_name: printService
test_class.declarator: log = LoggerFactory.getLogger(PrintServiceImplTest.class)
test_class.modifier: private final
test_class.original_string: private final Logger log = LoggerFactory.getLogger(PrintServiceImplTest.class);
test_class.type: Logger
test_class.var_name: log
test_class.file: plugin/print/print/src/test/java/org/geomajas/plugin/printing/service/PrintServiceImplTest.java
test_class.identifier: PrintServiceImplTest
test_case.body: @Test
  	public void testGetAllTemplates() throws Exception {
  		List<PrintTemplate> templates = printService.getAllTemplates();
  		Assert.assertEquals(11, templates.size());
  	}
test_case.class_method_signature: PrintServiceImplTest.testGetAllTemplates()
test_case.full_signature: @Test public void testGetAllTemplates()
test_case.identifier: testGetAllTemplates
test_case.invocations: getAllTemplates assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAllTemplates()
focal_class.declarator: log = LoggerFactory.getLogger(PrintServiceImpl.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(PrintServiceImpl.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: ORG_GEOMAJAS = "org.geomajas."
focal_class.modifier: private static final
focal_class.original_string: private static final String ORG_GEOMAJAS = "org.geomajas.";
focal_class.type: String
focal_class.var_name: ORG_GEOMAJAS
focal_class.declarator: MB = 1024L * 1024L
focal_class.modifier: private static final
focal_class.original_string: private static final long MB = 1024L * 1024L;
focal_class.type: long
focal_class.var_name: MB
focal_class.declarator: printTemplateDao
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private PrintTemplateDao printTemplateDao;
focal_class.type: PrintTemplateDao
focal_class.var_name: printTemplateDao
focal_class.declarator: applicationContext
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ApplicationContext applicationContext;
focal_class.type: ApplicationContext
focal_class.var_name: applicationContext
focal_class.declarator: marshaller
focal_class.modifier: @Autowired
  	@Qualifier("printing.printMarshaller")
  	private
focal_class.original_string: @Autowired
  	@Qualifier("printing.printMarshaller")
  	private Marshaller marshaller;
focal_class.type: Marshaller
focal_class.var_name: marshaller
focal_class.declarator: unMarshaller
focal_class.modifier: @Autowired
  	@Qualifier("printing.printMarshaller")
  	private
focal_class.original_string: @Autowired
  	@Qualifier("printing.printMarshaller")
  	private Unmarshaller unMarshaller;
focal_class.type: Unmarshaller
focal_class.var_name: unMarshaller
focal_class.declarator: jaiTileCacheInMb = 64
focal_class.modifier: private
focal_class.original_string: private int jaiTileCacheInMb = 64;
focal_class.type: int
focal_class.var_name: jaiTileCacheInMb
focal_class.declarator: documentMap = Collections.synchronizedMap(new HashMap<String, Document>())
focal_class.modifier: private
focal_class.original_string: private Map<String, Document> documentMap = Collections.synchronizedMap(new HashMap<String, Document>());
focal_class.type: Map<String, Document>
focal_class.var_name: documentMap
focal_class.file: plugin/print/print/src/main/java/org/geomajas/plugin/printing/service/PrintServiceImpl.java
focal_class.identifier: PrintServiceImpl
focal_class.interfaces: implements PrintService
focal_class.class_method_signature: PrintServiceImpl.getAllTemplates()
focal_class.full_signature: public List<PrintTemplate> getAllTemplates()
focal_class.identifier: getAllTemplates
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<PrintTemplate>
focal_class.signature: List<PrintTemplate> getAllTemplates()
focal_class.class_method_signature: PrintServiceImpl.createDefaultTemplate(String pageSize, boolean landscape)
focal_class.full_signature: public PrintTemplate createDefaultTemplate(String pageSize, boolean landscape)
focal_class.identifier: createDefaultTemplate
focal_class.modifiers: public
focal_class.parameters: (String pageSize, boolean landscape)
focal_class.return: PrintTemplate
focal_class.signature: PrintTemplate createDefaultTemplate(String pageSize, boolean landscape)
focal_class.class_method_signature: PrintServiceImpl.saveOrUpdateTemplate(PrintTemplate template)
focal_class.full_signature: public void saveOrUpdateTemplate(PrintTemplate template)
focal_class.identifier: saveOrUpdateTemplate
focal_class.modifiers: public
focal_class.parameters: (PrintTemplate template)
focal_class.return: void
focal_class.signature: void saveOrUpdateTemplate(PrintTemplate template)
focal_class.class_method_signature: PrintServiceImpl.putDocument(Document document)
focal_class.full_signature: public String putDocument(Document document)
focal_class.identifier: putDocument
focal_class.modifiers: public
focal_class.parameters: (Document document)
focal_class.return: String
focal_class.signature: String putDocument(Document document)
focal_class.class_method_signature: PrintServiceImpl.removeDocument(String key)
focal_class.full_signature: public Document removeDocument(String key)
focal_class.identifier: removeDocument
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: Document
focal_class.signature: Document removeDocument(String key)
focal_class.class_method_signature: PrintServiceImpl.getDefaults()
focal_class.full_signature: private List<PrintTemplate> getDefaults()
focal_class.identifier: getDefaults
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: List<PrintTemplate>
focal_class.signature: List<PrintTemplate> getDefaults()
focal_class.class_method_signature: PrintServiceImpl.createTemplate(String pageSize, boolean landscape)
focal_class.full_signature: public PrintTemplate createTemplate(String pageSize, boolean landscape)
focal_class.identifier: createTemplate
focal_class.modifiers: public
focal_class.parameters: (String pageSize, boolean landscape)
focal_class.return: PrintTemplate
focal_class.signature: PrintTemplate createTemplate(String pageSize, boolean landscape)
focal_class.class_method_signature: PrintServiceImpl.getJaiTileCacheInMb()
focal_class.full_signature: public int getJaiTileCacheInMb()
focal_class.identifier: getJaiTileCacheInMb
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getJaiTileCacheInMb()
focal_class.class_method_signature: PrintServiceImpl.setJaiTileCacheInMB(int jaiTileCacheInMb)
focal_class.full_signature: @Api @Deprecated public void setJaiTileCacheInMB(int jaiTileCacheInMb)
focal_class.identifier: setJaiTileCacheInMB
focal_class.modifiers: @Api @Deprecated public
focal_class.parameters: (int jaiTileCacheInMb)
focal_class.return: void
focal_class.signature: void setJaiTileCacheInMB(int jaiTileCacheInMb)
focal_class.class_method_signature: PrintServiceImpl.setJaiTileCacheInMb(int jaiTileCacheInMb)
focal_class.full_signature: @Api public void setJaiTileCacheInMb(int jaiTileCacheInMb)
focal_class.identifier: setJaiTileCacheInMb
focal_class.modifiers: @Api public
focal_class.parameters: (int jaiTileCacheInMb)
focal_class.return: void
focal_class.signature: void setJaiTileCacheInMb(int jaiTileCacheInMb)
focal_class.class_method_signature: PrintServiceImpl.initJai()
focal_class.full_signature: @PostConstruct protected void initJai()
focal_class.identifier: initJai
focal_class.modifiers: @PostConstruct protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initJai()
focal_class.class_method_signature: PrintServiceImpl.createMap()
focal_class.full_signature: private MapComponentImpl createMap()
focal_class.identifier: createMap
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: MapComponentImpl
focal_class.signature: MapComponentImpl createMap()
focal_class.class_method_signature: PrintServiceImpl.createArrow()
focal_class.full_signature: private ImageComponentImpl createArrow()
focal_class.identifier: createArrow
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ImageComponentImpl
focal_class.signature: ImageComponentImpl createArrow()
focal_class.class_method_signature: PrintServiceImpl.createTitle()
focal_class.full_signature: private LabelComponentImpl createTitle()
focal_class.identifier: createTitle
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: LabelComponentImpl
focal_class.signature: LabelComponentImpl createTitle()
focal_class.class_method_signature: PrintServiceImpl.createBar()
focal_class.full_signature: private ScaleBarComponentImpl createBar()
focal_class.identifier: createBar
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ScaleBarComponentImpl
focal_class.signature: ScaleBarComponentImpl createBar()
focal_class.class_method_signature: PrintServiceImpl.createInstance(Class<T> clazz)
focal_class.full_signature: @SuppressWarnings("unchecked") private T createInstance(Class<T> clazz)
focal_class.identifier: createInstance
focal_class.modifiers: @SuppressWarnings("unchecked") private
focal_class.parameters: (Class<T> clazz)
focal_class.return: T
focal_class.signature: T createInstance(Class<T> clazz)
focal_class.class_method_signature: PrintServiceImpl.getPrototypeName(Class serviceClass)
focal_class.full_signature: private String getPrototypeName(Class serviceClass)
focal_class.identifier: getPrototypeName
focal_class.modifiers: private
focal_class.parameters: (Class serviceClass)
focal_class.return: String
focal_class.signature: String getPrototypeName(Class serviceClass)
focal_method.body: public List<PrintTemplate> getAllTemplates() throws PrintingException {
  		List<PrintTemplate> allTemplates = new ArrayList<PrintTemplate>();
  		if (printTemplateDao != null) {
  			try {
  				allTemplates = printTemplateDao.findAll();
  			} catch (IOException e) {
  				log.warn("could not access templates in dao", e);
  			}
  		}
  		allTemplates.addAll(getDefaults());
  		List<PrintTemplate> badTemplates = new ArrayList<PrintTemplate>();
  		for (PrintTemplate printTemplate : allTemplates) {
  			if (printTemplate.getPage() == null) {
  				try {
  					Object o = unMarshaller.unmarshal(new StreamSource(new StringReader(printTemplate.getPageXml())));
  					printTemplate.setPage((PageComponentImpl) o);
  				} catch (Exception e) { // NOSONAR
  					badTemplates.add(printTemplate);
  				}
  			}
  		}
  		allTemplates.removeAll(badTemplates);
  		Collections.sort(allTemplates, new Comparator<PrintTemplate>() {
  
  			public int compare(PrintTemplate p1, PrintTemplate p2) {
  				return p1.getName().compareTo(p2.getName());
  			}
  		});
  		return allTemplates;
  	}
focal_method.class_method_signature: PrintServiceImpl.getAllTemplates()
focal_method.full_signature: public List<PrintTemplate> getAllTemplates()
focal_method.identifier: getAllTemplates
focal_method.invocations: findAll warn addAll getDefaults getPage unmarshal getPageXml setPage add removeAll sort compareTo getName getName
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<PrintTemplate>
focal_method.signature: List<PrintTemplate> getAllTemplates()