Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
ValidationController.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.io.File; |
4 | 4 |
import java.io.IOException; |
5 |
|
|
6 | 5 |
import javax.annotation.Resource; |
7 | 6 |
import javax.servlet.http.HttpServletRequest; |
8 | 7 |
import javax.xml.parsers.ParserConfigurationException; |
9 | 8 |
import javax.xml.xpath.XPathExpressionException; |
10 | 9 |
|
11 |
import org.apache.commons.logging.Log; |
|
12 |
import org.apache.commons.logging.LogFactory; |
|
13 |
import org.springframework.stereotype.Controller; |
|
14 |
import org.springframework.ui.Model; |
|
15 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
16 |
import org.xml.sax.SAXException; |
|
17 |
import org.xmldb.api.base.XMLDBException; |
|
18 |
|
|
19 | 10 |
import eu.dnetlib.enabling.locators.UniqueServiceLocator; |
20 | 11 |
import eu.dnetlib.enabling.tools.OpaqueResource; |
21 | 12 |
import eu.dnetlib.enabling.tools.ResourceIdentifierResolver; |
... | ... | |
25 | 16 |
import eu.dnetlib.rmi.enabling.ISRegistryException; |
26 | 17 |
import eu.dnetlib.rmi.enabling.ISRegistryService; |
27 | 18 |
import eu.dnetlib.xml.database.XMLDatabase; |
19 |
import org.apache.commons.logging.Log; |
|
20 |
import org.apache.commons.logging.LogFactory; |
|
21 |
import org.springframework.beans.factory.annotation.Autowired; |
|
22 |
import org.springframework.stereotype.Controller; |
|
23 |
import org.springframework.ui.Model; |
|
24 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
25 |
import org.xml.sax.SAXException; |
|
26 |
import org.xmldb.api.base.XMLDBException; |
|
28 | 27 |
|
29 | 28 |
/** |
30 | 29 |
* Implement mid-level functionality for validation and invalidation of profiles browsed with the ResourceTreeController. |
... | ... | |
55 | 54 |
/** |
56 | 55 |
* service locator. |
57 | 56 |
*/ |
58 |
@Resource
|
|
57 |
@Autowired
|
|
59 | 58 |
private UniqueServiceLocator serviceLocator; |
60 | 59 |
|
61 | 60 |
/** |
62 | 61 |
* resolve xmldb ids to resource ids. |
63 | 62 |
*/ |
64 |
@Resource
|
|
63 |
@Autowired
|
|
65 | 64 |
private transient ResourceIdentifierResolver resIdResolver; |
66 | 65 |
|
67 | 66 |
/** |
Also available in: Unified diff
Chnaged Resource to Autowired