Exercises

Implement the ProjectServiceImpl and UserServiceImpl interfaces as required by their interface definitions. Business logic to consider when implementing the UserServiceImpl are as follows:

  • Only an admin user may modify data
  • The email address may not be empty
  • The password may not be zero length
  • The adminRole flag must be either Y or N
  • Users are not allowed to delete themselves
  • Users cannot be deleted if they have task logs assigned

Confirm your UserServiceImpl implementation by executing the UserServiceTest test case.

Get Enterprise Application Development with Ext JS and Spring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.