KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > security > accounts > AccountExpiredException


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12

13 package org.jahia.security.accounts;
14
15 import org.jahia.exceptions.JahiaException;
16
17 /** This exception is thrown when an account for a specified user is requested
18  * and has expired.
19  *
20  * @author Fulco Houkes
21  * @version 1.0
22  */

23 public class AccountExpiredException extends JahiaException
24 {
25     /** User unique key */
26     private String JavaDoc mUserKey = null;
27
28     /** Site unique key */
29     private String JavaDoc mSiteKey = null;
30
31
32     //-------------------------------------------------------------------------
33
/** Default constructor.
34      *
35      * @param userKey
36      * The user unique identification key.
37      * @param siteKey
38      * The site unique identification key.
39      */

40     public AccountExpiredException (String JavaDoc userKey, String JavaDoc siteKey)
41     {
42         super ("Account has expired.", "The account for user ["+ userKey +
43                "] on site [" + siteKey + "] has expired.",
44                ACCOUNTS_ERROR, ERROR_SEVERITY);
45         mUserKey = userKey;
46         mSiteKey = siteKey;
47     }
48
49
50     //-------------------------------------------------------------------------
51
/**
52      * Return the user key.
53      *
54      * @return
55      * Return the user reference.
56      */

57     public String JavaDoc getUserKey () {
58         return mUserKey;
59     }
60
61
62     //-------------------------------------------------------------------------
63
/**
64      * Return the site key.
65      *
66      * @return
67      * Return the site key ID.
68      */

69     public String JavaDoc getSiteKey () {
70         return mSiteKey;
71     }
72 }
73
74
Popular Tags