01: /*
02: * $Id: Realm.java,v 1.10 2002/09/16 08:05:06 jkl Exp $
03: *
04: * Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
05: *
06: * Use is subject to license terms, as defined in
07: * Anvil Sofware License, Version 1.1. See LICENSE
08: * file, or http://njet.org/license-1.1.txt
09: */
10: package anvil.server;
11:
12: /**
13: * interface Realm
14: *
15: * @author: Jani Lehtimäki
16: */
17: public interface Realm {
18:
19: public void initialize(RealmPreferences zone);
20:
21: public Citizen getAnonymousCitizen();
22:
23: public Citizen getCitizen(String username);
24:
25: public Citizen[] searchCitizenByVariable(String variable,
26: String value);
27:
28: public Tribe getRoot();
29:
30: public void setRoot(Tribe tribe) throws OperationFailedException;
31:
32: public Tribe getTribe(String name);
33:
34: public Tribe createTribe(String name)
35: throws OperationFailedException;
36:
37: public Citizen createCitizen(String username, String password)
38: throws OperationFailedException;
39:
40: public Citizen createCitizen(String username, String password,
41: String[][] params) throws OperationFailedException;
42:
43: public void stop();
44:
45: }
|