throw new UnsupportedOperationException("Not supported yet.");
}
- /**
- * Let the user change other address
- */
- @Override
- public void doChangeOtherAddress () {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- /**
- * Allows the user to change his/her own data
- */
- @Override
- public void doChangeOwnData () {
- /*
- * First check if the user has registered own contact, before that
- * nothing can be changed.
- */
- if (!this.isOwnContactAdded()) {
- // Not added
- this.getClient().outputMessage("Sie haben noch nicht Ihre Daten eingegeben.");
-
- // Skip any below code
- return;
- }
-
- // Instance
- Contact contact = this.getOwnContact();
-
- // It must be found
- assert(contact instanceof Contact);
-
- // Display contact
- contact.show(this.getClient());
-
- try {
- // Ask user what to change
- this.getClient().userChooseChangeContactData(contact);
- } catch (final UnhandledUserChoiceException ex) {
- this.getLogger().catching(ex);
- }
- }
-
- /**
- * Let the user delete other address
- */
- @Override
- public void doDeleteOtherAddress () {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
/**
* Let the user change address data
*
this.flush();
}
+ /**
+ * Let the user change other address
+ */
+ @Override
+ public void doChangeOtherAddress () {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+
/**
* Let the user change other data
*
this.flush();
}
+ /**
+ * Allows the user to change his/her own data
+ */
+ @Override
+ public void doChangeOwnData () {
+ /*
+ * First check if the user has registered own contact, before that
+ * nothing can be changed.
+ */
+ if (!this.isOwnContactAdded()) {
+ // Not added
+ this.getClient().outputMessage("Sie haben noch nicht Ihre Daten eingegeben.");
+
+ // Skip any below code
+ return;
+ }
+
+ // Instance
+ Contact contact = this.getOwnContact();
+
+ // It must be found
+ assert(contact instanceof Contact);
+
+ // Display contact
+ contact.show(this.getClient());
+
+ try {
+ // Ask user what to change
+ this.getClient().userChooseChangeContactData(contact);
+ } catch (final UnhandledUserChoiceException ex) {
+ this.getLogger().catching(ex);
+ }
+ }
+
+ /**
+ * Let the user delete other address
+ */
+ @Override
+ public void doDeleteOtherAddress () {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+
/**
* Asks user for own data
*/
this.registerContact(contact);
}
+ @Override
+ public void doListContacts () {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+
+ @Override
+ public void doSearchContacts () {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+
/**
* Shuts down this contact manager
*/
return isAdded;
}
- @Override
- public void doListContacts () {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
/**
* Adds given contact to address book and flushes all entries to database
*
this.flush();
}
- @Override
- public void doSearchContacts () {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
/**
* Getter for size
*