Project

General

Profile

« Previous | Next » 

Revision 958

Added by Jing Tao over 22 years ago

Add a throwing exception in hasPermission and hasReadPermission methods.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
1171 1171
    */
1172 1172
  private static boolean hasPermission ( Connection conn, String user,
1173 1173
                                  String[] groups, String docid ) 
1174
                  throws SQLException
1174
                  throws SQLException, Exception
1175 1175
  {
1176 1176
    // Check for WRITE permission on @docid for @user and/or @groups
1177 1177
    AccessControlList aclobj = new AccessControlList(conn);
......
1187 1187
    */
1188 1188
  public boolean hasReadPermission ( Connection conn, String user,
1189 1189
                                  String[] groups, String docId ) 
1190
                  throws SQLException
1190
                  throws SQLException, Exception
1191 1191
  {
1192 1192
    // Check for READ permission on @docid for @user and/or @groups
1193 1193
    AccessControlList aclObj = new AccessControlList(conn);

Also available in: Unified diff