1 12 13 package com.openedit.modules.edit; 14 15 import com.openedit.OpenEditException; 16 import com.openedit.users.User; 17 18 19 25 public class AlreadyLockedException extends OpenEditException 26 { 27 protected String fieldPath; 28 protected User fieldLockOwner; 29 30 36 public AlreadyLockedException(String inPath, User inUser) 37 { 38 super("Path \"" + inPath + " \" is already locked by " + inUser.getUserName()); 39 setPath(inPath); 40 setLockOwner(inUser); 41 } 42 43 48 public User getLockOwner() 49 { 50 return fieldLockOwner; 51 } 52 53 58 public String getPath() 59 { 60 return fieldPath; 61 } 62 63 68 protected void setLockOwner(User lockOwner) 69 { 70 fieldLockOwner = lockOwner; 71 } 72 73 78 protected void setPath(String path) 79 { 80 fieldPath = path; 81 } 82 } 83 | Popular Tags |