Revision 47404
Added by Antonis Lempesis almost 7 years ago
modules/uoa-commons/trunk/deploy.info | ||
---|---|---|
1 | 1 |
{ |
2 | 2 |
"type_source": "SVN", |
3 | 3 |
"goal": "package -U -T 4C source:jar", |
4 |
"url": "http://svn-public.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-commons/trunk",
|
|
5 |
"deploy_repository": "dnet4-snapshots", |
|
4 |
"url": "http://svn-public.driver.research-infrastructures.eu/driver/dnet45/modules/uoa-commons/trunk",
|
|
5 |
"deploy_repository": "dnet45-snapshots",
|
|
6 | 6 |
"version": "4", |
7 | 7 |
"mail": "antleb@di.uoa.gr, kiatrop@di.uoa.gr", |
8 |
"deploy_repository_url": "http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-snapshots", |
|
8 |
"deploy_repository_url": "http://maven.research-infrastructures.eu/nexus/content/repositories/dnet45-snapshots",
|
|
9 | 9 |
"name": "uoa-commons" |
10 |
} |
|
10 |
} |
modules/uoa-commons/trunk/src/test/java/gr/uoa/di/driver/xml/TestVocabularyXmlConverter.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import javax.xml.bind.JAXBException; |
4 | 4 |
|
5 |
import junit.framework.Assert; |
|
6 |
|
|
5 |
import org.junit.Assert; |
|
7 | 6 |
import org.junit.Test; |
8 | 7 |
|
9 | 8 |
import eu.dnetlib.domain.enabling.Vocabulary; |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/enabling/ISLookUp.java | ||
---|---|---|
53 | 53 |
List<String> fetch(String XQuery) throws ISLookUpException; |
54 | 54 |
|
55 | 55 |
/** |
56 |
* Performs a search by criteria. |
|
57 |
* |
|
58 |
* @param criteria the search criteria. |
|
59 |
* @return An EPR poiting to a result set with the results. |
|
60 |
* @throws ISLookUpException |
|
61 |
*/ |
|
62 |
EPR search(SearchCriteria criteria) throws ISLookUpException; |
|
63 |
|
|
64 |
/** |
|
65 |
* Performs a direct XQuery search and returns a list of xml profiles that |
|
66 |
* match the criteria, without any processing. |
|
67 |
* |
|
68 |
* @param XQuery the xquery. |
|
69 |
* @return An EPR poiting to a result set with the results. |
|
70 |
* @throws ISLookUpException |
|
71 |
*/ |
|
72 |
EPR search(String XQuery) throws ISLookUpException; |
|
73 |
|
|
74 |
/** |
|
75 | 56 |
* Uses the appropriate method in ISLookUp and performs a query without |
76 | 57 |
* using a result set. This method should be used only when a small number |
77 | 58 |
* of results is expected. If there is a large number of results, there is a |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/enabling/islookup/SecurityAwareLookupImpl.java | ||
---|---|---|
101 | 101 |
return list; |
102 | 102 |
} |
103 | 103 |
|
104 |
@Override |
|
105 |
public EPR search(SearchCriteria criteria) throws ISLookUpException { |
|
106 |
return lookUp.search(criteria); |
|
107 |
} |
|
108 |
|
|
109 |
@Override |
|
110 |
public EPR search(String XQuery) throws ISLookUpException { |
|
111 |
return lookUp.search(XQuery); |
|
112 |
} |
|
113 |
|
|
114 | 104 |
public void setLookUp(ISLookUp<R> lookUp) { |
115 | 105 |
this.lookUp = lookUp; |
116 | 106 |
} |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/enabling/islookup/cache/CriteriaCacheKey.java | ||
---|---|---|
5 | 5 |
public class CriteriaCacheKey { |
6 | 6 |
private SearchCriteria criteria = null; |
7 | 7 |
private String XQuery = null; |
8 |
private Mode mode = null; |
|
9 |
|
|
10 |
enum Mode { |
|
11 |
/** Performs quick search */ |
|
12 |
QUICK, |
|
13 |
/** Performs a normal search, using a result set */ |
|
14 |
RS; |
|
15 |
} |
|
16 | 8 |
|
17 |
public CriteriaCacheKey(SearchCriteria criteria, Mode mode) {
|
|
9 |
public CriteriaCacheKey(SearchCriteria criteria) { |
|
18 | 10 |
this.criteria = criteria; |
19 |
this.mode = mode; |
|
20 | 11 |
} |
21 | 12 |
|
22 | 13 |
public SearchCriteria getCriteria() { |
... | ... | |
27 | 18 |
this.criteria = criteria; |
28 | 19 |
} |
29 | 20 |
|
30 |
public Mode getMode() { |
|
31 |
return mode; |
|
32 |
} |
|
33 |
|
|
34 |
public void setMode(Mode mode) { |
|
35 |
this.mode = mode; |
|
36 |
} |
|
37 |
|
|
38 | 21 |
public String getXQuery() { |
39 | 22 |
return this.XQuery; |
40 | 23 |
} |
... | ... | |
44 | 27 |
} |
45 | 28 |
|
46 | 29 |
@Override |
47 |
public int hashCode() { |
|
48 |
final int prime = 31; |
|
49 |
int result = 1; |
|
50 |
result = prime * result |
|
51 |
+ ((criteria == null) ? 0 : criteria.hashCode()); |
|
52 |
result = prime * result + ((mode == null) ? 0 : mode.hashCode()); |
|
53 |
return result; |
|
30 |
public boolean equals(Object o) { |
|
31 |
if (this == o) return true; |
|
32 |
if (o == null || getClass() != o.getClass()) return false; |
|
33 |
|
|
34 |
CriteriaCacheKey that = (CriteriaCacheKey) o; |
|
35 |
|
|
36 |
if (criteria != null ? !criteria.equals(that.criteria) : that.criteria != null) return false; |
|
37 |
return XQuery != null ? XQuery.equals(that.XQuery) : that.XQuery == null; |
|
54 | 38 |
} |
55 | 39 |
|
56 | 40 |
@Override |
57 |
public boolean equals(Object obj) { |
|
58 |
if (this == obj) |
|
59 |
return true; |
|
60 |
if (obj == null) |
|
61 |
return false; |
|
62 |
if (getClass() != obj.getClass()) |
|
63 |
return false; |
|
64 |
CriteriaCacheKey other = (CriteriaCacheKey) obj; |
|
65 |
if (criteria == null) { |
|
66 |
if (other.criteria != null) |
|
67 |
return false; |
|
68 |
} else if (!criteria.equals(other.criteria)) |
|
69 |
return false; |
|
70 |
if (mode == null) { |
|
71 |
if (other.mode != null) |
|
72 |
return false; |
|
73 |
} else if (!mode.equals(other.mode)) |
|
74 |
return false; |
|
75 |
return true; |
|
41 |
public int hashCode() { |
|
42 |
int result = criteria != null ? criteria.hashCode() : 0; |
|
43 |
result = 31 * result + (XQuery != null ? XQuery.hashCode() : 0); |
|
44 |
return result; |
|
76 | 45 |
} |
77 | 46 |
} |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/enabling/islookup/cache/CachingISLookUp.java | ||
---|---|---|
11 | 11 |
import org.apache.log4j.Logger; |
12 | 12 |
|
13 | 13 |
import eu.dnetlib.api.enabling.ISLookUpService; |
14 |
import eu.dnetlib.api.enabling.ISLookUpServiceException; |
|
15 | 14 |
import eu.dnetlib.domain.DriverResource; |
16 |
import eu.dnetlib.domain.EPR; |
|
17 | 15 |
import eu.dnetlib.domain.SearchCriteria; |
18 | 16 |
import gr.uoa.di.driver.enabling.ISLookUp; |
19 | 17 |
import gr.uoa.di.driver.enabling.ISLookUpException; |
20 |
import gr.uoa.di.driver.enabling.islookup.cache.CriteriaCacheKey.Mode; |
|
21 | 18 |
import gr.uoa.di.driver.util.ServiceLocator; |
22 | 19 |
import gr.uoa.di.driver.xml.ResourceToXmlConverter; |
23 | 20 |
|
... | ... | |
56 | 53 |
logger.debug("Fetching results for query: " + |
57 | 54 |
converter.toXQueryString(criteria)); |
58 | 55 |
|
59 |
CriteriaCacheKey key = new CriteriaCacheKey(criteria, Mode.RS);
|
|
56 |
CriteriaCacheKey key = new CriteriaCacheKey(criteria); |
|
60 | 57 |
key.setXQuery(converter.toXQueryString(criteria)); |
61 | 58 |
|
62 | 59 |
Element element = criteriaCache.get(key); |
... | ... | |
101 | 98 |
logger.debug("Performing quick search for query: " |
102 | 99 |
+ converter.toXQueryString(criteria)); |
103 | 100 |
|
104 |
CriteriaCacheKey key = new CriteriaCacheKey(criteria, Mode.QUICK);
|
|
101 |
CriteriaCacheKey key = new CriteriaCacheKey(criteria); |
|
105 | 102 |
key.setXQuery(converter.toXQueryString(criteria)); |
106 | 103 |
Element element = criteriaCache.get(key); |
107 | 104 |
|
... | ... | |
127 | 124 |
throw new ISLookUpException("More than one results in query"); |
128 | 125 |
} |
129 | 126 |
|
130 |
@Override |
|
131 |
public EPR search(SearchCriteria criteria) throws ISLookUpException { |
|
132 |
if (logger.isDebugEnabled()) |
|
133 |
logger.debug("Performing search for query: " + |
|
134 |
converter.toXQueryString(criteria)); |
|
135 |
|
|
136 |
return this.search(converter.toXQueryString(criteria)); |
|
137 |
} |
|
138 |
|
|
139 |
@Override |
|
140 |
public EPR search(String XQuery) throws ISLookUpException { |
|
141 |
try { |
|
142 |
if (logger.isDebugEnabled()) |
|
143 |
logger.debug("Performing search for query: " + |
|
144 |
XQuery); |
|
145 |
|
|
146 |
return lookupLocator.getService().searchProfile(XQuery); |
|
147 |
} catch (ISLookUpServiceException e) { |
|
148 |
throw new ISLookUpException(e); |
|
149 |
} |
|
150 |
} |
|
151 |
|
|
152 | 127 |
public void setLookupLocator(ServiceLocator<ISLookUpService> lookupLocator) { |
153 | 128 |
this.lookupLocator = lookupLocator; |
154 | 129 |
} |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/enabling/islookup/cache/LookUpEntryFactory.java | ||
---|---|---|
11 | 11 |
import eu.dnetlib.api.enabling.ISLookUpServiceException; |
12 | 12 |
import eu.dnetlib.domain.DriverResource; |
13 | 13 |
import eu.dnetlib.domain.EPR; |
14 |
import gr.uoa.di.driver.enabling.islookup.cache.CriteriaCacheKey.Mode; |
|
15 |
import gr.uoa.di.driver.enabling.resultset.ResultSet; |
|
16 | 14 |
import gr.uoa.di.driver.enabling.resultset.ResultSetFactory; |
17 | 15 |
import gr.uoa.di.driver.util.ServiceLocator; |
18 | 16 |
|
... | ... | |
30 | 28 |
} else if (key instanceof CriteriaCacheKey) { |
31 | 29 |
CriteriaCacheKey args = (CriteriaCacheKey) key; |
32 | 30 |
String XQuery = args.getXQuery(); |
33 |
Mode mode = args.getMode(); |
|
34 | 31 |
|
35 |
entry = this.getByCriteria(XQuery, mode);
|
|
32 |
entry = this.getByCriteria(XQuery); |
|
36 | 33 |
} else { |
37 | 34 |
logger.warn("key is not id or query"); |
38 | 35 |
logger.warn("key is: " + key + "(" + key.getClass() + ")"); |
... | ... | |
41 | 38 |
return entry; |
42 | 39 |
} |
43 | 40 |
|
44 |
private List<String> getByCriteria(String XQuery, Mode mode) throws ISLookUpServiceException { |
|
45 |
List<String> res = null; |
|
46 |
|
|
47 |
switch (mode) { |
|
48 |
case RS: |
|
49 |
logger.debug("Mode is 'RS'. Performing normal search"); |
|
50 |
EPR epr = lookUpServiceLocator.getService().searchProfile(XQuery); |
|
51 |
ResultSet<String> rs = rsFactory.createResultSet(epr); |
|
52 |
|
|
53 |
if (rs.size() > 0) |
|
54 |
res = rs.get(1, rs.size()); |
|
55 |
else |
|
56 |
res = Collections.emptyList(); |
|
57 |
break; |
|
58 |
case QUICK: |
|
59 |
logger.debug("Mode is 'QUICK'. Performing quick search"); |
|
60 |
res = lookUpServiceLocator.getService().quickSearchProfile(XQuery); |
|
61 |
break; |
|
62 |
} |
|
63 |
|
|
64 |
return res; |
|
41 |
private List<String> getByCriteria(String XQuery) throws ISLookUpServiceException { |
|
42 |
return lookUpServiceLocator.getService().quickSearchProfile(XQuery); |
|
65 | 43 |
} |
66 | 44 |
|
67 | 45 |
private String getById(String key) throws ISLookUpServiceException { |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/enabling/islookup/cache/SecurityAwareCachingISLookUp.java | ||
---|---|---|
126 | 126 |
return map; |
127 | 127 |
} |
128 | 128 |
|
129 |
@Override |
|
130 |
public EPR search(SearchCriteria criteria) throws ISLookUpException { |
|
131 |
return lookup.search(criteria); |
|
132 |
} |
|
133 |
|
|
134 |
@Override |
|
135 |
public EPR search(String XQuery) throws ISLookUpException { |
|
136 |
return lookup.search(XQuery); |
|
137 |
} |
|
138 |
|
|
139 | 129 |
public CachingISLookUp<D> getLookup() { |
140 | 130 |
return lookup; |
141 | 131 |
} |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/enabling/islookup/ISLookUpImpl.java | ||
---|---|---|
10 | 10 |
import eu.dnetlib.api.enabling.ISLookUpService; |
11 | 11 |
import eu.dnetlib.api.enabling.ISLookUpServiceException; |
12 | 12 |
import eu.dnetlib.domain.DriverResource; |
13 |
import eu.dnetlib.domain.EPR; |
|
14 | 13 |
import eu.dnetlib.domain.SearchCriteria; |
15 | 14 |
import gr.uoa.di.driver.enabling.ISLookUp; |
16 | 15 |
import gr.uoa.di.driver.enabling.ISLookUpException; |
17 |
import gr.uoa.di.driver.enabling.resultset.ResultSet; |
|
18 | 16 |
import gr.uoa.di.driver.enabling.resultset.ResultSetFactory; |
19 | 17 |
import gr.uoa.di.driver.util.ServiceLocator; |
20 | 18 |
import gr.uoa.di.driver.xml.ResourceToXmlConverter; |
... | ... | |
24 | 22 |
|
25 | 23 |
private ServiceLocator<ISLookUpService> lookupLocator = null; |
26 | 24 |
private ResourceToXmlConverter<D> converter = null; |
27 |
private ResultSetFactory rsFactory = null; |
|
28 | 25 |
|
29 | 26 |
public D getById(String profileId) throws ISLookUpException { |
30 | 27 |
try { |
... | ... | |
55 | 52 |
String xQuery = converter.toXQueryString(criteria); |
56 | 53 |
logger.debug("xQuery: " + xQuery); |
57 | 54 |
|
58 |
EPR epr = lookupLocator.getService().searchProfile(xQuery); |
|
59 |
ResultSet<String> xmls = rsFactory.createResultSet(epr);
|
|
55 |
|
|
56 |
List<String> xmls = lookupLocator.getService().quickSearchProfile(xQuery);
|
|
60 | 57 |
List<D> res = new ArrayList<D>(); |
61 | 58 |
|
62 | 59 |
logger.debug("Getting results from result set. Result set size: " |
... | ... | |
65 | 62 |
logger.debug("starting parsing"); |
66 | 63 |
|
67 | 64 |
if (xmls.size() > 0) { |
68 |
for (String xml : xmls.get(1, xmls.size()))
|
|
65 |
for (String xml : xmls) |
|
69 | 66 |
res.add(this.parseXmlProfile(xml)); |
70 | 67 |
} |
71 |
|
|
72 | 68 |
logger.debug("parsed"); |
73 | 69 |
|
74 | 70 |
return res; |
... | ... | |
90 | 86 |
} |
91 | 87 |
|
92 | 88 |
public List<String> fetch(String XQuery) throws ISLookUpException { |
93 |
ResultSet<String> rs; |
|
89 |
|
|
94 | 90 |
try { |
95 |
rs = rsFactory.createResultSet(lookupLocator.getService().searchProfile( |
|
96 |
XQuery)); |
|
97 |
|
|
98 |
if (rs.size() > 0) |
|
99 |
return rs.get(1, rs.size()); |
|
100 |
else |
|
101 |
return new ArrayList<String>(); |
|
91 |
return lookupLocator.getService().quickSearchProfile(XQuery); |
|
102 | 92 |
} catch (ISLookUpServiceException e) { |
103 | 93 |
throw new ISLookUpException(e); |
104 | 94 |
} |
... | ... | |
134 | 124 |
throw new ISLookUpException("More than one results in query"); |
135 | 125 |
} |
136 | 126 |
|
137 |
@Override |
|
138 |
public EPR search(SearchCriteria criteria) throws ISLookUpException { |
|
139 |
try { |
|
140 |
return lookupLocator.getService().searchProfile( |
|
141 |
converter.toXQueryString(criteria)); |
|
142 |
} catch (ISLookUpServiceException e) { |
|
143 |
throw new ISLookUpException(e); |
|
144 |
} |
|
145 |
} |
|
146 |
|
|
147 |
@Override |
|
148 |
public EPR search(String XQuery) throws ISLookUpException { |
|
149 |
try { |
|
150 |
return lookupLocator.getService().searchProfile(XQuery); |
|
151 |
} catch (ISLookUpServiceException e) { |
|
152 |
throw new ISLookUpException(e); |
|
153 |
} |
|
154 |
} |
|
155 |
|
|
156 | 127 |
public void setLookupLocator(ServiceLocator<ISLookUpService> lookupLocator) { |
157 | 128 |
this.lookupLocator = lookupLocator; |
158 | 129 |
} |
... | ... | |
160 | 131 |
public void setConverter(ResourceToXmlConverter<D> converter) { |
161 | 132 |
this.converter = converter; |
162 | 133 |
} |
163 |
|
|
164 |
public void setRsFactory(ResultSetFactory rsFactory) { |
|
165 |
this.rsFactory = rsFactory; |
|
166 |
} |
|
167 | 134 |
} |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/enabling/islookup/ISLookUpFactory.java | ||
---|---|---|
44 | 44 |
|
45 | 45 |
lookup.setConverter(new SecurityProfileXmlConverter()); |
46 | 46 |
lookup.setLookupLocator(lookupLocator); |
47 |
lookup.setRsFactory(rsFactory); |
|
48 | 47 |
|
49 | 48 |
lookUpMap.put(SecurityProfile.class, lookup); |
50 | 49 |
} |
... | ... | |
108 | 107 |
|
109 | 108 |
((ISLookUpImpl<D>) lookup).setConverter(this.getConverter(resourceClass)); |
110 | 109 |
((ISLookUpImpl<D>) lookup).setLookupLocator(lookupLocator); |
111 |
((ISLookUpImpl<D>) lookup).setRsFactory(this.rsFactory); |
|
112 | 110 |
|
113 | 111 |
if (SecureDriverResource.class.isAssignableFrom(resourceClass)) { |
114 | 112 |
SecurityAwareLookupImpl<SecureDriverResource> secureLookup = new SecurityAwareLookupImpl<SecureDriverResource>(); |
modules/uoa-commons/trunk/src/main/java/gr/uoa/di/driver/app/InitialiazingServiceRegistrationManager.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import javax.xml.ws.Endpoint; |
4 | 4 |
|
5 |
import eu.dnetlib.enabling.is.registry.rmi.ISRegistryService; |
|
5 | 6 |
import org.apache.log4j.Logger; |
6 | 7 |
|
7 | 8 |
import eu.dnetlib.domain.EPR; |
... | ... | |
49 | 50 |
if (removeRegistration) { |
50 | 51 |
logger.debug("Removing service registration"); |
51 | 52 |
|
52 |
this.getRegistrator().getRegistryLocator().getService()
|
|
53 |
this.getRegistrator().getServiceLocator().getService(ISRegistryService.class)
|
|
53 | 54 |
.deleteProfile(this.getProfileId()); |
54 | 55 |
} |
55 | 56 |
} catch (ISRegistryException e) { |
modules/uoa-commons/trunk/src/main/resources/gr/uoa/di/driver/app/springContext-commons.xml | ||
---|---|---|
2 | 2 |
|
3 | 3 |
<beans xmlns="http://www.springframework.org/schema/beans" |
4 | 4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
5 |
xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring" |
|
6 | 5 |
|
7 |
xsi:schemaLocation=" |
|
8 |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd |
|
9 |
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring |
|
10 |
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd" |
|
6 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd" |
|
11 | 7 |
default-autowire="no"> |
12 | 8 |
|
13 | 9 |
<!-- the nkua registry wrappers --> |
... | ... | |
228 | 224 |
<!-- <entry key="eu.dnetlib.domain.functionality.WebInterfaceLayout" value="gr.uoa.di.driver.xml.WebInterfaceLayoutXmlConverter" />--> |
229 | 225 |
</map> |
230 | 226 |
</property> |
231 |
<property name="endpointResolver" ref="serviceResolver" />
|
|
227 |
<property name="endpointResolver" ref="endpointResolver" />
|
|
232 | 228 |
<property name="securityLookUp" ref="securityLookUp" /> |
233 | 229 |
</bean> |
234 | 230 |
|
modules/uoa-commons/trunk/src/main/resources/gr/uoa/di/driver/app/springContext-lookupClients.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | 3 |
<beans xmlns="http://www.springframework.org/schema/beans" |
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" |
|
5 |
xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxws="http://cxf.apache.org/jaxws" |
|
6 |
xmlns:p="http://http://www.springframework.org/schema/p" |
|
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
7 | 5 |
|
8 | 6 |
xsi:schemaLocation=" |
9 |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd |
|
10 |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd |
|
11 |
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd |
|
12 |
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd" |
|
7 |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd" |
|
8 |
|
|
13 | 9 |
default-autowire="no" default-lazy-init="false"> |
14 | 10 |
|
15 | 11 |
<!-- |
... | ... | |
23 | 19 |
<constructor-arg index="0" value="PENDING" /> |
24 | 20 |
</bean> |
25 | 21 |
</property> |
26 |
<property name="rsFactory" ref="resultSetFactory" /> |
|
27 | 22 |
<property name="lookupLocator" ref="lookupServiceLocator" /> |
28 | 23 |
</bean> |
29 | 24 |
|
... | ... | |
32 | 27 |
<bean class="gr.uoa.di.driver.xml.SecurityProfileXmlConverter" /> |
33 | 28 |
</property> |
34 | 29 |
<property name="lookupLocator" ref="lookupServiceLocator" /> |
35 |
<property name="rsFactory" ref="resultSetFactory" /> |
|
36 | 30 |
</bean> |
37 | 31 |
|
38 | 32 |
<bean id="userLookUp" factory-bean="lookUpFactory" |
modules/uoa-commons/trunk/src/main/resources/gr/uoa/di/driver/app/springContext-lookupFactory.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | 3 |
<beans xmlns="http://www.springframework.org/schema/beans" |
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" |
|
5 |
xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxws="http://cxf.apache.org/jaxws" |
|
6 |
xmlns:p="http://http://www.springframework.org/schema/p" |
|
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
7 | 5 |
|
8 | 6 |
xsi:schemaLocation=" |
9 |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd |
|
10 |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd |
|
11 |
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd |
|
12 |
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd" |
|
7 |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd" |
|
13 | 8 |
default-autowire="no" default-lazy-init="false"> |
14 | 9 |
|
15 | 10 |
<bean id="cacheManager" class="net.sf.ehcache.CacheManager" /> |
modules/uoa-commons/trunk/src/main/resources/gr/uoa/di/driver/app/springContext-registrator.xml | ||
---|---|---|
2 | 2 |
<beans xmlns="http://www.springframework.org/schema/beans" |
3 | 3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" |
4 | 4 |
xmlns:t="http://dnetlib.eu/springbeans/t" xmlns:template="http://dnetlib.eu/springbeans/template" |
5 |
|
|
5 | 6 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
6 | 7 |
http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd" |
7 | 8 |
default-autowire="no"> |
... | ... | |
10 | 11 |
<!-- service registrator --> |
11 | 12 |
<bean id="serviceRegistrator" |
12 | 13 |
class="eu.dnetlib.enabling.tools.registration.ServiceRegistrator" |
13 |
p:registryLocator-ref="cnr.registryLocator" p:lookupLocator-ref="cnr.lookUpLocator"
|
|
14 |
p:serviceLocator-ref="cnr.uniqueServiceLocator"
|
|
14 | 15 |
p:serviceNameResolver-ref="serviceNameResolver" |
15 | 16 |
p:eprBuilder-ref="jaxwsEndpointReferenceBuilder" p:hnmLocator-ref="${services.registration.default.hnmlocator}" /> |
16 | 17 |
|
17 | 18 |
<bean id="dynamicHNMLocator" class="eu.dnetlib.enabling.tools.DynamicHNMLocator" |
18 |
p:lookupLocator-ref="cnr.lookUpLocator" />
|
|
19 |
p:serviceLocator-ref="cnr.uniqueServiceLocator" />
|
|
19 | 20 |
|
20 | 21 |
<bean id="nullHNMLocator" class="eu.dnetlib.enabling.tools.NullHNMLocator" /> |
21 | 22 |
|
... | ... | |
33 | 34 |
destroy-method="destroy" |
34 | 35 |
p:service-ref="$service$" |
35 | 36 |
p:endpoint-ref="$endpoint$" |
36 |
p:lookupLocator-ref="cnr.lookUpLocator"
|
|
37 |
p:serviceLocator-ref="cnr.uniqueServiceLocator"
|
|
37 | 38 |
p:registrator-ref="$serviceRegistrator$" |
38 | 39 |
p:eprBuilder-ref="$eprBuilder$" |
39 | 40 |
p:removeRegistration="\${services.registration.default.removeRegistration}" /> |
40 | 41 |
|
41 | 42 |
<bean t:id="$name$Trigger" |
42 |
class="org.springframework.scheduling.quartz.SimpleTriggerBean" |
|
43 |
class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean"
|
|
43 | 44 |
p:startDelay="\${services.registration.delay}" p:repeatInterval="4000" |
44 | 45 |
p:jobDetail-ref="$name$TriggerDetails" /> |
45 | 46 |
|
modules/uoa-commons/trunk/src/main/resources/gr/uoa/di/driver/app/springContext-lookupTemplates.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<beans |
3 | 3 |
xmlns="http://www.springframework.org/schema/beans" |
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
5 |
xmlns:p="http://www.springframework.org/schema/p" |
|
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
6 | 5 |
xmlns:t="http://dnetlib.eu/springbeans/t" |
7 | 6 |
xmlns:template="http://dnetlib.eu/springbeans/template" |
8 | 7 |
|
modules/uoa-commons/trunk/pom.xml | ||
---|---|---|
2 | 2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
3 | 3 |
<parent> |
4 | 4 |
<groupId>eu.dnetlib</groupId> |
5 |
<artifactId>dnet-parent</artifactId> |
|
5 |
<artifactId>dnet45-parent</artifactId>
|
|
6 | 6 |
<version>1.0.0-SNAPSHOT</version> |
7 | 7 |
</parent> |
8 | 8 |
<modelVersion>4.0.0</modelVersion> |
9 | 9 |
<groupId>eu.dnetlib</groupId> |
10 | 10 |
<artifactId>uoa-commons</artifactId> |
11 | 11 |
<packaging>jar</packaging> |
12 |
<version>1.2.1-SNAPSHOT</version>
|
|
12 |
<version>2.0.0-SNAPSHOT</version>
|
|
13 | 13 |
<scm> |
14 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-commons/trunk</developerConnection>
|
|
14 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/uoa-commons/trunk</developerConnection>
|
|
15 | 15 |
</scm> |
16 | 16 |
|
17 | 17 |
<properties> |
... | ... | |
60 | 60 |
<dependency> |
61 | 61 |
<groupId>eu.dnetlib</groupId> |
62 | 62 |
<artifactId>uoa-api</artifactId> |
63 |
<version>[1.2.0, 1.3.0-SNAPSHOT)</version>
|
|
63 |
<version>[2.0.0-SNAPSHOT, 3.0.0)</version>
|
|
64 | 64 |
</dependency> |
65 | 65 |
<dependency> |
66 | 66 |
<groupId>eu.dnetlib</groupId> |
67 | 67 |
<artifactId>uoa-domain</artifactId> |
68 |
<version>[1.2.0, 1.3.0-SNAPSHOT)</version>
|
|
68 |
<version>[2.0.0-SNAPSHOT, 3.0.0)</version>
|
|
69 | 69 |
</dependency> |
70 | 70 |
<dependency> |
71 | 71 |
<groupId>eu.dnetlib</groupId> |
72 | 72 |
<artifactId>uoa-utils</artifactId> |
73 |
<version>[1.2.0, 1.3.0-SNAPSHOT)</version>
|
|
73 |
<version>[2.0.0-SNAPSHOT, 3.0.0)</version>
|
|
74 | 74 |
</dependency> |
75 | 75 |
<dependency> |
76 | 76 |
<groupId>org.springframework</groupId> |
... | ... | |
80 | 80 |
<dependency> |
81 | 81 |
<groupId>eu.dnetlib</groupId> |
82 | 82 |
<artifactId>cnr-misc-utils</artifactId> |
83 |
<version>[1.0.0]</version>
|
|
83 |
<version>[1.0.4-SNAPSHOT, 2.0.0)</version>
|
|
84 | 84 |
</dependency> |
85 | 85 |
<dependency> |
86 | 86 |
<groupId>eu.dnetlib</groupId> |
87 | 87 |
<artifactId>cnr-spring-utils</artifactId> |
88 |
<version>[1.0.0]</version>
|
|
88 |
<version>[1.0.1-SNAPSHOT]</version>
|
|
89 | 89 |
</dependency> |
90 | 90 |
<dependency> |
91 | 91 |
<groupId>commons-dbcp</groupId> |
Also available in: Unified diff
moved to dnet45