1 17 package org.alfresco.service.cmr.lock; 18 19 import java.text.MessageFormat ; 20 21 import org.alfresco.error.AlfrescoRuntimeException; 22 import org.alfresco.i18n.I18NUtil; 23 import org.alfresco.service.cmr.repository.NodeRef; 24 25 30 public class NodeLockedException extends AlfrescoRuntimeException 31 { 32 35 private static final long serialVersionUID = 3762254149525582646L; 36 37 40 private static final String ERROR_MESSAGE = I18NUtil.getMessage("lock_service.no_op"); 41 private static final String ERROR_MESSAGE_2 = I18NUtil.getMessage("lock_service.no_op2"); 42 43 46 public NodeLockedException(NodeRef nodeRef) 47 { 48 super(MessageFormat.format(ERROR_MESSAGE, new Object []{nodeRef.getId()})); 49 } 50 51 public NodeLockedException(NodeRef nodeRef, String operation) 52 { 53 super(MessageFormat.format(ERROR_MESSAGE_2, new Object []{operation, nodeRef.getId()})); 54 } 55 } 56 | Popular Tags |