X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Addressbook%2Fsrc%2Forg%2Fmxchange%2Faddressbook%2Fmanager%2Fcontact%2FContactManager.java;h=e4e842ce19c66b07cfead9708e723045bcca0787;hb=d43d6638fbacdd05fc605609a24de099c0864cae;hp=096197be45fa6c1f9cdf312f87264662fce34293;hpb=c3a6502c11c40b41c5c20988dd7344526d583b14;p=jaddressbook-share-lib.git diff --git a/Addressbook/src/org/mxchange/addressbook/manager/contact/ContactManager.java b/Addressbook/src/org/mxchange/addressbook/manager/contact/ContactManager.java index 096197b..e4e842c 100644 --- a/Addressbook/src/org/mxchange/addressbook/manager/contact/ContactManager.java +++ b/Addressbook/src/org/mxchange/addressbook/manager/contact/ContactManager.java @@ -88,6 +88,26 @@ public class ContactManager extends BaseManager implements ManageableContact { throw new UnsupportedOperationException("Not supported yet."); } + /** + * Let the user change address data + * + * @param contact Instance to change data + */ + @Override + public void changeAddressData (final Contact contact) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + /** + * Let the user change "name data" + * + * @param contact Instance to change data + */ + @Override + public void changeNameData (final Contact contact) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + /** * Let the user change other address */ @@ -96,6 +116,16 @@ public class ContactManager extends BaseManager implements ManageableContact { throw new UnsupportedOperationException("Not supported yet."); } + /** + * Let the user change other data + * + * @param contact Instance to change data + */ + @Override + public void changeOtherData (final Contact contact) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + /** * Allows the user to change his/her own data */ @@ -119,8 +149,15 @@ public class ContactManager extends BaseManager implements ManageableContact { // It must be found assert(contact instanceof Contact); - // @TODO Unfinished - throw new UnsupportedOperationException("Method is not finished."); + // Display contact + contact.show(this.getClient()); + + try { + // Ask user what to change + this.getClient().doUserChangeAdressChoice(contact); + } catch (final Exception ex) { + this.getLogger().catching(ex); + } } /**