📄 jahiaupdatelockexception.java
字号:
// $Id: JahiaUpdateLockException.java,v 1.1.1.1 2002/02/07 15:09:15 loom Exp $////// ____.// __/\ ______| |__/\. _______// __ .____| | \ | +----+ \// _______| /--| | | - \ _ | : - \_________// \\______: :---| : : | : | \________>// |__\---\_____________:______: :____|____:_____\// /_____|//// . . . i n j a h i a w e t r u s t . . .//package org.jahia.exceptions;import org.jahia.exceptions.JahiaException;import org.jahia.services.pages.JahiaPage;import org.jahia.data.containers.JahiaContainer;/** * This exception is raised when an object is requested for updating and is * already locked by another user. * * @author Fulco Houkes * @version 1.1 */public class JahiaUpdateLockException extends JahiaException{ private JahiaPage mPageRef = null; private JahiaContainer mContainerRef = null; //------------------------------------------------------------------------- /** Default constructor * * @param page * The page reference. */ public JahiaUpdateLockException (JahiaPage page) { super ("The page is currently locked by another user.", "The page ["+page.getID()+"] is locked by another user.", LOCK_ERROR, ERROR); mPageRef = page; } //------------------------------------------------------------------------- /** Default constructor * * @param container * The reference container. */ public JahiaUpdateLockException (JahiaContainer container) { super ("The container is currently locked by another user.", "The container ["+container.getID()+"] is locked by another user.", LOCK_ERROR, ERROR); mContainerRef = container; } //------------------------------------------------------------------------- /** Return the page's reference which is currently locked. * * @return * Return the page reference. Return null if it was not a page which * is locked. */ public JahiaPage getPage () { return mPageRef; } //------------------------------------------------------------------------- /** Return the container's reference which is locked. * * @return * Return the container reference. Return null if it was not a * container which is locked. */ public JahiaContainer getContainer () { return mContainerRef; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -