Project

General

Profile

« Previous | Next » 

Revision 30928

implemented postgres mdstore, added some exception

View differences:

MDStoreInspector.java
64 64
		}
65 65

  
66 66
		public String getFormat() {
67
			return mdstoreDao.getMDStore(id).getFormat();
67
			try {
68
				return mdstoreDao.getMDStore(id).getFormat();
69
			} catch (MDStoreServiceException e) {
70
				return null;
71
			}
68 72
		}
69 73

  
70 74
		public String getLayout() {
71
			return mdstoreDao.getMDStore(id).getLayout();
75
			try {
76
				return mdstoreDao.getMDStore(id).getLayout();
77
			} catch (MDStoreServiceException e) {
78
				return null;
79
			}
72 80
		}
73 81

  
74 82
		public String getInterpretation() {
75
			return mdstoreDao.getMDStore(id).getInterpretation();
83
			try {
84
				return mdstoreDao.getMDStore(id).getInterpretation();
85
			} catch (MDStoreServiceException e) {
86
				return null;
87
			}
76 88
		}
77 89

  
78 90
		public boolean getIndexed() {
......
105 117
	}
106 118

  
107 119
	@RequestMapping(value = "/inspector/mdstores.do")
108
	public void mdstores(final Model model) {
120
	public void mdstores(final Model model) throws MDStoreServiceException {
109 121
		model.addAttribute("mdstores", MappedCollection.listMap(mdstoreDao.listMDStores(), new UnaryFunction<MDStoreDescription, String>() {
110 122

  
111 123
			@Override

Also available in: Unified diff