view src/kryshen/catalina/startup/UserDatabase.java @ 7:ca0b81d28307

Compatibility fixes.
author Mikhail Kryshen <mikhail@kryshen.net>
date Sun, 01 Nov 2009 04:25:39 +0300
parents 64c05808a046
children
line wrap: on
line source

package kryshen.catalina.startup;

import java.io.File;
import java.util.Iterator;

/**
 *
 * @author Mikhail Kryshen
 */
public interface UserDatabase extends Iterable<UserDatabase.User> {

    interface User {
        String getName();

        File getHome();
    }

    /**
     * Return the UserConfig listener with which we are associated.
     */
    UserConfig getUserConfig();

    /**
     * Set the UserConfig listener with which we are associated.
     *
     * @param userConfig The new UserConfig listener
     */
    void setUserConfig(UserConfig userConfig);

    /**
     * Returns Iterator for the list of users.
     */
    Iterator<User> iterator();
}