KickJava   Java API By Example, From Geeks To Geeks.

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


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
18 /** This exception is thrown when an account for a specified user is requested
19  * and has expired.
20  *
21  * @author Fulco Houkes
22  * @version 1.0
23  */

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

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

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

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