1
|
package eu.dnetlib.goldoa.service;
|
2
|
|
3
|
import eu.dnetlib.goldoa.domain.Budget;
|
4
|
import eu.dnetlib.goldoa.domain.Organization;
|
5
|
|
6
|
import java.io.InputStream;
|
7
|
import java.util.List;
|
8
|
|
9
|
/**
|
10
|
* Created by antleb on 4/2/15.
|
11
|
*/
|
12
|
public interface BudgetManager {
|
13
|
|
14
|
public Budget saveBudget(Budget budget);
|
15
|
|
16
|
public Budget getBudget(String budgetId);
|
17
|
|
18
|
public List<Budget> getBudgets();
|
19
|
|
20
|
public List<Budget> getBudgetsForUser(String userEmail);
|
21
|
|
22
|
public List<Budget> getBudgetsForPublisher(String publisherEmail);
|
23
|
|
24
|
public List<Budget> getBudgetsForAccounting();
|
25
|
|
26
|
public List<Budget> getBudgetsForOrganization(List<String> organizationId);
|
27
|
|
28
|
public Budget submitBudgetRequest(Budget budget);
|
29
|
|
30
|
public void initiallyApproveBudgetRequest(String budgetId, String comment, String email);
|
31
|
|
32
|
public void approveBudgetRequest(String budgetId, String comment, float amountGranted, String email);
|
33
|
|
34
|
public void rejectBudgetRequest(String budgetId, String comment, String email);
|
35
|
|
36
|
public void processingPayment(String budgetId, String comment, String email);
|
37
|
|
38
|
public void denyPayment(String budgetId, String comment, String email);
|
39
|
|
40
|
public void onHoldPayment(String budgetId, String comment, String email);
|
41
|
|
42
|
public void budgetPaid(String budgetId, String comment, String email);
|
43
|
|
44
|
public void uploadInitialContract(String budgetId, String contentType, InputStream inputStream);
|
45
|
|
46
|
public void uploadBeneficiaryContract(String budgetId, String contentType, InputStream inputStream);
|
47
|
|
48
|
public void uploadSignedContract(String budgetId, String contentType, InputStream inputStream);
|
49
|
|
50
|
public void uploadBankReceipt(String budgetId, String contentType, InputStream inputStream);
|
51
|
|
52
|
public Budget getForRequest(String organizationId, String publisherEmail);
|
53
|
|
54
|
public Organization getOrganizationForBudget(String id);
|
55
|
}
|