import javax.naming.NamingException;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcontacts.phone.AdminContactsPhoneSessionBeanRemote;
+import org.mxchange.jjobs.beans.BaseJobsController;
import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
/**
- * Administrative bean (controller) for contact's phone numbers
+ * Administrative bean (controller) for phone numbers
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
-@Named ("adminContactPhoneController")
+@Named ("adminPhoneController")
@RequestScoped
-public class JobsAdminContactPhoneWebSessionBean implements JobsAdminContactPhoneWebSessionController {
+public class JobsAdminContactPhoneWebSessionBean extends BaseJobsController implements JobsAdminContactPhoneWebSessionController {
/**
* Serial number
/**
* Instance of linked contact account
+ * <p>
+ * @deprecated This is a generic phone controller, not just for contact data
*/
+ @Deprecated
private Contact contact;
/**
* "Cache" for contact lists, mostly only one is assigned. So this cache
* shouldn't grow beyond control.
+ * <p>
+ * @deprecated This is a generic phone controller, not just for contact data
*/
+ @Deprecated
private final Map<Long, List<Contact>> contacts;
/**
Context context = new InitialContext();
// Try to lookup the beans
- this.adminRemoteBean = (AdminContactsPhoneSessionBeanRemote) context.lookup("java:global/PizzaService-ejb/admincontactphone!org.mxchange.jcontacts.phone.AdminContactsPhoneSessionBeanRemote"); //NOI18N
+ this.adminRemoteBean = (AdminContactsPhoneSessionBeanRemote) context.lookup("java:global/jjobs-ejb/admincontactphone!org.mxchange.jcontacts.phone.AdminContactsPhoneSessionBeanRemote"); //NOI18N
} catch (final NamingException e) {
// Throw it again
throw new FaceletException(e);
}
@Override
+ @Deprecated
public List<Contact> allCellphoneContacts () {
// Get id
Long phoneId = this.getCellPhone().getPhoneId();
}
@Override
+ @Deprecated
public Contact getContact () {
return this.contact;
}
@Override
+ @Deprecated
public void setContact (final Contact contact) {
this.contact = contact;
}