Roland Häder [Tue, 3 May 2016 14:10:24 +0000 (16:10 +0200)]
renamed i18n string, generic now
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 3 May 2016 21:00:31 +0000 (23:00 +0200)]
Not used here ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 3 May 2016 11:53:52 +0000 (13:53 +0200)]
removed link as this is done in list page + readded base template
Roland Häder [Tue, 3 May 2016 11:45:08 +0000 (13:45 +0200)]
renamed controller as there are now 2 logins + converted CRLF->LF
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 3 May 2016 11:33:38 +0000 (13:33 +0200)]
Contined a bit:
- sorted imports
- first @Observes then final
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 3 May 2016 11:33:20 +0000 (13:33 +0200)]
Continued with recruiter:
- added initial recruiter pages (requires separate login)
- added initial controller (interfaces and beans)
- added initial recruiter-stuff into helper
- removed double index.xhtml
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 3 May 2016 08:29:18 +0000 (10:29 +0200)]
Cleanups:
- hasUsers/allUsers was redundant
- moved isContactFound to admin user controller to avoid redundant lists, too
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 3 May 2016 07:37:14 +0000 (09:37 +0200)]
from merge (jjobs)
Signed-off-by: Roland Häder <roland@haeder.net>
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 3 May 2016 19:07:10 +0000 (21:07 +0200)]
updated jar(s)
Roland Häder [Mon, 2 May 2016 10:32:58 +0000 (12:32 +0200)]
fixed language string
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 7 Oct 2015 10:42:06 +0000 (12:42 +0200)]
added initial login templates and navigation rules
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 2 May 2016 10:39:57 +0000 (12:39 +0200)]
Continued a bit:
- added missing helper call
- renamed method
- added missing navigation rules
Signed-off-by: Roland Häder <roland@haeder.net>
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 2 May 2016 10:04:11 +0000 (12:04 +0200)]
renamed converter to make them more clear (in JSF page)
Signed-off-by: Roland Häder <roland@haeder.net>
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 2 May 2016 07:15:46 +0000 (09:15 +0200)]
These validators are registered by using an annotation
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 30 Apr 2016 09:48:48 +0000 (11:48 +0200)]
fixed imports
Roland Haeder [Fri, 29 Apr 2016 20:16:04 +0000 (22:16 +0200)]
The customer is now differently created, first you need to get the contact-relevant data from the contact controller, then you need to generate a customer number and attach the contact instance to it.
Method addCustomer(customer) was no need for calling external as the event does the same job.
Remove event from general customer controller.
Roland Haeder [Fri, 29 Apr 2016 20:00:28 +0000 (22:00 +0200)]
globally updated jar(s)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 29 Apr 2016 18:55:59 +0000 (20:55 +0200)]
removed jcore.jar as it is not intended for JavaEE applications.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 29 Apr 2016 15:37:34 +0000 (17:37 +0200)]
moved template to proper place
Roland Häder [Fri, 29 Apr 2016 15:15:23 +0000 (17:15 +0200)]
Fixed i18n related stuff
Roland Häder [Fri, 29 Apr 2016 13:43:26 +0000 (15:43 +0200)]
Continued a bit:
- renamed method changeUserData() to editUserData() (members sorted)
- surpressed some warnings that are not being fixed
- clear() needs to be called
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 29 Apr 2016 13:16:16 +0000 (15:16 +0200)]
Continued with customer:
- editing customer data is "basicly finished"
- removed i18n key as this was not following convention (and redundant)
- a user entry was not found (for users more clear)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 29 Apr 2016 09:53:13 +0000 (11:53 +0200)]
Opps, missed to change this, too
Roland Häder [Fri, 29 Apr 2016 09:46:33 +0000 (11:46 +0200)]
Continued with contacts:
- showing contact data is "basicly finished"
- introduced template admin_contact_data.tpl"
- added missing navigation cases
- contact personal data is not user - fixed
- include always gender
- added new page for deleting contact data
- added CSS class for delete buttons
- added template for administrative contact links
- added missing i18n strings
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 29 Apr 2016 08:47:58 +0000 (10:47 +0200)]
Fixed i18n keys
Signed-off-by: Roland Häder <roland@haeder.net>
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 28 Apr 2016 17:47:51 +0000 (19:47 +0200)]
updated jar(s)
Roland Haeder [Thu, 28 Apr 2016 17:45:12 +0000 (19:45 +0200)]
ignored for i18n
Roland Häder [Thu, 28 Apr 2016 12:17:13 +0000 (14:17 +0200)]
Continued with customers and rewrite a bit:
- page show_customer "basicly finished"
- removed double redundant i18n strings (no need)
- added customer's i18n strings (admin)
- now always handle a contact to "cellhpone templates", this is much easier and users/customers don't have cellphones/land-line or fax numbers, only contacts
- added template for administrative links for customers (similar to users)
- added missing navigation rules
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 28 Apr 2016 09:15:29 +0000 (11:15 +0200)]
Continued with customer:
- added converter for customerId <-> Customer object
- used this in administrative customer pages
- added method copyCustomerToController()
- added getter/setter for customer in helper bean
- some messages fixed (copy-paste)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 28 Apr 2016 07:00:11 +0000 (09:00 +0200)]
better wording
Roland Haeder [Thu, 28 Apr 2016 17:32:56 +0000 (19:32 +0200)]
updated jar(s)
Roland Haeder [Wed, 27 Apr 2016 20:30:37 +0000 (22:30 +0200)]
updated jar(s)
Roland Haeder [Wed, 27 Apr 2016 20:26:15 +0000 (22:26 +0200)]
Fixed imports + added new project dependencies (no cherry-picking, please)
Roland Häder [Wed, 27 Apr 2016 15:51:06 +0000 (17:51 +0200)]
Continued with contact:
- added observers for events being fired when admin added new contact
- cleared admin contact bean after adding contact
Roland Häder [Wed, 27 Apr 2016 15:40:49 +0000 (17:40 +0200)]
Continued:
- the email address is now optional (nullable), so updated all i18n strings
- moved data check to createContactInstance()
- added message about minimum data
Roland Häder [Wed, 27 Apr 2016 15:01:22 +0000 (17:01 +0200)]
Continued with contacts:
- added method addContact()
- introduced isSameContactFound() which checks if the given contact can be found in a list.
- this method can later be moved to ContactUtils to become generic.
- commented out noisy System.out messages
- removed no longer used logger messages
Roland Häder [Wed, 27 Apr 2016 14:25:53 +0000 (16:25 +0200)]
Some JSF fiyxes:
- id "cellphoneLinks" removed as it happens in a loop
- sometimes user is null, then user.userContact cannot be accessed and any attempts cause a NPE
- new error message ERROR_PARAMETER_CELLPHONE_NUMBER_USER_NOT_SET added (and used)
- added div tags for better showing error messages
Roland Häder [Wed, 27 Apr 2016 13:24:02 +0000 (15:24 +0200)]
added clear() methods to clear beans
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 27 Apr 2016 13:03:04 +0000 (15:03 +0200)]
Always remove contact instance from admin helper bean after linking it to avoid confusion
Roland Häder [Wed, 27 Apr 2016 12:15:17 +0000 (14:15 +0200)]
Continued with observers:
- added afterAdminAddedCustomer() to add contact to list
- commented out noisy debug lines
- clear() is still needed for request-scoped to remove the form data
- no need for explicit clear() call as the observer does it
- removed some commented out log messages
Roland Häder [Wed, 27 Apr 2016 10:35:48 +0000 (12:35 +0200)]
Continued a bit:
- all others are "List foo", fixed.
- wording fixed
Roland Häder [Wed, 27 Apr 2016 10:30:07 +0000 (12:30 +0200)]
added redirection outcomes to all "addFoo" methods
Roland Häder [Wed, 27 Apr 2016 10:23:24 +0000 (12:23 +0200)]
added menu for listing contacts
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 27 Apr 2016 10:19:45 +0000 (12:19 +0200)]
added missing i18n strings
Roland Häder [Wed, 27 Apr 2016 10:17:12 +0000 (12:17 +0200)]
already done by event (lesser hard-coded)
Roland Häder [Wed, 27 Apr 2016 10:14:46 +0000 (12:14 +0200)]
Continued a bit:
- added missing i18n strings
- added missing CSS classes and fixed user_status_locked (should be)
Roland Häder [Wed, 27 Apr 2016 10:08:33 +0000 (12:08 +0200)]
Continued a bit:
- fixed navigation rules (user/customer mixture)
- no ADMIN_LIST_CUSTOMER_FIELD, just ADMIN_CUSTOMER_FIELD
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 27 Apr 2016 10:02:05 +0000 (12:02 +0200)]
Continued a bit:
- added additional check if the contact is really in the selectableContacts list
- need to call EJB business method linkCustomer() (like for users, linkUser())
- customers don't have user profiles: customer != user
Roland Häder [Wed, 27 Apr 2016 09:37:44 +0000 (11:37 +0200)]
added admin helper usage (needed for overworked customer form)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 27 Apr 2016 09:22:56 +0000 (11:22 +0200)]
Customers currently don't have login names, at least not in jratecalc (maybe pizzaservice?)
Roland Häder [Wed, 27 Apr 2016 09:17:27 +0000 (11:17 +0200)]
Continued again with customer:
- added missing method selectableContacts()
- added missing doc-tag
- better show names and id number, not object
Roland Häder [Wed, 27 Apr 2016 09:13:37 +0000 (11:13 +0200)]
Continued with customer:
- opps, tpyo fixed in class name
- added observing method if an administrator has added a customer
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 27 Apr 2016 08:57:07 +0000 (10:57 +0200)]
renamed i18n string and added it
Roland Häder [Wed, 27 Apr 2016 08:54:32 +0000 (10:54 +0200)]
Refactured a lot:
- administrative controller are request-scoped, therefor their "cached" lists are never cached for a longer time. So all lists has to be moved to general controllers
- added new general customer bean for above refacturing
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 27 Apr 2016 07:44:45 +0000 (09:44 +0200)]
Minor: only contact entries/data is being listed, not complete "contacts" (user-perspective)
Roland Häder [Wed, 27 Apr 2016 07:36:19 +0000 (09:36 +0200)]
Renamed + added missing language strings
Roland Häder [Wed, 27 Apr 2016 06:52:40 +0000 (08:52 +0200)]
Continued with contacts:
- added hasContacts() / allContacts()
- listing of contacts started, maybe later add a method that checks where the contact is being used and returns a message key?
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 26 Apr 2016 15:57:13 +0000 (17:57 +0200)]
Continued a lot more:
- added ability to link any contact with user and/or customer accounts (later is unfinished)
- to make thism working, a controller method selectableContacts() is needed (cached)
- also the event for administrators adding users (customers missing!) must be observed to remove contact from selectable list
- because of the above, the HTML form can no longer validate required="true", it must be done by the controller (ugly exceptions for now)
- some beans/controllers loaded/injected
- added missing i18n strings
- fixed some exception messages
- ignored strings for i18n
- changed CSS class in admin area pages from small to medium (needs more space)
- removed double underscore (one removed)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 26 Apr 2016 13:36:55 +0000 (15:36 +0200)]
catch newly thrown exception
Roland Häder [Tue, 26 Apr 2016 09:45:23 +0000 (11:45 +0200)]
Continued with adding customers:
- addCustomer() is now "basicly finished"
- it fires an event when a new customer has been added
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 25 Apr 2016 16:19:28 +0000 (18:19 +0200)]
Continued with customer:
- injected administrative contact controller
- added unfinished implementation of addCustomer()
- added private isCustomerDataSet()
- localContact was wrong here
- personal data is now together (better overview)
- added createContactInstance()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 25 Apr 2016 15:27:31 +0000 (17:27 +0200)]
Some rewrites:
- use customer's own templates (maybe needs changing, unfinished work)
- fixed some i18n strings + added some missing
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 27 Apr 2016 20:02:15 +0000 (22:02 +0200)]
updated (maybe not cherry-pick this)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 25 Apr 2016 14:17:00 +0000 (16:17 +0200)]
fixed JNDI name
Roland Häder [Mon, 25 Apr 2016 13:37:38 +0000 (15:37 +0200)]
Continued with administrative customer stuff:
- added loading of full customer list on post-init phase
- added EJB (remote interface) for calling customer business methods
- added new depencies jcustomer-core/jcustomer-lib
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 25 Apr 2016 13:07:17 +0000 (15:07 +0200)]
Continued with administrative customer bean:
- added request-scoped administrative customer bean
- minor: better wording
- updated navigation data file
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 25 Apr 2016 12:55:17 +0000 (14:55 +0200)]
Opps, wrong outcome and path
Roland Häder [Mon, 25 Apr 2016 12:34:37 +0000 (14:34 +0200)]
added customer pages (may be cherry-picked to pizzaservice)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 25 Apr 2016 11:42:26 +0000 (13:42 +0200)]
fixed my email address
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 27 Apr 2016 19:47:01 +0000 (21:47 +0200)]
updated jar(s)
Roland Haeder [Tue, 26 Apr 2016 17:10:44 +0000 (19:10 +0200)]
updated jar(s)
Roland Häder [Fri, 22 Apr 2016 16:05:43 +0000 (18:05 +0200)]
added admin_contact_list.xhtml + navigation rule
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 22 Apr 2016 16:05:22 +0000 (18:05 +0200)]
cleaned up strings (they got back by merge) + added missing (last 2!)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 22 Apr 2016 14:20:11 +0000 (16:20 +0200)]
Continued with rewriting:
- rewrote to ContactUtils.updateFooNumber()
- added missing attributes for above functions
- added check for contactId against null
- fixed converter (must be ContactConverter) + instance from helper
- edit_contact title is now a pattern with id number as only parameter
- adminUserController was wrong, use adminContactController for contact-relevant stuff
- added missing i18n strings
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 22 Apr 2016 13:54:24 +0000 (15:54 +0200)]
Continued with rewriting:
- rewrote to ContactUtils.updateFooNumber()
- added missing attributes for above functions
- added check for contactId against null
- fixed converter (must be ContactConverter) + instance from helper
Roland Häder [Fri, 22 Apr 2016 07:52:57 +0000 (09:52 +0200)]
Continued a bit:
- added observer method afterAdminUpdatedContactDataEvent() to update contact and email lists
- no contact list in admin controller as the same exists in general controller
- imports cleaned up
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 23 Apr 2016 10:09:12 +0000 (12:09 +0200)]
updated jar(s)
Roland Haeder [Thu, 21 Apr 2016 20:19:34 +0000 (22:19 +0200)]
Continued a bit:
- return type is now updated contact instance
- fixed class/interface imports
Roland Haeder [Thu, 21 Apr 2016 20:10:07 +0000 (22:10 +0200)]
updated jar(s)
Roland Häder [Thu, 21 Apr 2016 16:02:05 +0000 (18:02 +0200)]
Continued with contact data editing (admin):
- added instance to helper
- renamed editFooData() to changeFooData()
- added handling contactId
- added form (with include)
- added method copyContactToController()
- added admin helper injection
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 21 Apr 2016 13:44:26 +0000 (15:44 +0200)]
Contined a bit:
- added check if user name is already in use
- fixed German umlauts
- better wording
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 21 Apr 2016 12:38:35 +0000 (14:38 +0200)]
Added redirect outcome + updated jar(s)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 21 Apr 2016 11:55:57 +0000 (13:55 +0200)]
Contiuned with editing user data/rewrites:
- implemented editUserData() for when admin updates user data
- implemented listener for when a user updates personal data
- added private method updateList() for updating admin's user list
- updateUserPersonalData() now returns updated user instance (detached!)
- fired event when user updates personal data
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 21 Apr 2016 10:23:31 +0000 (12:23 +0200)]
don't chgange email address in edit mode
Roland Haeder [Thu, 21 Apr 2016 18:08:48 +0000 (20:08 +0200)]
updated jar(s)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 21 Apr 2016 09:30:51 +0000 (11:30 +0200)]
Continued:
- template 'admin_form_user_data' requires parameter 'mode'.
- added missing i18n strings
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 21 Apr 2016 08:50:49 +0000 (10:50 +0200)]
added div around admin_edit_user form + added missing i18n strings
Roland Häder [Thu, 21 Apr 2016 08:45:09 +0000 (10:45 +0200)]
Removed all clear() methods in request-scoped beans as it makes no sense to clear them.
Roland Häder [Thu, 21 Apr 2016 08:38:05 +0000 (10:38 +0200)]
Continued:
- splitted admin user form template into user and contact
- used that new admin user form template for editing user data
- added controller method editUserData()
- renamed relevant language keys (as they are not just for adding users)
Roland Haeder [Wed, 20 Apr 2016 18:07:18 +0000 (20:07 +0200)]
Fixed EJB JNDI names.
Roland Häder [Wed, 20 Apr 2016 15:09:16 +0000 (17:09 +0200)]
Continued a bit:
- All optional data is now checked with "instanceof"
- added logging messages (direct output)
- maybe put the copy command here? (was not called)
- ignored strings for i18n
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 20 Apr 2016 14:53:24 +0000 (16:53 +0200)]
Used new "contact-added event"
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 20 Apr 2016 14:45:09 +0000 (16:45 +0200)]
Continued a bit:
- moved all admin controllers from session-scope to request-scope
- renamed them, too
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 20 Apr 2016 17:42:19 +0000 (19:42 +0200)]
Injected contact controller as now stuff around contacts are done there, not in user.
Roland Haeder [Wed, 20 Apr 2016 17:37:34 +0000 (19:37 +0200)]
updated jar(s)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 20 Apr 2016 14:15:51 +0000 (16:15 +0200)]
Continued with refacturing:
- added new controller for contact (general + admin)
- removed all contact-related stuff from user controller (as there are specific ones)
- login_data_saved splitted into login_user_data_saved and login_contact_data_saved
- fixed relevant temnplates (contact controller)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 20 Apr 2016 09:38:58 +0000 (11:38 +0200)]
Fixed German umlauts + updated jar(s)
Signed-off-by: Roland Häder <roland@haeder.net>
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 19 Apr 2016 08:34:11 +0000 (10:34 +0200)]
Renamed controller as all controllers must have suffix "Controller" (naming convention)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 19 Apr 2016 15:55:11 +0000 (17:55 +0200)]
Continued with refacturing:
- added general admin helper for just holding objects
- used that new helper for user instance to have auto-completition back
- updated properties
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 19 Apr 2016 15:45:06 +0000 (17:45 +0200)]
added view parameter 'userId' (mostly from URL)