View Javadoc

1   /*
2    * Copyright (c) 2006 Extreme! Lab, Indiana University. All rights reserved.
3    *
4    * This software is open source. See the bottom of this file for the licence.
5    *
6    * $Id: PurseEvent.java,v 1.1.1.1 2006/10/27 01:05:13 mpierce Exp $
7    */
8   package org.ogce.purse.api;
9   
10  import org.globus.purse.registration.UserData;
11  
12  /***
13   * This object is created by the PURSe portlets and passed to the
14   * {@link org.ogce.purse.PurseLifecycle} which manages the registration modules.
15   * 
16   * @author machrist
17   * 
18   */
19  public class PurseEvent {
20      /***
21       * User has registered with PURSe.
22       */
23      public static final int REGISTERED_EVENT = 0;
24  
25      /***
26       * User has confirmed email address with PURSe.
27       */
28      public static final int CONFIRMED_EVENT = 1;
29  
30      /***
31       * User has been accepted by an administrator in PURSe. Specifically, the
32       * user now has a Distinguished Name (DN).
33       */
34      public static final int ACCEPTED_EVENT = 2;
35  
36      /***
37       * User has been rejected by the administrator.
38       */
39      public static final int REJECTED_EVENT = 3;
40  
41      /***
42       * User's PURSe registration has been revoked.
43       */
44      public static final int REVOKED_EVENT = 4;
45  
46      /***
47       * User's PURSe registration and credentials have been renewed.
48       */
49      public static final int RENEWED_EVENT = 5;
50  
51      /***
52       * User's PURSe password has been reset. A new password is provided with
53       * this event.
54       */
55      public static final int PASSWORD_RESET_EVENT = 6;
56  
57      /***
58       * User's PURSe password has been updated. The old and the new password are
59       * provided with this event.
60       */
61      public static final int PASSWORD_UPDATED_EVENT = 7;
62  
63      private int eventType;
64  
65      private UserData userData;
66  
67      private String oldPassword;
68  
69      private String newPassword;
70  
71      public PurseEvent(UserData userData, int eventType) {
72          this.userData = userData;
73          this.eventType = eventType;
74      }
75  
76      public int getEventType() {
77          return eventType;
78      }
79  
80      public void setEventType(int eventType) {
81          this.eventType = eventType;
82      }
83  
84      public UserData getUserData() {
85          return userData;
86      }
87  
88      public void setUserData(UserData userData) {
89          this.userData = userData;
90      }
91  
92      public String getNewPassword() {
93          return newPassword;
94      }
95  
96      public void setNewPassword(String newPassword) {
97          this.newPassword = newPassword;
98      }
99  
100     public String getOldPassword() {
101         return oldPassword;
102     }
103 
104     public void setOldPassword(String oldPassword) {
105         this.oldPassword = oldPassword;
106     }
107 
108 }
109 /*
110  * Indiana University Extreme! Lab Software License, Version 1.2
111  *
112  * Copyright (c) 2006 The Trustees of Indiana University.
113  * All rights reserved.
114  *
115  * Redistribution and use in source and binary forms, with or without
116  * modification, are permitted provided that the following conditions are
117  * met:
118  *
119  * 1) All redistributions of source code must retain the above
120  *    copyright notice, the list of authors in the original source
121  *    code, this list of conditions and the disclaimer listed in this
122  *    license;
123  *
124  * 2) All redistributions in binary form must reproduce the above
125  *    copyright notice, this list of conditions and the disclaimer
126  *    listed in this license in the documentation and/or other
127  *    materials provided with the distribution;
128  *
129  * 3) Any documentation included with all redistributions must include
130  *    the following acknowledgement:
131  *
132  *      "This product includes software developed by the Indiana
133  *      University Extreme! Lab.  For further information please visit
134  *      http://www.extreme.indiana.edu/"
135  *
136  *    Alternatively, this acknowledgment may appear in the software
137  *    itself, and wherever such third-party acknowledgments normally
138  *    appear.
139  *
140  * 4) The name "Indiana University" or "Indiana University
141  *    Extreme! Lab" shall not be used to endorse or promote
142  *    products derived from this software without prior written
143  *    permission from Indiana University.  For written permission,
144  *    please contact http://www.extreme.indiana.edu/.
145  *
146  * 5) Products derived from this software may not use "Indiana
147  *    University" name nor may "Indiana University" appear in their name,
148  *    without prior written permission of the Indiana University.
149  *
150  * Indiana University provides no reassurances that the source code
151  * provided does not infringe the patent or any other intellectual
152  * property rights of any other entity.  Indiana University disclaims any
153  * liability to any recipient for claims brought by any other entity
154  * based on infringement of intellectual property rights or otherwise.
155  *
156  * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
157  * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
158  * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
159  * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
160  * OTHER PROPRIETARY RIGHTS.  INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
161  * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
162  * DOORS", "WORMS", OR OTHER HARMFUL CODE.  LICENSEE ASSUMES THE ENTIRE
163  * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
164  * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
165  * SOFTWARE.
166  */