accountexpiredexception.java
来自「java 写的一个新闻发布系统」· Java 代码 · 共 75 行
JAVA
75 行
//// ____.// __/\ ______| |__/\. _______// __ .____| | \ | +----+ \// _______| /--| | | - \ _ | : - \_________// \\______: :---| : : | : | \________>// |__\---\_____________:______: :____|____:_____\// /_____|//// . . . 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 thrown when an account for a specified user is requested * and has expired. * * @author Fulco Houkes * @version 1.0 */public class AccountExpiredException 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 AccountExpiredException (String userKey, String siteKey) { super ("Account has expired.", "The account for user ["+ userKey + "] on site [" + siteKey + "] has expired.", 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 + =
减小字号Ctrl + -
显示快捷键?