1
|
package eu.dnetlib.client;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.RemoteService;
|
4
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
5
|
import eu.dnetlib.goldoa.domain.*;
|
6
|
import eu.dnetlib.shared.EligiblePresentAndFutureProjects;
|
7
|
import eu.dnetlib.shared.FundingWizardState;
|
8
|
import eu.dnetlib.shared.InitLoad;
|
9
|
import eu.dnetlib.shared.ProjectInfoAndEligibility;
|
10
|
|
11
|
import javax.mail.MessagingException;
|
12
|
import java.util.Date;
|
13
|
import java.util.List;
|
14
|
|
15
|
/**
|
16
|
* Created by stefania on 3/4/15.
|
17
|
*/
|
18
|
@RemoteServiceRelativePath("dataService")
|
19
|
public interface DataService extends RemoteService {
|
20
|
|
21
|
public InitLoad load(String hash, String email, String token, String cookie);
|
22
|
|
23
|
public String saveOrganization(Organization organization) throws OrganizationManagerException;
|
24
|
|
25
|
public Person loginUser(String email, String password) throws PersonManagerException;
|
26
|
|
27
|
public void resetPassword(String email) throws PersonManagerException;
|
28
|
|
29
|
public void registerUser(Person person, String captchaChallenge, String captchaResponse) throws Exception;
|
30
|
|
31
|
public Person updateUser(Person person) throws PersonManagerException;
|
32
|
|
33
|
public Person getUserById(String userId) throws PersonManagerException;
|
34
|
|
35
|
public Person saveResearcher(Person person) throws PersonManagerException;
|
36
|
|
37
|
public Request saveRequest(Request request);
|
38
|
|
39
|
public Request submitRequest(Request request) throws PersonManagerException;
|
40
|
|
41
|
public ProjectInfoAndEligibility getProjectInfoAndEligibility(String projectId);
|
42
|
|
43
|
public Publication savePublication(Publication publication);
|
44
|
|
45
|
public Journal getJournal(String journalId);
|
46
|
|
47
|
public Publisher getPublisher(String publisherId);
|
48
|
|
49
|
public Publication resolveDOI(String doi) throws ManagerException;
|
50
|
|
51
|
public RequestInfoPage getRequests(Date fromDate, Date toDate, RequestSort requestSortBy, RequestSortOrder order,
|
52
|
RequestFilter requestFilter, String term, Request.RequestStatus[] statusFilters, int from, int to);
|
53
|
|
54
|
public RequestInfoPage getRequestsForAccounting(Date fromDate, Date toDate, RequestSort requestSortBy, RequestSortOrder order,
|
55
|
RequestFilter requestFilter, String term, Request.RequestStatus[] statusFilters, int from, int to);
|
56
|
|
57
|
public RequestInfoPage getRequestsForUser(String userId, Date fromDate, Date toDate, RequestSort requestSortBy, RequestSortOrder order,
|
58
|
RequestFilter requestFilter, String term, Request.RequestStatus[] statusFilters,
|
59
|
int from, int to);
|
60
|
|
61
|
public RequestInfoPage getRequestsForOrganizations(List<String> organizationIds, Date fromDate, Date toDate, RequestSort requestSortBy,
|
62
|
RequestSortOrder order, RequestFilter requestFilter, String term,
|
63
|
Request.RequestStatus[] statusFilters, int from, int to);
|
64
|
|
65
|
public RequestInfoPage getRequestsForPublisher(String publisher, Date fromDate, Date toDate, RequestSort requestSortBy,
|
66
|
RequestSortOrder order, RequestFilter requestFilter, String term,
|
67
|
Request.RequestStatus[] statusFilters, int from, int to);
|
68
|
|
69
|
public FundingWizardState getFundingWizardState(String requestId);
|
70
|
|
71
|
public void approveRequest(String requestId, String personId, String comment);
|
72
|
|
73
|
public void conditionalApproveRequest(String requestId, String personId, String comment);
|
74
|
|
75
|
public void rejectRequest(String requestId, String personId, String comment);
|
76
|
|
77
|
public void processingRequest(String requestId, String personId, String comment);
|
78
|
|
79
|
public void onHoldRequest(String requestId, String personId, String comment);
|
80
|
|
81
|
public void deniedRequest(String requestId, String personId, String comment);
|
82
|
|
83
|
public RequestInfo getRequestById(String requestId);
|
84
|
|
85
|
public void submitContactForm(Contact contact, String captchaChallenge, String captchaResponse) throws Exception;
|
86
|
|
87
|
public List<Person> getUsers();
|
88
|
|
89
|
public void activateUser(String userId);
|
90
|
|
91
|
public void activateUsers(List<String> userIds);
|
92
|
|
93
|
public void deactivateUser(String userId);
|
94
|
|
95
|
public void deactivateUsers(List<String> userIds);
|
96
|
|
97
|
public void acceptUserRole(String userId, String roleId);
|
98
|
|
99
|
public void rejectRole(String userId, String roleId);
|
100
|
|
101
|
public List<BudgetInfo> getBudgets();
|
102
|
|
103
|
public List<BudgetInfo> getBudgetsForUser(String userId);
|
104
|
|
105
|
public List<BudgetInfo> getBudgetsForOrganizations(List<String> organizationIds);
|
106
|
|
107
|
public void approveBudget(String budgetId, String comment);
|
108
|
|
109
|
public void rejectBudget(String budgetId, String comment);
|
110
|
|
111
|
public EligiblePresentAndFutureProjects getEligibleProjectsForOrganization(String organizationId);
|
112
|
|
113
|
public Help saveHelp(Help help);
|
114
|
|
115
|
public Help getHelpById(String id);
|
116
|
|
117
|
public void invoiceUploaded(String requestId, String invoiceId);
|
118
|
|
119
|
public float convert(Currency from, Currency to, float amount);
|
120
|
}
|