Subversion Repository Public Repository

Satyam

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bestray.healthcareemr.Dao;

import com.bestray.healthcarecommonutil.exception.DataAccessException;
import com.bestray.healthcarecommonutil.vo.TAccount;
import com.bestray.healthcarecommonutil.vo.TDepartmentMaster;
import com.bestray.healthcarecommonutil.vo.TDoctorInformation;
import java.util.List;
import org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException;

// TODO: Auto-generated Javadoc
/**
 * The Interface UserAccountDao.
 *
 * @author user3
 */
public interface UserAccountDao {
    
    public TAccount saveAccount(TAccount account)throws DataAccessException,HibernateOptimisticLockingFailureException;
    
    public List<TDepartmentMaster> getDepartmentList()throws DataAccessException;
    
    public void updateUserPassword(TAccount newUserAccount)throws DataAccessException,HibernateOptimisticLockingFailureException;
    
    public TDoctorInformation getDocInfoFromDocId(String docid)throws DataAccessException;
    
    public int numberOfUserAccountRecords(String expr)throws DataAccessException;
    
    public List<TAccount> findUserAccountList(String expr, int min, int max)throws DataAccessException;
    
    public TAccount getUserAccountValues(Integer ID)throws DataAccessException;
    
    public void deleteAccount(TAccount account)throws DataAccessException,IllegalArgumentException;
    
    public TAccount authorize(TAccount account)throws DataAccessException;

    public List<TAccount> allAccountList()throws DataAccessException;

    public List<TAccount> getUserByUsername(String username)throws DataAccessException;

    /**
     * Save permission.
     *
     * @param permission the permission
     * @throws DataAccessException the data access exception
     */
    //public void savePermission(TPermission permission)throws DataAccessException;

    /**
     * Update permission.
     *
     * @param permission the permission
     * @throws DataAccessException the data access exception
     */
    //public void updatePermission(TPermission permission)throws DataAccessException;

    /**
     * Gets the permission list.
     *
     * @return the permission list
     * @throws DataAccessException the data access exception
     */
    //public List<TPermission> getPermissionList()throws DataAccessException;

    /**
     * Save role.
     *
     * @param role the role
     * @throws DataAccessException the data access exception
     */
    //public void saveRole(TRole role)throws DataAccessException;

    /**
     * Save role and permission.
     *
     * @param rolePermission the role permission
     * @throws DataAccessException the data access exception
     */
    //public void saveRoleAndPermission(TRolePermission rolePermission)throws DataAccessException;

    /**
     * Gets the role list.
     *
     * @return the role list
     * @throws DataAccessException the data access exception
     */
    //public List<TRole> getRoleList()throws DataAccessException;

    /**
     * Save account.
     *
     * @param account the account
     * @throws DataAccessException the data access exception
     */
    

    /**
     * Save account and role.
     *
     * @param accountRole the account role
     * @throws DataAccessException the data access exception
     */
    //public void saveAccountAndRole(TAccountRole accountRole)throws DataAccessException;

    /**
     * Gets the account role.
     *
     * @param useraccount the useraccount
     * @return the account role
     * @throws DataAccessException the data access exception
     */
    //public List<TAccountRole> getAccountRole(TAccount useraccount)throws DataAccessException;

    /**
     * Gets the role permission.
     *
     * @param role the role
     * @return the role permission
     * @throws DataAccessException the data access exception
     */
    //public List<TRolePermission> getRolePermission(TRole role)throws DataAccessException;

    /**
     * Gets the permission by name.
     *
     * @param permissionName the permission name
     * @return the permission by name
     * @throws DataAccessException the data access exception
     */
    //public TPermission getPermissionByName(String permissionName)throws DataAccessException;

    /**
     * Gets the role by role id.
     *
     * @param roleid the roleid
     * @return the role by role id
     * @throws DataAccessException the data access exception
     */
    //public TRole getRoleByRoleId(Long roleid)throws DataAccessException;

    /**
     * Update role.
     *
     * @param role the role
     * @throws DataAccessException the data access exception
     */
    //public void updateRole(TRole role)throws DataAccessException;

    /**
     * Deletepermissions.
     *
     * @param permissions the permissions
     * @throws DataAccessException the data access exception
     */
    //public void deletepermissions(List<TRolePermission> permissions)throws DataAccessException;

    /**
     * Gets the department list.
     *
     * @return the department list
     * @throws DataAccessException the data access exception
     */
    

    /**
     * Update user password.
     *
     * @param newUserAccount the new user account
     * @throws DataAccessException the data access exception
     */
    

    /**
     * Gets the doc info from doc id.
     *
     * @param docid the docid
     * @return the doc info from doc id
     * @throws DataAccessException the data access exception
     */
    

    /**
     * Save account and dept.
     *
     * @param accountDept the account dept
     * @throws DataAccessException the data access exception
     */
    //public void saveAccountAndDept(TAccountDepartment accountDept)throws DataAccessException;

    /**
     * Number of user account records.
     *
     * @param expr the expr
     * @return the int
     * @throws DataAccessException the data access exception
     */
    

    /**
     * Find user account list.
     *
     * @param expr the expr
     * @param min the min
     * @param max the max
     * @return the list
     * @throws DataAccessException the data access exception
     */
    

    /**
     * Gets the user account values.
     *
     * @param ID the id
     * @return the user account values
     * @throws DataAccessException the data access exception
     */
    

    //public List<TRole> findRolesByName(String name)throws DataAccessException;
     
    //public void deleteRolePermission(TRolePermission rolePerm) throws DataAccessException;
     
    //public void saveRoleWithPermission(TRolePermission newrolepermission)throws DataAccessException;

    //public TRolePermission getRolePermission(TRole role, TPermission selectedpermission)throws DataAccessException;

    //public void deletePermissionFromRole(TRolePermission rolepermission)throws DataAccessException;

    //public List<TAccountDepartment> getDepartmentByAccount(TAccount account)throws DataAccessException;

    //public void deleteDepartmentAssignedAcc(List<TAccountDepartment> accountDepartment)throws DataAccessException;

    //public List<TAccountRole> getRoleByAccount(TAccount account)throws DataAccessException;

    //public void deleteRoleAssignedAcc(List<TAccountRole> accountRole)throws DataAccessException;

}

Commits for Satyam/AuroCareEMR/src/main/java/com/bestray/healthcareemr/Dao/UserAccountDao.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 20 Jul, 2018 05:59:17 +0000