/**
* List of all basic company data
*/
- private List<BasicData> allBasicData;
+ private final List<BasicData> allBasicData;
/**
* A list of all registered companies (globally)
import javax.naming.NamingException;
import org.mxchange.jcontactsbusiness.exceptions.basicdata.BasicDataNotFoundException;
import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
+import org.mxchange.jjobs.beans.business.basicdata.JobsBusinessDataWebRequestBean;
import org.mxchange.jjobs.beans.business.basicdata.JobsBusinessDataWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- BASIC_DATA_CONTROLLER = (JobsBusinessDataWebRequestController) initial.lookup("java:module/basicCompanyDataController!org.mxchange.jjobs.beans.business.basicdata.JobsBusinessDataWebRequestController"); //NOI18N
+ BASIC_DATA_CONTROLLER = (JobsBusinessDataWebRequestController) initial.lookup(String.format("java:module/%s", JobsBusinessDataWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
import javax.naming.NamingException;
import org.mxchange.jcontactsbusiness.exceptions.branchoffice.BranchOfficeNotFoundException;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
+import org.mxchange.jjobs.beans.business.branchoffice.JobsBranchOfficeWebRequestBean;
import org.mxchange.jjobs.beans.business.branchoffice.JobsBranchOfficeWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- BRANCH_OFFICE_CONTROLLER = (JobsBranchOfficeWebRequestController) initial.lookup("java:module/branchOfficeController!org.mxchange.jjobs.beans.business.branchoffice.JobsBranchOfficeWebRequestController");
+ BRANCH_OFFICE_CONTROLLER = (JobsBranchOfficeWebRequestController) initial.lookup(String.format("java:module/%s", JobsBranchOfficeWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
- throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
+ throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
}
}
import javax.naming.NamingException;
import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException;
import org.mxchange.jcontactsbusiness.model.department.Department;
+import org.mxchange.jjobs.beans.business.department.JobsDepartmentWebRequestBean;
import org.mxchange.jjobs.beans.business.department.JobsDepartmentWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- DEPARTMENT_CONTROLLER = (JobsDepartmentWebRequestController) initial.lookup("java:module/departmentController!org.mxchange.jjobs.beans.business.department.JobsDepartmentWebRequestController"); //NOI18N
+ DEPARTMENT_CONTROLLER = (JobsDepartmentWebRequestController) initial.lookup(String.format("java:module/%s", JobsDepartmentWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
import javax.naming.NamingException;
import org.mxchange.jcontactsbusiness.exceptions.employee.EmployeeNotFoundException;
import org.mxchange.jcontactsbusiness.model.employee.Employable;
+import org.mxchange.jjobs.beans.business.employee.JobsEmployeeWebRequestBean;
import org.mxchange.jjobs.beans.business.employee.JobsEmployeeWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- EMPLOYEE_CONTROLLER = (JobsEmployeeWebRequestController) initial.lookup("java:module/!.JobsEmployeeWebRequestController"); //NOI18N
+ EMPLOYEE_CONTROLLER = (JobsEmployeeWebRequestController) initial.lookup(String.format("java:module/%s", JobsEmployeeWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
import javax.naming.NamingException;
import org.mxchange.jcontactsbusiness.exceptions.opening_time.OpeningTimeNotFoundException;
import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
+import org.mxchange.jjobs.beans.business.opening_time.JobsOpeningTimeWebRequestBean;
import org.mxchange.jjobs.beans.business.opening_time.JobsOpeningTimeWebRequestController;
/**
/**
* Opening time backing bean
*/
- private static JobsOpeningTimeWebRequestController DEPARTMENT_CONTROLLER;
+ private static JobsOpeningTimeWebRequestController OPENING_TIMES_CONTROLLER;
@Override
public OpeningTime getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
// Is the instance there?
- if (DEPARTMENT_CONTROLLER == null) {
+ if (OPENING_TIMES_CONTROLLER == null) {
try {
// Not yet, attempt lookup
final Context initial = new InitialContext();
// Lookup EJB
- DEPARTMENT_CONTROLLER = (JobsOpeningTimeWebRequestController) initial.lookup("java:module/openingTimeController!org.mxchange.jjobs.beans.business.opening_time.JobsOpeningTimeWebRequestController"); //NOI18N
+ OPENING_TIMES_CONTROLLER = (JobsOpeningTimeWebRequestController) initial.lookup(String.format("java:module/%s", JobsOpeningTimeWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
final Long openingId = Long.valueOf(submittedValue);
// Try to get user instance from it
- openingTime = DEPARTMENT_CONTROLLER.findOpeningTimeById(openingId);
+ openingTime = OPENING_TIMES_CONTROLLER.findOpeningTimeById(openingId);
} catch (final NumberFormatException ex) {
// Throw again
throw new ConverterException(ex);
import javax.naming.NamingException;
import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
import org.mxchange.jcontacts.model.contact.Contact;
+import org.mxchange.jjobs.beans.contact.JobsContactWebRequestBean;
import org.mxchange.jjobs.beans.contact.JobsContactWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- CONTACT_CONTROLLER = (JobsContactWebRequestController) initial.lookup("java:module/contactController!org.mxchange.jjobs.beans.contact.JobsContactWebRequestController");
+ CONTACT_CONTROLLER = (JobsContactWebRequestController) initial.lookup(String.format("java:module/%s", JobsContactWebRequestBean.class.getSimpleName()));
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
import javax.naming.NamingException;
import org.mxchange.jcountry.exceptions.CountryNotFoundException;
import org.mxchange.jcountry.model.data.Country;
+import org.mxchange.jjobs.beans.country.JobsCountryWebRequestBean;
import org.mxchange.jjobs.beans.country.JobsCountryWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- COUNTRY_CONTROLLER = (JobsCountryWebRequestController) initial.lookup("java:module/countryController!org.mxchange.jjobs.beans.country.JobsCountryWebRequestController");
+ COUNTRY_CONTROLLER = (JobsCountryWebRequestController) initial.lookup(String.format("java:module/%s", JobsCountryWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
- throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
+ throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
}
}
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.mxchange.jjobs.beans.phone.JobsPhoneWebRequestBean;
import org.mxchange.jjobs.beans.phone.JobsPhoneWebRequestController;
import org.mxchange.jphone.exceptions.phone.PhoneEntityNotFoundException;
import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
final Context initial = new InitialContext();
// Lookup EJB
- PHONE_CONTROLLER = (JobsPhoneWebRequestController) initial.lookup("java:module/phoneController!org.mxchange.jphone.model.phonenumbers.phone.JobsPhoneWebRequestController");
+ PHONE_CONTROLLER = (JobsPhoneWebRequestController) initial.lookup(String.format("java:module/%s", JobsPhoneWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
- throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
+ throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
}
}
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.mxchange.jjobs.beans.phone.JobsPhoneWebRequestBean;
import org.mxchange.jjobs.beans.phone.JobsPhoneWebRequestController;
import org.mxchange.jphone.exceptions.phone.PhoneEntityNotFoundException;
import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber;
final Context initial = new InitialContext();
// Lookup EJB
- PHONE_CONTROLLER = (JobsPhoneWebRequestController) initial.lookup("java:module/phoneController!org.mxchange.jphone.model.phonenumbers.phone.JobsPhoneWebRequestController");
+ PHONE_CONTROLLER = (JobsPhoneWebRequestController) initial.lookup(String.format("java:module/%s", JobsPhoneWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
- throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
+ throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
}
}
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.mxchange.jjobs.beans.phone.JobsPhoneWebRequestBean;
import org.mxchange.jjobs.beans.phone.JobsPhoneWebRequestController;
import org.mxchange.jphone.exceptions.phone.PhoneEntityNotFoundException;
import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber;
final Context initial = new InitialContext();
// Lookup EJB
- PHONE_CONTROLLER = (JobsPhoneWebRequestController) initial.lookup("java:module/phoneController!org.mxchange.jjobs.beans.phone.JobsPhoneWebRequestController");
+ PHONE_CONTROLLER = (JobsPhoneWebRequestController) initial.lookup(String.format("java:module/%s", JobsPhoneWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.mxchange.jjobs.beans.mobileprovider.JobsMobileProviderWebRequestBean;
import org.mxchange.jjobs.beans.mobileprovider.JobsMobileProviderWebRequestController;
import org.mxchange.jphone.exceptions.mobileprovider.MobileProviderNotFoundException;
import org.mxchange.jphone.model.phonenumbers.mobileprovider.MobileProvider;
final Context initial = new InitialContext();
// Lookup EJB
- MOBILE_PROVIDER_CONTROLLER = (JobsMobileProviderWebRequestController) initial.lookup("java:module/mobileProviderController!org.mxchange.jjobs.beans.mobileprovider.JobsMobileProviderWebRequestController");
+ MOBILE_PROVIDER_CONTROLLER = (JobsMobileProviderWebRequestController) initial.lookup(String.format("java:module/%s", JobsMobileProviderWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
- throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
+ throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N
}
}
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.mxchange.jjobs.beans.user.JobsUserWebRequestBean;
import org.mxchange.jjobs.beans.user.JobsUserWebRequestController;
import org.mxchange.jusercore.exceptions.UserNotFoundException;
import org.mxchange.jusercore.model.user.User;
final Context initial = new InitialContext();
// Lookup EJB
- USER_CONTROLLER = (JobsUserWebRequestController) initial.lookup("java:module/userController!org.mxchange.jjobs.beans.user.JobsUserWebRequestController");
+ USER_CONTROLLER = (JobsUserWebRequestController) initial.lookup(String.format("java:module/%s", JobsUserWebRequestBean.class.getSimpleName()));
} catch (final NamingException ex) {
// Throw it again
throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.jcoreee.validator.string.BaseStringValidator;
+import org.mxchange.jjobs.beans.business.basicdata.JobsBusinessDataWebRequestBean;
import org.mxchange.jjobs.beans.business.basicdata.JobsBusinessDataWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- BASIC_DATA_CONTROLLER = (JobsBusinessDataWebRequestController) initial.lookup("java:module/basicCompanyDataController!org.mxchange.jjobs.beans.business.basicdata.JobsBusinessDataWebRequestController"); //NOI18N
+ BASIC_DATA_CONTROLLER = (JobsBusinessDataWebRequestController) initial.lookup(String.format("java:module/%s", JobsBusinessDataWebRequestBean.class.getSimpleName())); //NOI18N
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.jcoreee.validator.string.BaseStringValidator;
+import org.mxchange.jjobs.beans.contact.JobsContactWebRequestBean;
import org.mxchange.jjobs.beans.contact.JobsContactWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- CONTACT_CONTROLLER = (JobsContactWebRequestController) initial.lookup("java:module/contactController!org.mxchange.jjobs.beans.contact.JobsContactWebRequestController");
+ CONTACT_CONTROLLER = (JobsContactWebRequestController) initial.lookup(String.format("java:module/%s", JobsContactWebRequestBean.class.getSimpleName()));
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.jcoreee.validator.number.BaseNumberValidator;
+import org.mxchange.jjobs.beans.user.JobsUserWebRequestBean;
import org.mxchange.jjobs.beans.user.JobsUserWebRequestController;
/**
final Context initial = new InitialContext();
// Lookup EJB
- USER_CONTROLLER = (JobsUserWebRequestController) initial.lookup("java:module/userController!org.mxchange.jjobs.beans.user.JobsUserWebRequestController");
+ USER_CONTROLLER = (JobsUserWebRequestController) initial.lookup(String.format("java:module/%s", JobsUserWebRequestBean.class.getSimpleName()));
} catch (final NamingException ex) {
// Throw it again
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex);