blob: e3914427f1e6b6ea73b6a269d7c35cdb56e33546 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
// --- BEGIN COPYRIGHT BLOCK ---
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// (C) 2007 Red Hat, Inc.
// All rights reserved.
// --- END COPYRIGHT BLOCK ---
package com.netscape.certsrv.dbs;
import java.math.*;
import netscape.ldap.*;
import com.netscape.certsrv.base.*;
/**
* An interface represents certificate server
* backend database.
* <P>
* This interface separate the database subsystem
* functionalities from internal implementation.
* <P>
*
* @version $Revision: 14561 $, $Date: 2007-05-01 10:28:56 -0700 (Tue, 01 May 2007) $
*/
public interface IDBSubsystem extends ISubsystem {
public static final String SUB_ID = "dbs";
/**
* Retrieves the base DN.
*
* @return base DN of the subsystem
*/
public String getBaseDN();
/**
* Retrieves the registry.
*
* @return registry
*/
public IDBRegistry getRegistry();
/**
* Creates a database session.
*
* @return database session
* @exception EDBException failed to create session
*/
public IDBSSession createSession() throws EDBException;
/**
* Avoids losing serial number.
*
* @return true if serial number recovery option is enabled
*/
public boolean enableSerialNumberRecovery();
/**
* Records next serial number in config file
*
* @param serial next serial number
* @exception EBaseException failed to set
*/
public void setNextSerialConfig(BigInteger serial) throws EBaseException;
/**
* Gets the next serial number in config file
*
* @return next serial number
*/
public BigInteger getNextSerialConfig();
/**
* Records maximum serial number limit in config file
*
* @param serial max serial number
* @exception EBaseException failed to set
*/
public void setMaxSerialConfig(String serial) throws EBaseException;
public String getMinSerialConfig();
/**
* Gets the maximum serial number limit in config file
*
* @return max serial number
*/
public String getMaxSerialConfig();
public String getMinRequestConfig();
public String getMaxRequestConfig();
/**
* Returns LDAP connection to connection pool.
*
* @param conn connection to be returned
*/
public void returnConn(LDAPConnection conn);
}
|