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.profile;
19  
20  import java.io.Serializable;
21  
22  /***
23   * <p>Dialog state information for the Edit Profile dialog.</p>
24   *
25   * $Id: EditProfileState.java 464373 2006-10-16 04:21:54Z rahul $
26   */
27  public class EditProfileState implements Serializable {
28  
29  
30      // ------------------------------------------------ Configuration Properties
31  
32  
33      /***
34       * <p>Flag indicating that we are creating a new profile, versus editing
35       * an existing one.</p>
36       */
37      private boolean creating = true;
38      public boolean isCreating() { return this.creating; }
39      public void setCreating(boolean creating) { this.creating = creating; }
40  
41  
42      // -------------------------------------------------- Input Field Properties
43  
44  
45      /***
46       * <p>Category identifiers for the categories selected by this user
47       */
48      private int categories[] = new int[0];
49      public int[] getCategories() { return this.categories; }
50      public void setCategories(int categories[]) { this.categories = categories; }
51  
52  
53      /***
54       * <p>Email address for this user.</p>
55       */
56      private String emailAddress = null;
57      public String getEmailAddress() { return this.emailAddress; }
58      public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; }
59  
60  
61      /***
62       * <p>Full name for this user.</p>
63       */
64      private String fullName = null;
65      public String getFullName() { return this.fullName; }
66      public void setFullName(String fullName) { this.fullName = fullName; }
67  
68  
69      /***
70       * <p>Password entered by the user.</p>
71       */
72      private String password = null;
73      public String getPassword() { return this.password; }
74      public void setPassword(String password) { this.password = password; }
75  
76  
77      /***
78       * <p>Confirmation password entered by the user.</p>
79       */
80      private String password2 = null;
81      public String getPassword2() { return this.password2; }
82      public void setPassword2(String password2) { this.password2 = password2; }
83  
84  
85      /***
86       * <p>Username entered by the user.</p>
87       */
88      private String username = null;
89      public String getUsername() { return this.username; }
90      public void setUsername(String username) { this.username = username; }
91  
92  
93  }