Project

General

Profile

« Previous | Next » 

Revision 52781

1. Dockerize service
2. Add authorization checks
3. Handle exceptions ( controller advice, exception package)
4. Login-logout operations bug fixes

View differences:

RepoManagerContextLoaderListener.java
32 32
		String repoMode = props.getProperty("services.validator.mode.repo");
33 33
		String userMode = props.getProperty("services.validator.mode.user");
34 34
		Boolean standaloneMode = Boolean.parseBoolean(props.getProperty("services.validator.mode.standalone"));
35
		
35

  
36 36
		logger.info("User mode: " + userMode);
37 37
		logger.info("Repo mode: " + repoMode);
38 38
		logger.info("Standalone mode: " + standaloneMode);
......
77 77
				"classpath*:/gr/uoa/di/driver/app/springContext-commons.xml",
78 78
				"classpath*:/gr/uoa/di/driver/app/springContext-registrator.xml"
79 79
		};
80
		
80

  
81 81
		if (standaloneMode) {
82 82
			logger.debug("Loading contexts for standalone mode");
83 83
			ctx.setConfigLocations((String[])ArrayUtils.addAll(springContextCore,springContextForStandalone));
......
85 85
			logger.debug("Loading contexts for dnet");
86 86
			ctx.setConfigLocations((String[])ArrayUtils.addAll(springContextCore,springContextForIS));
87 87
		}
88
		
88

  
89 89
		ctx.refresh();
90
		
90

  
91 91
		logger.debug("done");
92
		
92

  
93 93
		return ctx;
94
	}	
95
	
94
	}
95

  
96 96
	private Properties loadProperties() {
97 97
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {
98 98
				"classpath*:/eu/dnetlib/repo/manager/server/config/springContext-repo-manager-config.xml"
99 99
		});
100
		
100

  
101 101
		CascadingPropertyLoader pLoader = (CascadingPropertyLoader) ctx.getBean("propertyLoader");
102 102
		Properties props = pLoader.getProperties();
103
		
103

  
104 104
		ctx.destroy();
105 105
		ctx.close();
106 106
		return props;

Also available in: Unified diff