mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125781 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
48 lines
1.3 KiB
Java
48 lines
1.3 KiB
Java
package org.alfresco.service.cmr.lock;
|
|
|
|
import java.text.MessageFormat;
|
|
|
|
import org.alfresco.error.AlfrescoRuntimeException;
|
|
import org.springframework.extensions.surf.util.I18NUtil;
|
|
import org.alfresco.service.cmr.repository.NodeRef;
|
|
|
|
/**
|
|
* Node locked exception class
|
|
*
|
|
* @author Roy Wetherall
|
|
*/
|
|
public class NodeLockedException extends AlfrescoRuntimeException
|
|
{
|
|
/**
|
|
* Serial version UID
|
|
*/
|
|
private static final long serialVersionUID = 3762254149525582646L;
|
|
|
|
/**
|
|
* Error message
|
|
*/
|
|
private static final String ERROR_MESSAGE = I18NUtil.getMessage("lock_service.no_op");
|
|
private static final String ERROR_MESSAGE_2 = I18NUtil.getMessage("lock_service.no_op2");
|
|
|
|
/**
|
|
* Constructor for tests
|
|
*/
|
|
public NodeLockedException()
|
|
{
|
|
super("TEST CONSTRUCTOR INVOKED FOR NodeLockedException");
|
|
}
|
|
|
|
/**
|
|
* @param nodeRef NodeRef
|
|
*/
|
|
public NodeLockedException(NodeRef nodeRef)
|
|
{
|
|
super(MessageFormat.format(ERROR_MESSAGE, new Object[]{nodeRef.getId()}));
|
|
}
|
|
|
|
public NodeLockedException(NodeRef nodeRef, String operation)
|
|
{
|
|
super(MessageFormat.format(ERROR_MESSAGE_2, new Object[]{operation, nodeRef.getId()}));
|
|
}
|
|
}
|