catalog.model.service
Interface UserService

All Known Implementing Classes:
UserServiceImpl

public interface UserService

The user business service interface.

It contains all user management related business logic.

Author:
Derek Y. Shen

Method Summary
 User login(java.lang.String username, java.lang.String password)
          Login a user using username and password.
 void sendEmail(java.lang.String senderAddress, java.lang.String senderName, java.lang.String sub, java.lang.String msg)
          Send email to the administrator.
 

Method Detail

login

public User login(java.lang.String username,
                  java.lang.String password)
           throws CatalogException
Login a user using username and password.

Parameters:
username - the username to be used
password - the password to be used
Returns:
the user associated with the username and password
Throws:
CatalogException

sendEmail

public void sendEmail(java.lang.String senderAddress,
                      java.lang.String senderName,
                      java.lang.String sub,
                      java.lang.String msg)
               throws CatalogException
Send email to the administrator.

Parameters:
senderAddress - the email address of the sender
senderName - the name of the email sender
sub - the subject of the email
msg - the email message
Throws:
CatalogException


Copyright (c) 2004 The JCatalog Project.