1 20 21 package org.apache.directory.ldapstudio.browser.core.events; 22 23 24 import org.apache.directory.ldapstudio.browser.core.BrowserCoreMessages; 25 import org.apache.directory.ldapstudio.browser.core.model.IEntry; 26 27 28 34 public class EntryRenamedEvent extends EntryModificationEvent 35 { 36 37 38 private IEntry oldEntry; 39 40 41 private IEntry newEntry; 42 43 44 50 public EntryRenamedEvent( IEntry oldEntry, IEntry newEntry ) 51 { 52 super( newEntry.getConnection(), newEntry.getParententry() ); 53 this.oldEntry = oldEntry; 54 this.newEntry = newEntry; 55 } 56 57 58 63 public IEntry getNewEntry() 64 { 65 return newEntry; 66 } 67 68 69 74 public IEntry getOldEntry() 75 { 76 return oldEntry; 77 } 78 79 80 83 public String toString() 84 { 85 return BrowserCoreMessages.bind( BrowserCoreMessages.event__renamed_olddn_to_newdn, new String [] 86 { getOldEntry().getDn().toString(), getNewEntry().getDn().toString() } ); 87 } 88 89 } 90 | Popular Tags |