1 package com.instantbank.collections.security.ejb;
2
3 import java.rmi.RemoteException;
4 import javax.ejb.EJBObject;
5 import com.instantbank.collections.util.InstantbankException;
6
7 public interface SecurityServices extends EJBObject {
8 public Long getCompanySessionTime(Long companyId) throws RemoteException, InstantbankException;
9
10
11 public String getChildGroups(Long groupId, int level) throws RemoteException, InstantbankException;
12
13
14 public String getChildUsers(Long groupId, int level) throws RemoteException, InstantbankException;
15
16
17 public String getGroup(Long groupId) throws RemoteException, InstantbankException;
18
19
20 public String getGroups(Long companyId) throws RemoteException, InstantbankException;
21
22
23 public String getGroupsUsers(Long companyId) throws RemoteException, InstantbankException;
24
25
26 public String getGroupsUsers(Long companyId, Long supervisorId, String objectType) throws RemoteException, InstantbankException;
27
28
29 public String getSessionInfo(String userName) throws RemoteException, InstantbankException;
30
31
32 public String getSysdate(String format) throws RemoteException, InstantbankException;
33
34
35 public String getUser(Long userId) throws RemoteException, InstantbankException;
36
37
38 public String getUserPassword(Long userId) throws RemoteException, InstantbankException;
39
40
41 public String getUserProfileId(String userId) throws RemoteException, InstantbankException;
42
43
44 public String getUsers(Long companyId) throws RemoteException, InstantbankException;
45
46
47 public String newGroup() throws RemoteException, InstantbankException;
48
49
50 public String newUser() throws RemoteException, InstantbankException;
51
52
53 public void resetAllPassword(Long companyId, Long changedBy) throws RemoteException, InstantbankException;
54
55
56 public void resetUserPassword(long userId, Long changedBy) throws RemoteException, InstantbankException;
57
58
59 public void saveGroup(String data, String profile, Long companyId, Long changedBy) throws RemoteException, InstantbankException;
60
61
62 public void saveUser(String data, String profile, Long companyId, Long changedBy) throws RemoteException, InstantbankException;
63
64
65 public void setSessionSuccessfull(Long userId) throws RemoteException, InstantbankException;
66
67
68 public void updateUserGroupLastChanged(Long loggedUser, Long userGroupId) throws RemoteException, InstantbankException;
69
70
71 public void updateUserLastChanged(Long loggedUser, Long userId) throws RemoteException, InstantbankException;
72
73
74 public String updateUserPassword(Long userId, String newPassword, Long companyId) throws RemoteException, InstantbankException;
75 }
76
77