com.example.hello.server
Class HelloEngine

java.lang.Object
  extended by com.example.hello.server.HelloEngine
All Implemented Interfaces:
Hello

public class HelloEngine
extends Object
implements Hello

Implementation of the service layer facade.


Constructor Summary
HelloEngine()
           
 
Method Summary
 Session checkToken(String token)
           
 void createGreeting(Greeting greeting)
           
 void createSession(Session session)
           
 void createUser(User user)
           
 Greeting findGreeting(String name)
           
 User findUser(Principal token)
           
 User findUser(String username)
           
 List<Greeting> listGreetings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloEngine

public HelloEngine()
Method Detail

findUser

public User findUser(String username)
              throws ResourceNotFoundException
Specified by:
findUser in interface Hello
Throws:
ResourceNotFoundException

createUser

public void createUser(User user)
                throws ResourceFoundException
Specified by:
createUser in interface Hello
Throws:
ResourceFoundException

createSession

public void createSession(Session session)
                   throws ResourceFoundException
Specified by:
createSession in interface Hello
Throws:
ResourceFoundException

checkToken

public Session checkToken(String token)
                   throws ResourceNotFoundException
Specified by:
checkToken in interface Hello
Throws:
ResourceNotFoundException

findUser

public User findUser(Principal token)
              throws ResourceNotFoundException
Specified by:
findUser in interface Hello
Throws:
ResourceNotFoundException

findGreeting

public Greeting findGreeting(String name)
                      throws ResourceNotFoundException
Specified by:
findGreeting in interface Hello
Throws:
ResourceNotFoundException

listGreetings

public List<Greeting> listGreetings()
Specified by:
listGreetings in interface Hello

createGreeting

public void createGreeting(Greeting greeting)
                    throws ResourceFoundException
Specified by:
createGreeting in interface Hello
Throws:
ResourceFoundException