1 17 18 19 20 package org.apache.lenya.cms.rc; 21 22 import java.util.Date ; 23 24 25 public class FileReservedCheckOutException extends Exception { 26 private String source = null; 27 private Date checkOutDate = null; 28 private String checkOutUsername = null; 29 30 38 public FileReservedCheckOutException(String source, RCML rcml) 39 throws Exception { 40 this.source = source; 41 42 try { 43 CheckOutEntry coe = rcml.getLatestCheckOutEntry(); 44 45 checkOutUsername = coe.getIdentity(); 46 checkOutDate = new Date (coe.getTime()); 47 } catch (Exception exception) { 48 throw new Exception ("Unable to create FileReservedCheckOutException object!"); 49 } 50 } 51 52 57 public Date getCheckOutDate() { 58 return checkOutDate; 59 } 60 61 66 public String getCheckOutUsername() { 67 return checkOutUsername; 68 } 69 70 } 71 | Popular Tags |