KickJava   Java API By Example, From Geeks To Geeks.

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


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 cannot be found.
20  *
21  * @author Fulco Houkes
22  * @version 1.0
23  */

24 public class AccountNotFoundException extends JahiaException
25 {
26     /** User unique key */
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 AccountNotFoundException (String JavaDoc userKey, String JavaDoc siteKey)
42     {
43         super ("Account could not be found.", "The account for user ["+ userKey +
44                "] on site [" + siteKey + "] could not be founds",
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
Popular Tags