package noriega.expresso.server;
/*
* Copyright (c) 1999 Noriega
*
* $Author: ngreen $
* $Date: 1999/04/07 03:37:30 $
* $Id: UsernameOriented.java,v 1.2 1999/04/07 03:37:30 ngreen Exp $
*/
/**
* Should be implemented by ExpressoService
implementors who
* are instantiated to be used by a specific user. For example, an
* IMAPService
is created by the ServiceDirectory
* for each user who requests an instance.
* For an example of the significance of this interface, see the
* ServiceDirectoryImpl
, which will call
* setUsername()
on any implementor of this interface that
* it instantiates.
* Note: While ExpressoService
is a Remote
* interface, the methods here are not Remote
because they
* are designed to be used only on the server side.
*
*
* @author $Author: ngreen $
* Date: $Date: 1999/04/07 03:37:30 $
*/
public interface UsernameOriented {
// ------------ METHODS ------------
/** Implementors should use this method to have a username property
* set on themselves
* @param userName the username to set
*/
public void setUsername (String userName);
/** @return the username */
public String getUsername ();
}
/*
* Version Control Log:
* $Log: UsernameOriented.java,v $
* Revision 1.2 1999/04/07 03:37:30 ngreen
* full javadoc
*
* Revision 1.1 1999/04/03 16:26:42 ngreen
* initial checkin
*
*/