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.IConnection; 26 import org.apache.directory.ldapstudio.browser.core.model.IEntry; 27 import org.apache.directory.ldapstudio.browser.core.model.IValue; 28 29 30 37 public class ValueRenamedEvent extends EntryModificationEvent 38 { 39 40 41 private IValue oldValue; 42 43 44 private IValue newValue; 45 46 47 55 public ValueRenamedEvent( IConnection connection, IEntry modifiedEntry, IValue oldValue, IValue newValue ) 56 { 57 super( connection, modifiedEntry ); 58 this.oldValue = oldValue; 59 this.newValue = newValue; 60 } 61 62 63 68 public IValue getNewValue() 69 { 70 return newValue; 71 } 72 73 74 79 public IValue getOldValue() 80 { 81 return oldValue; 82 } 83 84 85 88 public String toString() 89 { 90 return BrowserCoreMessages.bind( BrowserCoreMessages.event__renamed_oldval_by_newval_at_dn, new String [] 91 { getOldValue().toString(), getNewValue().toString(), getModifiedEntry().getDn().toString() } ); 92 } 93 94 } 95 | Popular Tags |