import javax.faces.FacesException;
import javax.inject.Inject;
import javax.inject.Named;
-import org.mxchange.jcontactsbusiness.model.basicdata.AdminBusinessDataSessionBeanRemote;
+import org.mxchange.jcontactsbusiness.model.basicdata.AdminBasicCompanyDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.model.basicdata.CompanyBasicData;
import org.mxchange.jcontactsbusiness.model.employee.Employee;
/**
* EJB for administrative purposes
*/
- @EJB (lookup = "java:global/jjobs-ejb/adminBusinessData!org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemote")
- private AdminBusinessDataSessionBeanRemote adminBusinessDataBean;
+ @EJB (lookup = "java:global/jjobs-ejb/adminBasicCompanyData!org.mxchange.jcontactsbusiness.model.basicdata.AdminBasicCompanyDataSessionBeanRemote")
+ private AdminBasicCompanyDataSessionBeanRemote adminBasicCompanyDataBean;
/**
* An event being fired when basic business data has been added
// Now try to send to EJB and get an updated version back
try {
// Try it
- BusinessBasicData updatedBasicData = this.adminBusinessDataBean.addCompanyBasicData(basicData);
+ BusinessBasicData updatedBasicData = this.adminBasicCompanyDataBean.addCompanyBasicData(basicData);
// Fire event
this.businessDataAddedEvent.fire(new AdminAddedBusinessBasicDataEvent(updatedBasicData));
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import javax.inject.Named;
-import org.mxchange.jcontactsbusiness.model.basicdata.AdminBusinessDataSessionBeanRemote;
+import org.mxchange.jcontactsbusiness.model.basicdata.AdminBasicCompanyDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessDataSessionBeanRemote;
+import org.mxchange.jcontactsbusiness.model.basicdata.BasicCompanyDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.events.basicdata.added.ObservableAdminAddedBusinessBasicDataEvent;
import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jjobs.beans.BaseJobsController;
/**
* EJB for administrative basic business data purposes
*/
- @EJB (lookup = "java:global/jjobs-ejb/adminBusinessData!org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemote", description = "A stateless session bean for administrative purposes.")
- private AdminBusinessDataSessionBeanRemote adminBusinessDataBean;
+ @EJB (lookup = "java:global/jjobs-ejb/adminBasicCompanyData!org.mxchange.jcontactsbusiness.model.basicdata.AdminBasicCompanyDataSessionBeanRemote", description = "A stateless session bean for administrative purposes.")
+ private AdminBasicCompanyDataSessionBeanRemote adminBasicCompanyDataBean;
/**
* A list of all registered companies (globally)
/**
* EJB for general basic business data purposes
*/
- @EJB (lookup = "java:global/jjobs-ejb/businessData!org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote", description = "A stateless session bean for general purposes.")
- private BusinessDataSessionBeanRemote businessDataBean;
+ @EJB (lookup = "java:global/jjobs-ejb/basicCompanyData!org.mxchange.jcontactsbusiness.model.basicdata.BasicCompanyDataSessionBeanRemote", description = "A stateless session bean for general purposes.")
+ private BasicCompanyDataSessionBeanRemote businessDataBean;
/**
* Comments for this company
/**
* EJB for administrative purposes
*/
- @EJB (lookup = "java:global/jjobs-ejb/branchOffice!org.mxchange.jcontactsbusiness.branchoffice.BranchOfficeSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/branchOffice!org.mxchange.jcontactsbusiness.model.branchoffice.BranchOfficeSessionBeanRemote")
private BranchOfficeSessionBeanRemote branchOfficeBean;
/**
/**
* EJB for administrative company employee purposes
*/
- @EJB (lookup = "java:global/jjobs-ejb/adminCompanyEmployee!org.mxchange.jcontactsbusiness.employee.AdminCompanyEmployeeSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/adminCompanyEmployee!org.mxchange.jcontactsbusiness.model.employee.AdminCompanyEmployeeSessionBeanRemote")
private AdminCompanyEmployeeSessionBeanRemote adminCompanyEmployeeBean;
/**
/**
* EJB for general company employee purposes
*/
- @EJB (lookup = "java:global/jjobs-ejb/companyEmployee!org.mxchange.jcontactsbusiness.employee.CompanyEmployeeSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/companyEmployee!org.mxchange.jcontactsbusiness.model.employee.CompanyEmployeeSessionBeanRemote")
private CompanyEmployeeSessionBeanRemote companyEmployeeBean;
/**
/**
* Administrative contact EJB
*/
- @EJB (lookup = "java:global/jjobs-ejb/adminContact!org.mxchange.jcontacts.contact.AdminContactSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/adminContact!org.mxchange.jcontacts.model.contact.AdminContactSessionBeanRemote")
private AdminContactSessionBeanRemote adminContactBean;
/**
/**
* EJB for general contact purposes
*/
- @EJB (lookup = "java:global/jjobs-ejb/contact!org.mxchange.jcontacts.contact.ContactSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/contact!org.mxchange.jcontacts.model.contact.ContactSessionBeanRemote")
private ContactSessionBeanRemote contactBean;
/**
/**
* EJB for general contact purposes
*/
- @EJB (lookup = "java:global/jjobs-ejb/contact!org.mxchange.jcontacts.contact.ContactSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/contact!org.mxchange.jcontacts.model.contact.ContactSessionBeanRemote")
private ContactSessionBeanRemote contactBean;
/**
/**
* Administrative EJB for phone number
*/
- @EJB (lookup = "java:global/jjobs-ejb/adminContactPhone!org.mxchange.jcontacts.phone.AdminContactsPhoneSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/adminContactPhone!org.mxchange.jcontacts.model.phone.AdminContactsPhoneSessionBeanRemote")
private AdminContactsPhoneSessionBeanRemote adminContactPhoneBean;
/**
/**
* Remote country EJB
*/
- @EJB (lookup = "java:global/jjobs-ejb/country!org.mxchange.jcountry.data.CountrySingletonBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/country!org.mxchange.jcountry.model.data.CountrySingletonBeanRemote")
private CountrySingletonBeanRemote countryBean;
/**
/**
* Remote country EJB
*/
- @EJB (lookup = "java:global/jjobs-ejb/country!org.mxchange.jcountry.data.CountrySingletonBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/country!org.mxchange.jcountry.model.data.CountrySingletonBeanRemote")
private CountrySingletonBeanRemote countryBean;
/**
/**
* Remote EJB for mobile providers (administrative)
*/
- @EJB (lookup = "java:global/jjobs-ejb/adminMobileProvider!org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/adminMobileProvider!org.mxchange.jphone.model.phonenumbers.mobileprovider.AdminMobileProviderSessionBeanRemote")
private AdminMobileProviderSessionBeanRemote adminRemoteBean;
/**
/**
* Remote EJB for mobile providers (regular)
*/
- @EJB (lookup = "java:global/jjobs-ejb/mobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.MobileProviderSingletonBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/mobileprovider!org.mxchange.jphone.model.phonenumbers.mobileprovider.MobileProviderSingletonBeanRemote")
private MobileProviderSingletonBeanRemote mobileProviderBean;
/**
/**
* Remote EJB for phone number (administrative)
*/
- @EJB (lookup = "java:global/jjobs-ejb/adminPhone!org.mxchange.jphone.phonenumbers.phone.AdminPhoneSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/adminPhone!org.mxchange.jphone.model.phonenumbers.phone.AdminPhoneSessionBeanRemote")
private AdminPhoneSessionBeanRemote adminPhoneBean;
/**
/**
* General EJB for phone numbers
*/
- @EJB (lookup = "java:global/jjobs-ejb/phone!org.mxchange.jphone.phonenumbers.phone.PhoneSessionBeanRemote")
+ @EJB (lookup = "java:global/jjobs-ejb/phone!org.mxchange.jphone.model.phonenumbers.phone.PhoneSessionBeanRemote")
private PhoneSessionBeanRemote phoneBean;
/**
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessDataSessionBeanRemote;
+import org.mxchange.jcontactsbusiness.model.basicdata.BasicCompanyDataSessionBeanRemote;
import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataNotFoundException;
/**
/**
* Business contact EJB
*/
- private static BusinessDataSessionBeanRemote BASIC_DATA_BEAN;
+ private static BasicCompanyDataSessionBeanRemote BASIC_DATA_BEAN;
@Override
public BusinessBasicData getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
final Context initial = new InitialContext();
// Lookup EJB
- BASIC_DATA_BEAN = (BusinessDataSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/businessData!org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote");
+ BASIC_DATA_BEAN = (BasicCompanyDataSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/basicCompanyData!org.mxchange.jcontactsbusiness.model.basicdata.BasicCompanyDataSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- COMPANY_EMPLOYEE_BEAN = (CompanyEmployeeSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/companyEmployee!org.mxchange.jcontactsbusiness.employee.CompanyEmployeeSessionBeanRemote");
+ COMPANY_EMPLOYEE_BEAN = (CompanyEmployeeSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/companyEmployee!org.mxchange.jcontactsbusiness.model.employee.CompanyEmployeeSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- COMPANY_HEADQUARTERS_BEAN = (CompanyHeadquartersSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/companyEmployee!org.mxchange.jcontactsbusiness.headquarters.CompanyHeadquartersSessionBeanRemote");
+ COMPANY_HEADQUARTERS_BEAN = (CompanyHeadquartersSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/companyEmployee!org.mxchange.jcontactsbusiness.model.headquarters.CompanyHeadquartersSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- CONTACT_BEAN = (ContactSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/contact!org.mxchange.jcontacts.contact.ContactSessionBeanRemote");
+ CONTACT_BEAN = (ContactSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/contact!org.mxchange.jcontacts.model.contact.ContactSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- COUNTRY_BEAN = (CountrySingletonBeanRemote) initial.lookup("java:global/jjobs-ejb/country!org.mxchange.jcountry.data.CountrySingletonBeanRemote");
+ COUNTRY_BEAN = (CountrySingletonBeanRemote) initial.lookup("java:global/jjobs-ejb/country!org.mxchange.jcountry.model.data.CountrySingletonBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- PHONE_BEAN = (PhoneSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/phone!org.mxchange.jphone.phonenumbers.phone.PhoneSessionBeanRemote");
+ PHONE_BEAN = (PhoneSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/phone!org.mxchange.jphone.model.phonenumbers.phone.PhoneSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- PHONE_BEAN = (PhoneSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/phone!org.mxchange.jphone.phonenumbers.phone.PhoneSessionBeanRemote");
+ PHONE_BEAN = (PhoneSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/phone!org.mxchange.jphone.model.phonenumbers.phone.PhoneSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- PHONE_BEAN = (PhoneSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/phone!org.mxchange.jphone.phonenumbers.phone.PhoneSessionBeanRemote");
+ PHONE_BEAN = (PhoneSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/phone!org.mxchange.jphone.model.phonenumbers.phone.PhoneSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- MOBILE_PROVIDER_BEAN = (MobileProviderSingletonBeanRemote) initial.lookup("java:global/jjobs-ejb/mobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.MobileProviderSingletonBeanRemote");
+ MOBILE_PROVIDER_BEAN = (MobileProviderSingletonBeanRemote) initial.lookup("java:global/jjobs-ejb/mobileprovider!org.mxchange.jphone.model.phonenumbers.mobileprovider.MobileProviderSingletonBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessDataSessionBeanRemote;
+import org.mxchange.jcontactsbusiness.model.basicdata.BasicCompanyDataSessionBeanRemote;
import org.mxchange.jcoreee.validator.string.BaseStringValidator;
/**
/**
* Business contact EJB
*/
- private static BusinessDataSessionBeanRemote BASIC_DATA_BEAN;
+ private static BasicCompanyDataSessionBeanRemote BASIC_DATA_BEAN;
/**
* Serial number
final Context initial = new InitialContext();
// Lookup EJB
- BASIC_DATA_BEAN = (BusinessDataSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/businessData!org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote");
+ BASIC_DATA_BEAN = (BasicCompanyDataSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/basicCompanyData!org.mxchange.jcontactsbusiness.model.basicdata.BasicCompanyDataSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
final Context initial = new InitialContext();
// Lookup EJB
- CONTACT_BEAN = (ContactSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/contact!org.mxchange.jcontacts.contact.ContactSessionBeanRemote");
+ CONTACT_BEAN = (ContactSessionBeanRemote) initial.lookup("java:global/jjobs-ejb/contact!org.mxchange.jcontacts.model.contact.ContactSessionBeanRemote");
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup EJB", ex.getMessage()), ex);
<name>faxNumber</name>
<description>The fax instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber</type>
</attribute>
<attribute>
<name>rendered</name>
<name>landLineNumber</name>
<description>The fax instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber</type>
</attribute>
<attribute>
<name>rendered</name>
<name>mobileNumber</name>
<description>The mobile instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber</type>
</attribute>
<attribute>
<name>rendered</name>
<name>faxNumber</name>
<description>The fax instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber</type>
</attribute>
<attribute>
<name>contact</name>
<description>The contact instance that provides contact data for additional JSF links.</description>
<required>false</required>
- <type>org.mxchange.jcontacts.contact.Contact</type>
+ <type>org.mxchange.jcontacts.model.contact.Contact</type>
</attribute>
<attribute>
<name>rendered</name>
<name>landLineNumber</name>
<description>The fax instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber</type>
</attribute>
<attribute>
<name>contact</name>
<description>The contact instance that provides contact data for additional JSF links.</description>
<required>false</required>
- <type>org.mxchange.jcontacts.contact.Contact</type>
+ <type>org.mxchange.jcontacts.model.contact.Contact</type>
</attribute>
<attribute>
<name>rendered</name>
<name>mobileNumber</name>
<description>The mobile instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber</type>
</attribute>
<attribute>
<name>contact</name>
<description>The contact instance that provides contact data for additional JSF links.</description>
<required>false</required>
- <type>org.mxchange.jcontacts.contact.Contact</type>
+ <type>org.mxchange.jcontacts.model.contact.Contact</type>
</attribute>
<attribute>
<name>rendered</name>
<name>faxNumber</name>
<description>The fax instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber</type>
</attribute>
<attribute>
<name>contact</name>
<description>The contact instance that provides contact data for additional JSF links.</description>
<required>false</required>
- <type>org.mxchange.jcontacts.contact.Contact</type>
+ <type>org.mxchange.jcontacts.model.contact.Contact</type>
</attribute>
<attribute>
<name>rendered</name>
<name>landLineNumber</name>
<description>The fax instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber</type>
</attribute>
<attribute>
<name>contact</name>
<description>The contact instance that provides contact data for additional JSF links.</description>
<required>false</required>
- <type>org.mxchange.jcontacts.contact.Contact</type>
+ <type>org.mxchange.jcontacts.model.contact.Contact</type>
</attribute>
<attribute>
<name>rendered</name>
<name>mobileNumber</name>
<description>The mobile instance that provides the data for this tag.</description>
<required>true</required>
- <type>org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber</type>
+ <type>org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber</type>
</attribute>
<attribute>
<name>contact</name>
<description>The contact instance that provides contact data for additional JSF links.</description>
<required>false</required>
- <type>org.mxchange.jcontacts.contact.Contact</type>
+ <type>org.mxchange.jcontacts.model.contact.Contact</type>
</attribute>
<attribute>
<name>rendered</name>