// Check user first
if (isUserContact && isCustomerContact) {
// Is both
- messageKey = "CONTACT_IS_USER_CUSTOMER"; //NOI18N
+ messageKey = "CONTACT_IS_USER_USER"; //NOI18N
} else if (isUserContact) {
// Only user
messageKey = "CONTACT_IS_USER"; //NOI18N
} else if (isCustomerContact) {
// Only customer
- messageKey = "CONTACT_IS_CUSTOMER"; //NOI18N
+ messageKey = "CONTACT_IS_USER"; //NOI18N
}
// Return message key
</div>
<ul>
- <li><h:link title="#{msg.LINK_ADMIN_LIST_CUSTOMER_TITLE}" outcome="admin_list_customer" value="#{msg.LINK_ADMIN_LIST_CUSTOMER}" /></li>
+ <li><h:link title="#{msg.LINK_ADMIN_LIST_USER_TITLE}" outcome="admin_list_customer" value="#{msg.LINK_ADMIN_LIST_USER}" /></li>
</ul>
<div class="menu_header">
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_CUSTOMER_NOT_SET}" rendered="#{empty customer}" />
+ <h:outputText styleClass="errors" value="#{msg.ERROR_PARAMETER_USER_NOT_SET}" rendered="#{empty customer}" />
<ui:fragment rendered="#{not empty customer}">
<div class="table">
<div class="table_row">
<ul>
<li>
- <h:link outcome="admin_edit_customer" value="#{msg.ADMIN_LINK_EDIT_CUSTOMER}" title="#{msg.ADMIN_LINK_EDIT_CUSTOMER_TITLE}">
+ <h:link outcome="admin_edit_customer" value="#{msg.ADMIN_LINK_EDIT_USER}" title="#{msg.ADMIN_LINK_EDIT_USER_TITLE}">
<f:param name="customerId" value="#{customer.customerId}" />
</h:link>
</li>
</li>
<li>
- <h:link outcome="admin_unlock_customer" value="#{msg.ADMIN_LINK_UNLOCK_CUSTOMER}" title="#{msg.ADMIN_LINK_UNLOCK_CUSTOMER_TITLE}">
+ <h:link outcome="admin_unlock_customer" value="#{msg.ADMIN_LINK_UNLOCK_USER}" title="#{msg.ADMIN_LINK_UNLOCK_USER_TITLE}">
<f:param name="customerId" value="#{customer.customerId}" />
</h:link>
</li>
<li>
- <h:link outcome="admin_delete_customer" title="#{msg.ADMIN_LINK_DELETE_CUSTOMER_TITLE}">
- <h:outputText styleClass="delete_link" value="#{msg.ADMIN_LINK_DELETE_CUSTOMER}" />
+ <h:link outcome="admin_delete_customer" title="#{msg.ADMIN_LINK_DELETE_USER_TITLE}">
+ <h:outputText styleClass="delete_link" value="#{msg.ADMIN_LINK_DELETE_USER}" />
<f:param name="customerId" value="#{customer.customerId}" />
</h:link>
</li>
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<div class="para notice">
- <h:outputText value="#{msg.ADMIN_CUSTOMER_PERSONAL_DATA_MINIMUM_NOTICE}" />
+ <h:outputText value="#{msg.ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE}" />
</div>
<ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
<div class="para notice">
<ul>
<li>#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}</li>
- <li>#{msg.GUEST_REGISTRATION_CUSTOMER_NUMBER_NOTICE}</li>
+ <li>#{msg.GUEST_REGISTRATION_USER_NUMBER_NOTICE}</li>
</ul>
</div>
</fieldset>
>
<f:metadata>
- <f:viewParam name="customerId" value="#{adminHelper.customer}" converter="CustomerConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_CUSTOMER_ID_NOT_SET}" />
+ <f:viewParam name="customerId" value="#{adminHelper.customer}" converter="CustomerConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
<f:viewAction action="#{adminHelper.copyCustomerToController()}" />
</f:metadata>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
<ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_DELETE_CUSTOMER}" />
+ <h:outputText value="#{msg.PAGE_TITLE_ADMIN_DELETE_USER}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_DELETE_CUSTOMER}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_DELETE_USER}" />
</ui:define>
<ui:define name="content">
>
<f:metadata>
- <f:viewParam name="customerId" value="#{adminHelper.customer}" converter="CustomerConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_CUSTOMER_ID_NOT_SET}" />
+ <f:viewParam name="customerId" value="#{adminHelper.customer}" converter="CustomerConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
<f:viewAction action="#{adminHelper.copyCustomerToController()}" />
</f:metadata>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
<ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_CUSTOMER}" />
+ <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_USER}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_CUSTOMER}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_USER}" />
</ui:define>
<ui:define name="content">
- <h:outputText styleClass="errors" value="#{msg.ERROR_CUSTOMER_ID_NOT_FOUND}" rendered="#{empty adminHelper.customer}" />
+ <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty adminHelper.customer}" />
<h:form id="form_admin_edit_customer" rendered="#{not empty adminHelper.customer}">
<div class="table">
<div class="table_header">
- <h:outputText value="#{msg.ADMIN_EDIT_CUSTOMER_TITLE}" />
+ <h:outputText value="#{msg.ADMIN_EDIT_USER_TITLE}" />
</div>
<div class="para notice">
- <h:outputText value="#{msg.ADMIN_CUSTOMER_PERSONAL_DATA_MINIMUM_NOTICE}" />
+ <h:outputText value="#{msg.ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE}" />
</div>
<ui:include src="/WEB-INF/templates/admin/customer/admin_form_customer_data.tpl">
<div class="table_footer">
<h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton class="submit" type="submit" id="admin_edit_customer" value="#{msg.BUTTON_ADMIN_EDIT_CUSTOMER}" action="#{adminCustomerController.editCustomerData()}" />
+ <h:commandButton class="submit" type="submit" id="admin_edit_customer" value="#{msg.BUTTON_ADMIN_EDIT_USER}" action="#{adminCustomerController.editCustomerData()}" />
</div>
</div>
</h:form>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
<ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CUSTOMER}" />
+ <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_USER}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CUSTOMER}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_USER}" />
</ui:define>
<ui:define name="content">
- <h:dataTable id="table_list_customers" var="customer" value="#{customerController.allCustomers()}" styleClass="table_big" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CUSTOMER}" rendered="#{customerController.hasCustomers()}">
+ <h:dataTable id="table_list_customers" var="customer" value="#{customerController.allCustomers()}" styleClass="table_big" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_USER}" rendered="#{customerController.hasCustomers()}">
<h:column>
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_CUSTOMER_ID}" />
+ <h:outputText value="#{msg.ADMIN_USER_ID}" />
</f:facet>
- <h:link outcome="admin_show_customer" title="#{msg.ADMIN_LINK_SHOW_CUSTOMER_TITLE}" value="#{customer.customerId}">
+ <h:link outcome="admin_show_customer" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{customer.customerId}">
<f:param name="customerId" value="#{customer.customerId}" />
</h:link>
</h:column>
<h:column>
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_CUSTOMER_NUMBER}" />
+ <h:outputText value="#{msg.ADMIN_USER_NUMBER}" />
</f:facet>
<h:outputText value="#{customer.customerNumber}" />
<h:column>
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_CUSTOMER_ACCOUNT_STATUS}" />
+ <h:outputText value="#{msg.ADMIN_USER_ACCOUNT_STATUS}" />
</f:facet>
<h:outputText styleClass="#{customer.customerAccountStatus.styleClass}" value="#{msg[customer.customerAccountStatus.messageKey]}" />
<h:column>
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_CUSTOMER_CREATED}" />
+ <h:outputText value="#{msg.ADMIN_USER_CREATED}" />
</f:facet>
<h:outputText id="customerCreated" value="#{customer.customerCreated.time}">
<div class="table_medium">
<h:form id="form_admin_add_customer">
<div class="table_header">
- <h:outputText value="#{msg.ADMIN_ADD_CUSTOMER_TITLE}" />
+ <h:outputText value="#{msg.ADMIN_ADD_USER_TITLE}" />
</div>
<div class="para">
<fieldset id="customer_contact">
- <legend title="#{msg.ADMIN_SELECT_CUSTOMER_CONTACT_LEGEND_TITLE}">
- <h:outputText value="#{msg.ADMIN_SELECT_CUSTOMER_CONTACT_LEGEND}" />
+ <legend title="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND_TITLE}">
+ <h:outputText value="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND}" />
</legend>
<div class="table_row">
<div class="table_left_medium">
- <h:outputLabel for="customerContact" value="#{msg.ADMIN_SELECT_CUSTOMER_CONTACT}" />
+ <h:outputLabel for="customerContact" value="#{msg.ADMIN_SELECT_USER_CONTACT}" />
</div>
<div class="table_right_medium">
</div>
<div class="para">
- <h:outputText value="#{msg.ADMIN_ADD_CUSTOMER_OR_ENTER_CONTACT_DATA}" />
+ <h:outputText value="#{msg.ADMIN_ADD_USER_OR_ENTER_CONTACT_DATA}" />
</div>
<ui:include src="/WEB-INF/templates/admin/customer/admin_form_customer_personal_data.tpl" />
<div class="table_footer">
<h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton class="submit" type="submit" id="add" value="#{msg.BUTTON_ADMIN_ADD_CUSTOMER}" action="#{adminCustomerController.addCustomer()}" />
+ <h:commandButton class="submit" type="submit" id="add" value="#{msg.BUTTON_ADMIN_ADD_USER}" action="#{adminCustomerController.addCustomer()}" />
</div>
</h:form>
</div>
>
<f:metadata>
- <f:viewParam name="customerId" value="#{adminHelper.customer}" converter="CustomerConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_CUSTOMER_ID_NOT_SET}" />
+ <f:viewParam name="customerId" value="#{adminHelper.customer}" converter="CustomerConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
<f:viewAction action="#{adminHelper.copyCustomerToController()}" />
</f:metadata>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
<ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_SHOW_CUSTOMER}" />
+ <h:outputText value="#{msg.PAGE_TITLE_ADMIN_SHOW_USER}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_SHOW_CUSTOMER}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_SHOW_USER}" />
</ui:define>
<ui:define name="content">
- <h:outputText styleClass="errors" value="#{msg.ERROR_CUSTOMER_ID_NOT_FOUND}" rendered="#{empty adminHelper.customer}" />
+ <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty adminHelper.customer}" />
- <h:panelGrid id="customer_profile" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_CUSTOMER}" headerClass="table_header_column" styleClass="table_big" columns="3" rendered="#{not empty adminHelper.customer}">
+ <h:panelGrid id="customer_profile" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_USER}" headerClass="table_header_column" styleClass="table_big" columns="3" rendered="#{not empty adminHelper.customer}">
<f:facet name="header">
- <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_CUSTOMER}">
+ <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_USER}">
<f:param value="#{adminHelper.customer.customerId}" />
</h:outputFormat>
</f:facet>
<h:column>
- <h:outputLabel for="customerId" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_ID}" />
+ <h:outputLabel for="customerId" styleClass="data_label" value="#{msg.ADMIN_USER_ID}" />
<h:outputText id="customerId" styleClass="data_field" value="#{adminHelper.customer.customerId}" />
</h:column>
<h:column>
- <h:outputLabel for="customerName" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_NUMBER}" />
+ <h:outputLabel for="customerName" styleClass="data_label" value="#{msg.ADMIN_USER_NUMBER}" />
<h:outputText id="customerName" styleClass="data_field" value="#{adminHelper.customer.customerNumber}" />
</h:column>
<h:column>
- <h:outputLabel for="customerCreated" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_CREATED}" />
+ <h:outputLabel for="customerCreated" styleClass="data_label" value="#{msg.ADMIN_USER_CREATED}" />
<h:outputText id="customerCreated" styleClass="data_field" value="#{adminHelper.customer.customerCreated.time}">
<f:convertDateTime for="customerCreated" type="both" />
</h:column>
<h:column>
- <h:outputLabel for="customerUpdated" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_UPDATED}" />
+ <h:outputLabel for="customerUpdated" styleClass="data_label" value="#{msg.ADMIN_USER_UPDATED}" />
<h:outputText id="customerUpdated" styleClass="data_field" value="#{adminHelper.customer.customerUpdated.time}">
<f:convertDateTime for="customerUpdated" type="both" />
</h:column>
<h:column>
- <h:outputLabel for="customerAccountStatus" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_ACCOUNT_STATUS}" />
+ <h:outputLabel for="customerAccountStatus" styleClass="data_label" value="#{msg.ADMIN_USER_ACCOUNT_STATUS}" />
<h:outputText id="customerAccountStatus" styleClass="data_field #{adminHelper.customer.customerAccountStatus.styleClass}" value="#{msg[adminHelper.customer.customerAccountStatus.messageKey]}" />
</h:column>
<h:column>
- <h:outputLabel for="customerLastLocked" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_LAST_LOCKED}" />
+ <h:outputLabel for="customerLastLocked" styleClass="data_label" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
<h:outputText id="customerLastLocked" styleClass="data_field" value="#{adminHelper.customer.customerLastLocked.time}">
<f:convertDateTime for="customerLastLocked" type="both" />
</h:column>
<h:column>
- <h:outputLabel for="customerLastLockedReason" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_LAST_LOCKED_REASON}" />
+ <h:outputLabel for="customerLastLockedReason" styleClass="data_label" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
<h:outputText id="customerLastLockedReason" styleClass="data_field" value="#{adminHelper.customer.customerLastLockedReason}" />
</h:column>
<h:column>
- <h:outputLabel for="contactCreated" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_CONTACT_CREATED}" />
+ <h:outputLabel for="contactCreated" styleClass="data_label" value="#{msg.ADMIN_USER_CONTACT_CREATED}" />
<h:outputText id="contactCreated" styleClass="data_field" value="#{adminHelper.customer.customerContact.contactCreated.time}">
<f:convertDateTime for="contactCreated" type="both" />
</h:column>
<h:column>
- <h:outputLabel for="contactUpdated" styleClass="data_label" value="#{msg.ADMIN_CUSTOMER_CONTACT_UPDATED}" />
+ <h:outputLabel for="contactUpdated" styleClass="data_label" value="#{msg.ADMIN_USER_CONTACT_UPDATED}" />
<h:outputText id="contactUpdated" styleClass="data_field" value="#{adminHelper.customer.customerContact.contactUpdated.time}">
<f:convertDateTime for="contactUpdated" type="both" />
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
<ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLOCK_CUSTOMER}" />
+ <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLOCK_USER}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLOCK_CUSTOMER}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLOCK_USER}" />
</ui:define>
<ui:define name="content">
<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
<ui:define name="guest_title">
- <h:outputText value="#{msg.PAGE_TITLE_CUSTOMER_CHECKOUT}" />
+ <h:outputText value="#{msg.PAGE_TITLE_USER_CHECKOUT}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_CUSTOMER_CHECKOUT}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_USER_CHECKOUT}" />
</ui:define>
<ui:define name="content">
<div class="checkout_outer">
<div class="checkout_title">
- <h:outputText value="#{msg.CONTENT_TITLE_CUSTOMER_CHECKOUT}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_USER_CHECKOUT}" />
</div>
<div class="checkout_options">
<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
<ui:define name="guest_title">
- <h:outputText value="#{msg.PAGE_TITLE_CUSTOMER_CHECKOUT_DONE}" />
+ <h:outputText value="#{msg.PAGE_TITLE_USER_CHECKOUT_DONE}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_CUSTOMER_CHECKOUT_DONE}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_USER_CHECKOUT_DONE}" />
</ui:define>
<ui:define name="content">
<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
<ui:define name="guest_title">
- <h:outputText value="#{msg.PAGE_TITLE_CUSTOMER_EMPTY_BASKET}" />
+ <h:outputText value="#{msg.PAGE_TITLE_USER_EMPTY_BASKET}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_CUSTOMER_EMPTY_BASKET}" />
+ <h:outputText value="#{msg.CONTENT_TITLE_USER_EMPTY_BASKET}" />
</ui:define>
<ui:define name="content">