KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > modules > userlog > UserLogModule


1 /*
2  Copyright (c) 2003 eInnovation Inc. All rights reserved
3
4  This library is free software; you can redistribute it and/or modify it under the terms
5  of the GNU Lesser General Public License as published by the Free Software Foundation;
6  either version 2.1 of the License, or (at your option) any later version.
7
8  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  See the GNU Lesser General Public License for more details.
11  */

12
13 package com.openedit.modules.userlog;
14
15 import java.util.Map JavaDoc;
16
17 import org.apache.commons.logging.Log;
18 import org.apache.commons.logging.LogFactory;
19
20 import com.openedit.OpenEditException;
21 import com.openedit.WebPageRequest;
22 import com.openedit.modules.BaseModule;
23
24 /**
25  */

26 public class UserLogModule extends BaseModule
27 {
28     private static Log log = LogFactory.getLog(UserLogModule.class);
29     protected UserLog fieldUserLog;
30     protected Map JavaDoc fieldActions;
31     protected boolean hasInit = false;
32
33     
34
35     public void setUserLog(UserLog inLog)
36     {
37         fieldUserLog = inLog;
38     }
39
40     public void getUserLog(WebPageRequest inContext) throws OpenEditException
41     {
42         inContext.putPageValue("userLog", getUserLog());
43     }
44     public void init() throws Exception JavaDoc
45     {
46         getUserLog().init();
47     }
48     
49     /**
50      *
51      */

52     public UserLog getUserLog()
53     {
54         return fieldUserLog;
55     }
56
57 }
58
Popular Tags