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 EntryMovedEvent extends EntryModificationEvent 35 { 36 37 38 private IEntry oldEntry; 39 40 41 private IEntry newEntry; 42 43 44 50 public EntryMovedEvent( 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__moved_oldrdn_from_oldparent_to_newparent, 86 new String [] 87 { getOldEntry().getDn().getRdn().toString(), getOldEntry().getParententry().getDn().toString(), 88 getNewEntry().getParententry().getDn().toString() } ); 89 } 90 91 } 92 | Popular Tags |