KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > om > security > JetspeedUser


1 /*
2  * Copyright 2000-2001,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
17 package org.apache.jetspeed.om.security;
18
19 import org.apache.turbine.om.security.User;
20
21 import java.util.Date JavaDoc;
22
23 /**
24  * A Jetspeed extension of the Turbine User interface.
25  *
26  * @author <a HREF="mailto:taylor@apache.org">David Sean Taylor</a>
27  * @author <a HREF="mailto:morciuch@apache.org">Mark Orciuch</a>
28  * @version $Id: JetspeedUser.java,v 1.4 2004/02/23 03:14:12 jford Exp $
29  */

30 public interface JetspeedUser extends User
31 {
32     public static final String JavaDoc DISABLED = "DISABLED";
33     public static final String JavaDoc USER_ID = "USER_ID";
34     public static final String JavaDoc PASSWORD_CHANGED = "PASSWORD_CHANGED";
35
36     /**
37      * Returns the disabled status for the user
38      *
39      * @return True when the account is disabled
40      */

41     public boolean getDisabled();
42  
43     public void setDisabled(boolean disabled);
44
45
46     /**
47       * Returns the primary principle for this User, the user id.
48       *
49       * @return the user id.
50       */

51     public String JavaDoc getUserId();
52
53
54     public boolean isNew();
55
56     /**
57      * Returns the date of last password change
58      *
59      * @return date
60      */

61     public Date JavaDoc getPasswordChanged();
62  
63     /**
64      * Sets the date of last password change
65      *
66      * @param value Date
67      */

68     public void setPasswordChanged(Date JavaDoc value);
69
70 }
71
Popular Tags