import javax.inject.Inject;
import javax.inject.Named;
import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.events.mobile.unlinked.AdminUnlinkedMobileNumberEvent;
import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
+import org.mxchange.jcontacts.events.mobile.unlinked.AdminUnlinkedMobileNumberEvent;
import org.mxchange.jphone.phonenumbers.DialableNumber;
import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
}
@Override
- public List<Contact> allCellphoneContacts () {
+ public List<Contact> allMobileNumberContacts () {
// Get id
- DialableMobileNumber phone = this.beanHelper.getMobileNumber();
+ DialableMobileNumber mobileNumber = this.beanHelper.getMobileNumber();
// Is cache there?
- if (this.contacts.containsKey(phone)) {
+ if (this.contacts.containsKey(mobileNumber)) {
// Return cached version
- return this.contacts.get(phone);
+ return this.contacts.get(mobileNumber);
} else {
// Ask bean
List<Contact> list = new LinkedList<>();
}
// Store result in cache
- this.contacts.put(phone, list);
+ this.contacts.put(mobileNumber, list);
// Return now-cached list
return list;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
import org.mxchange.jcontacts.events.mobile.unlinked.AdminUnlinkedMobileNumberEvent;
+import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
/**
* An interface for user beans
public interface JobsContactPhoneWebSessionController extends Serializable {
/**
- * Getter for all contacts having current mobile instance linked
+ * Getter for all contacts having current mobile number linked
* <p>
* @return List of all linked contacts
*/
- List<Contact> allCellphoneContacts ();
+ List<Contact> allMobileNumberContacts ();
/**
* Event observer for newly added users by adminstrator
<ui:param name="isShowPage" value="#{true}" />
</ui:include>
- <h:dataTable id="contact_mobile_link" var="contact" value="#{contactPhoneController.allCellphoneContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_MOBILE_LINKS}" headerClass="table_header_column" styleClass="table_medium">
+ <h:dataTable id="contact_mobile_link" var="contact" value="#{contactPhoneController.allMobileNumberContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_MOBILE_LINKS}" headerClass="table_header_column" styleClass="table_medium">
<f:facet name="header">
<h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_MOBILE_LINKS}">
<f:param value="#{beanHelper.mobileNumber.phoneId}" />