package haipham.webnntp.ejb.user;

import java.rmi.RemoteException;
import javax.ejb.EJBObject;
import java.util.Collection;
import haipham.webnntp.ejb.group.*;

public interface User extends EJBObject{
    public final static int USER        = 0;

    public String getUserName() throws RemoteException;
    public String getPassword() throws RemoteException;
    public int getUserType() throws RemoteException;
    public Collection getGroups() throws RemoteException;
    public Setting getSettings() throws RemoteException;

    public void addGroup(UserGroup group) throws RemoteException;
    public void removeGroup(UserGroup group) throws RemoteException;

    public void setUserName(String userName) throws RemoteException;
    public void setPassword(String password) throws RemoteException;
    public void setUserType(int type) throws RemoteException;
}
