Subversion Repositories SmartDukaan

Rev

Rev 22202 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22202 Rev 22925
Line 1... Line 1...
1
package com.spice.profitmandi.dao.util;
1
package com.spice.profitmandi.dao.util;
2
 
2
 
3
import java.io.ByteArrayOutputStream;
3
import java.io.ByteArrayOutputStream;
4
import java.io.OutputStream;
-
 
5
import java.lang.reflect.Type;
4
import java.lang.reflect.Type;
6
import java.util.HashMap;
5
import java.util.HashMap;
7
import java.util.Map;
6
import java.util.Map;
8
 
7
 
9
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.beans.factory.annotation.Autowired;
Line 27... Line 26...
27
import com.spice.profitmandi.dao.repository.dtr.Mongo;
26
import com.spice.profitmandi.dao.repository.dtr.Mongo;
28
 
27
 
29
@Component
28
@Component
30
public class FofoDocumentsGenerator {
29
public class FofoDocumentsGenerator {
31
	private static final Map<String, String> titles = new HashMap<String, String>();
30
	private static final Map<String, String> titles = new HashMap<String, String>();
-
 
31
	
32
	@Autowired
32
	@Autowired
33
	Mongo mongoClient;
33
	private Mongo mongoClient;
34
	
34
	
35
	@Autowired
35
	@Autowired
36
	DocumentRepository documentRepository;
36
	private DocumentRepository documentRepository;
37
	
37
	
38
	static {
38
	static {
39
		titles.put("bEntityDoc", "Business Document");
39
		titles.put("bEntityDoc", "Business Document");
40
		titles.put("gstDoc", "GST Doc");
40
		titles.put("gstDoc", "GST Doc");
41
		titles.put("panDoc", "Pan Doc");
41
		titles.put("panDoc", "Pan Doc");