KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > examples > forceid > User


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.examples.forceid;
17
18 import org.apache.commons.logging.Log;
19 import org.apache.commons.logging.LogFactory;
20 import org.apache.myfaces.application.jsp.JspStateManagerImpl;
21
22 /**
23  * @author <a HREF="mailto:matzew@apache.org">Matthias Weßendorf</a>
24  */

25 public class User {
26     
27     public String JavaDoc username,password;
28     private static final Log log = LogFactory.getLog(User.class);
29     
30     public User(){}
31     
32     public User(String JavaDoc username,String JavaDoc password){
33         this.username = username;
34         this.password = password;
35     }
36
37     public String JavaDoc getPassword() {
38         return password;
39     }
40     public void setPassword(String JavaDoc password) {
41         this.password = password;
42     }
43     public String JavaDoc getUsername() {
44         return username;
45     }
46     public void setUsername(String JavaDoc username) {
47         this.username = username;
48     }
49     
50     public String JavaDoc update(){
51         if(log.isDebugEnabled()){
52             log.debug("USERNAME: "+this.username);
53             log.debug("PASSWORD: "+this.password);
54         }
55         return ("go_forceId");
56     }
57 }
58
Popular Tags