01: /**
02: * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
03: *
04: * This program is free software; you can redistribute it and/or modify
05: * it under the terms of the latest version of the GNU Lesser General
06: * Public License as published by the Free Software Foundation;
07: *
08: * This program is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public License
14: * along with this program (LICENSE.txt); if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16: */package org.jamwiki;
17:
18: import java.sql.Connection;
19: import org.jamwiki.model.WikiUserInfo;
20: import org.jamwiki.utils.Encryption;
21: import org.jamwiki.utils.WikiLogger;
22:
23: /**
24: * Implementation of the {@link org.jamwiki.UserHandler} interface that uses a
25: * database for storing user login, password and other basic user information.
26: */
27: public class TestUserHandler implements UserHandler {
28:
29: private static final WikiLogger logger = WikiLogger
30: .getLogger(TestUserHandler.class.getName());
31:
32: /**
33: *
34: */
35: public void addWikiUserInfo(WikiUserInfo userInfo,
36: Object transactionObject) throws Exception {
37: throw new UnsupportedOperationException();
38: }
39:
40: /**
41: *
42: */
43: public boolean authenticate(String username, String password)
44: throws Exception {
45: throw new UnsupportedOperationException();
46: }
47:
48: /**
49: *
50: */
51: public boolean isWriteable() {
52: throw new UnsupportedOperationException();
53: }
54:
55: /**
56: *
57: */
58: public WikiUserInfo lookupWikiUserInfo(String username)
59: throws Exception {
60: throw new UnsupportedOperationException();
61: }
62:
63: /**
64: *
65: */
66: public void updateWikiUserInfo(WikiUserInfo userInfo,
67: Object transactionObject) throws Exception {
68: throw new UnsupportedOperationException();
69: }
70: }
|