Child pages
  • example UserServiceSource

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Source Code of the UserService example

Warning
titleUntested Code

we have to mention that this source code is for demonstration purposes only and leaves some implementation details out of scope to reduce the noise and make the ideas more understandable. You are free to use it when you like, but on your own risk (wink)

Info
titleSVN Location

you can check out the whole code with following command:
svn co http://svn.anotheria.net/opensource/ano-examples/trunk ano-examples

Table of Contents
minLevel2
outlinetrue
indent0px

Service Interface and Protocol

Service Interface

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserService.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserService.java

User

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/User.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/User.java

UserId

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserId.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserId.java

NullUser

A NullUser object is used internally to store non-existing users in caches and externally to add not-existing users to the list.

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/NullUser.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/NullUser.java

Exceptions

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserServiceException.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserServiceException.java
svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/DuplicateEmailException.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/DuplicateEmailException.java
svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/NoSuchUserException.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/NoSuchUserException.java

Implementation

UserServiceImpl

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserServiceImpl.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserServiceImpl.java

UserServiceFactory

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserServiceFactory.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/UserServiceFactory.java

Persistence

Persistence Service Interface

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/UserPersistenceService.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/UserPersistenceService.java

Persistence Implementation

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/UserPersistenceServiceImpl.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/UserPersistenceServiceImpl.java

Exceptions

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/UserPersistenceServiceException.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/UserPersistenceServiceException.java
svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/NoSuchUserPersistenceUserServiceException.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/NoSuchUserPersistenceUserServiceException.java

DAO Interfaces

svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/AbstractUserDAO.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/AbstractUserDAO.java
svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/DAOException.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/DAOException.java
svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/LastLoginDAO.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/LastLoginDAO.java
svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/PasswordDAO.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/PasswordDAO.java
svn
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/UserDAO.java
ano-examples/trunk/java/net/anotheria/examples/anatomyofaservice/userservice/persistence/dao/UserDAO.java