1 15 16 package org.jahia.exceptions; 17 18 import org.jahia.data.containers.JahiaContainer; 19 import org.jahia.services.pages.JahiaPage; 20 21 28 public class JahiaUpdateLockException extends JahiaException 29 { 30 31 private JahiaPage mPageRef = null; 32 private JahiaContainer mContainerRef = null; 33 34 35 41 public JahiaUpdateLockException (JahiaPage page) 42 { 43 super ("The page is currently locked by another user.", 44 "The page ["+page.getID()+"] is locked by another user.", 45 LOCK_ERROR, ERROR_SEVERITY); 46 mPageRef = page; 47 } 48 49 50 56 public JahiaUpdateLockException (JahiaContainer container) 57 { 58 super ("The container is currently locked by another user.", 59 "The container ["+container.getID()+"] is locked by another user.", 60 LOCK_ERROR, ERROR_SEVERITY); 61 mContainerRef = container; 62 } 63 64 71 public JahiaPage getPage () { 72 return mPageRef; 73 } 74 75 82 public JahiaContainer getContainer () { 83 return mContainerRef; 84 } 85 86 } 87 | Popular Tags |