Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
WorkflowSectionGrouper.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 | 4 |
import java.util.Set; |
5 |
import javax.annotation.Resource; |
|
6 | 5 |
|
7 | 6 |
import com.google.common.collect.Sets; |
8 | 7 |
import eu.dnetlib.functionality.modular.ui.workflows.objects.WorkflowItem; |
9 | 8 |
import eu.dnetlib.functionality.modular.ui.workflows.util.ISLookupClient; |
10 | 9 |
import eu.dnetlib.miscutils.datetime.DateUtils; |
10 |
import org.springframework.beans.factory.annotation.Autowired; |
|
11 | 11 |
|
12 | 12 |
public class WorkflowSectionGrouper { |
13 | 13 |
|
14 | 14 |
private static final long CACHE_DURATION = 600000; // 10 minutes |
15 | 15 |
private Set<String> cache = Sets.newHashSet(); |
16 | 16 |
private long cacheDate = 0; |
17 |
@Resource
|
|
17 |
@Autowired
|
|
18 | 18 |
private ISLookupClient isLookupClient; |
19 | 19 |
|
20 | 20 |
public List<WorkflowItem> listWorflowsForDatasource(String dsId) { |
Also available in: Unified diff
Chnaged Resource to Autowired