KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > core > admin > Admin


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: Admin.java,v 1.2 2002/06/08 00:49:39 mediumnet Exp $
8

9 package org.ozoneDB.core.admin;
10
11 import org.ozoneDB.*;
12 import org.ozoneDB.core.*;
13 import org.ozoneDB.DxLib.*;
14
15
16 /**
17  * The external interface of the ozone admin system.
18  *
19  * @version $Revision: 1.2 $ $Date: 2002/06/08 00:49:39 $
20  * @author <a HREF="http://www.smb-tec.com">SMB</a>
21  */

22 public interface Admin extends OzoneRemote {
23
24     public void newUser(String JavaDoc _name, int _id) throws Exception JavaDoc;
25
26     public void newUser(String JavaDoc _name, String JavaDoc _passwd, int _id) throws Exception JavaDoc;
27
28     public void removeUser(String JavaDoc _name) throws Exception JavaDoc;
29
30     public void newGroup(String JavaDoc _name, int _id) throws Exception JavaDoc;
31
32     public void removeGroup(String JavaDoc _name) throws Exception JavaDoc;
33
34     public void addUser2Group(String JavaDoc _username, String JavaDoc _groupname) throws Exception JavaDoc;
35
36     public void removeUserFromGroup(String JavaDoc _username, String JavaDoc _groupname) throws Exception JavaDoc;
37
38     public DxCollection allUsers() throws Exception JavaDoc;
39
40     public DxCollection allGroups() throws Exception JavaDoc;
41
42     public User userForName(String JavaDoc _name) throws Exception JavaDoc;
43
44     public Group groupForName(String JavaDoc _name) throws Exception JavaDoc;
45
46     public User userForId(int _id) throws Exception JavaDoc;
47
48     public Group groupForId(int _id) throws Exception JavaDoc;
49
50     public void shutdown() throws Exception JavaDoc;
51
52     public void beginRestore() throws Exception JavaDoc; //update
53

54     public void processRestoreChunk(byte[] chunk) throws Exception JavaDoc; //update
55

56     public void beginBackup() throws Exception JavaDoc; //update
57

58     public byte[] nextBackupChunk() throws Exception JavaDoc; //update
59

60     public int numberOfTxs() throws Exception JavaDoc;
61
62     public void startGarbageCollection();
63 }
64
Popular Tags