01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: Admin.java,v 1.2 2002/06/08 00:49:39 mediumnet Exp $
08:
09: package org.ozoneDB.core.admin;
10:
11: import org.ozoneDB.*;
12: import org.ozoneDB.core.*;
13: import org.ozoneDB.DxLib.*;
14:
15: /**
16: * The external interface of the ozone admin system.
17: *
18: * @version $Revision: 1.2 $ $Date: 2002/06/08 00:49:39 $
19: * @author <a href="http://www.smb-tec.com">SMB</a>
20: */
21: public interface Admin extends OzoneRemote {
22:
23: public void newUser(String _name, int _id) throws Exception;
24:
25: public void removeUser(String _name) throws Exception;
26:
27: public void newGroup(String _name, int _id) throws Exception;
28:
29: public void removeGroup(String _name) throws Exception;
30:
31: public void addUser2Group(String _username, String _groupname)
32: throws Exception;
33:
34: public void removeUserFromGroup(String _username, String _groupname)
35: throws Exception;
36:
37: public DxCollection allUsers() throws Exception;
38:
39: public DxCollection allGroups() throws Exception;
40:
41: public User userForName(String _name) throws Exception;
42:
43: public Group groupForName(String _name) throws Exception;
44:
45: public void shutdown() throws Exception;
46:
47: public void beginRestore() throws Exception; //update
48:
49: public void processRestoreChunk(byte[] chunk) throws Exception; //update
50:
51: public void beginBackup() throws Exception; //update
52:
53: public byte[] nextBackupChunk() throws Exception; //update
54:
55: public int numberOfTxs() throws Exception;
56:
57: public void startGarbageCollection();
58: }
|