📄 accountexistexception.java
字号:
//// ____.// __/\ ______| |__/\. _______// __ .____| | \ | +----+ \// _______| /--| | | - \ _ | : - \_________// \\______: :---| : : | : | \________>// |__\---\_____________:______: :____|____:_____\// /_____|//// . . . i n j a h i a w e t r u s t . . .//package org.jahia.security.accounts;import org.jahia.exceptions.JahiaException;import org.jahia.services.usermanager.JahiaUser;/** This exception is used by the accounts service to throws special kind of * errors. * * @author Fulco Houkes * @version 1.0 */public class AccountExistException extends JahiaException{ /** User unique key */ private String mUserKey = null; /** Site unique key */ private String mSiteKey = null; //------------------------------------------------------------------------- /** Default constructor. * * @param userKey * The user unique identification key. * @param siteKey * The site unique identification key. */ public AccountExistException (String userKey, String siteKey) { super ("An account error occured.", "User ["+ userKey + "] has already an account for the site [" + siteKey + "]", ACCOUNTS_ERROR, ERROR); mUserKey = userKey; mSiteKey = siteKey; } //------------------------------------------------------------------------- /** * Return the user key. * * @return * Return the user reference. */ public String getUserKey () { return mUserKey; } //------------------------------------------------------------------------- /** * Return the site key. * * @return * Return the site key ID. */ public String getSiteKey () { return mSiteKey; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -