2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to you under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  package org.apache.shale.usecases.model.minimal;
19  
20  import java.util.Date;
21  import org.apache.shale.usecases.model.User;
22  
23  /***
24   * <p>Minimal implementation of {@link User} with no persistence support.</p>
25   *
26   * $Id: MinimalUser.java 464373 2006-10-16 04:21:54Z rahul $
27   */
28  public class MinimalUser implements User {
29      
30      
31      // -------------------------------------------------------------- Properties
32  
33  
34      private int categories[] = new int[0];
35      public int[] getCategories() { return this.categories; }
36      public void setCategories(int categories[]) { this.categories = categories; }
37  
38      private boolean confirmed = false;
39      public boolean isConfirmed() { return this.confirmed; }
40      public void setConfirmed(boolean confirmed) { this.confirmed = confirmed; }
41  
42      private Date created = null;
43      public Date getCreated() { return this.created; }
44      public void setCreated(Date created) { this.created = created; }
45  
46      private String emailAddress = null;
47      public String getEmailAddress() { return this.emailAddress; }
48      public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; }
49  
50      private String fullName = null;
51      public String getFullName() { return this.fullName; }
52      public void setFullName(String fullName) { this.fullName = fullName; }
53  
54      private int id = 0;
55      public int getId() { return this.id; }
56      public void setId(int id) { this.id = id; }
57  
58      private String password = null;
59      public String getPassword() { return this.password; }
60      public void setPassword(String password) { this.password = password; }
61  
62      private Date updated = null;
63      public Date getUpdated() { return this.updated; }
64      public void setUpdated(Date updated) { this.updated = updated; }
65  
66      private String username = null;
67      public String getUsername() { return this.username; }
68      public void setUsername(String username) { this.username = username; }
69  
70  
71  }