com.example.hello
Interface Hello

All Known Implementing Classes:
HelloEngine

public interface Hello

Definition of the service layer facade - all the things that can be done in the application. This is used by both the XML-RPC server and the Web controllers.


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()
           
 

Method Detail

findUser

User findUser(String username)
              throws ResourceNotFoundException
Throws:
ResourceNotFoundException

createUser

void createUser(User user)
                throws ResourceFoundException
Throws:
ResourceFoundException

createSession

void createSession(Session session)
                   throws ResourceFoundException
Throws:
ResourceFoundException

checkToken

Session checkToken(String token)
                   throws ResourceNotFoundException
Throws:
ResourceNotFoundException

findUser

User findUser(Principal token)
              throws ResourceNotFoundException
Throws:
ResourceNotFoundException

listGreetings

List<Greeting> listGreetings()

findGreeting

Greeting findGreeting(String name)
                      throws ResourceNotFoundException
Throws:
ResourceNotFoundException

createGreeting

void createGreeting(Greeting greeting)
                    throws ResourceFoundException
Throws:
ResourceFoundException