1 package com.instantbank.collections.companyInfo.ejb;
2
3 import javax.ejb.EJBObject;
4 import java.rmi.RemoteException;
5 import com.instantbank.collections.ach.DataObject;
6 import com.instantbank.collections.util.InstantbankException;
7
8 public interface CompanyServices extends EJBObject {
9 public String addCompany(String xml, long userId) throws RemoteException, InstantbankException;
10
11
12 public String getCalendar(Long companyId, int year) throws RemoteException, InstantbankException;
13
14
15 public String getCalendar(Long companyId, int fromYear, int toYear) throws RemoteException, InstantbankException;
16
17
18 public String getCompanies() throws RemoteException, InstantbankException;
19
20
21 public String getCompany(String companyId) throws RemoteException, InstantbankException;
22
23
24 public String getCompanyLocations(Long companyId) throws RemoteException, InstantbankException;
25
26
27 public int getDBYear() throws RemoteException, InstantbankException;
28
29
30 public String newCompany() throws RemoteException, InstantbankException;
31
32
33 public void saveCalendar(Long companyId, int year, String dayArray) throws RemoteException, InstantbankException;
34
35
36 public String saveCompany(String xml, long userId) throws RemoteException, InstantbankException;
37
38
39 public void createDataObject(DataObject dataObject) throws RemoteException, InstantbankException;
40
41
42 public void updateDataObject(DataObject dataObject) throws RemoteException, InstantbankException;
43
44
45 public void removeDataObject(DataObject dataObject) throws RemoteException, InstantbankException;
46 }
47