1
|
package eu.dnetlib.clients.enabling.actionmanager.ws;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import org.apache.log4j.Logger;
|
6
|
|
7
|
import eu.dnetlib.actionmanager.common.Agent;
|
8
|
import eu.dnetlib.actionmanager.common.Operation;
|
9
|
import eu.dnetlib.actionmanager.common.Provenance;
|
10
|
import eu.dnetlib.actionmanager.rmi.ActionManagerException;
|
11
|
import eu.dnetlib.actionmanager.set.ActionManagerSet;
|
12
|
import eu.dnetlib.api.DriverServiceException;
|
13
|
import eu.dnetlib.api.enabling.ActionManagerService;
|
14
|
import eu.dnetlib.domain.ServiceIdentity;
|
15
|
import eu.dnetlib.domain.enabling.Notification;
|
16
|
|
17
|
public class ActionManagerServiceClient implements ActionManagerService {
|
18
|
|
19
|
private static Logger logger = Logger.getLogger(ActionManagerServiceClient.class);
|
20
|
|
21
|
private eu.dnetlib.actionmanager.rmi.ActionManagerService service = null;
|
22
|
|
23
|
|
24
|
@Override
|
25
|
public String createSet(ActionManagerSet set) throws ActionManagerException {
|
26
|
return service.createSet(set);
|
27
|
}
|
28
|
|
29
|
@Override
|
30
|
public List<ActionManagerSet> ListSets() throws ActionManagerException {
|
31
|
return service.ListSets();
|
32
|
}
|
33
|
|
34
|
@Override
|
35
|
public boolean deleteSet(String setId) throws ActionManagerException {
|
36
|
return service.deleteSet(setId);
|
37
|
}
|
38
|
|
39
|
@Override
|
40
|
public ServiceIdentity identify() {
|
41
|
return null;
|
42
|
}
|
43
|
|
44
|
@Override
|
45
|
public void notify(Notification notification) throws DriverServiceException {
|
46
|
throw new UnsupportedOperationException();
|
47
|
}
|
48
|
|
49
|
public void setWebService(Object webService) {
|
50
|
this.service = (eu.dnetlib.actionmanager.rmi.ActionManagerService) webService;
|
51
|
}
|
52
|
|
53
|
public void setPortType(eu.dnetlib.actionmanager.rmi.ActionManagerService portType) {
|
54
|
this.service = portType;
|
55
|
}
|
56
|
}
|