summaryrefslogtreecommitdiffstats
path: root/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryDefaultStub.java
blob: b533475a1fd72cde30a6a56c0e028583f142b134 (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
package com.netscape.cmscore.dbs;

import com.netscape.certsrv.base.EBaseException;
import com.netscape.certsrv.base.IConfigStore;
import com.netscape.certsrv.base.ISubsystem;
import com.netscape.certsrv.dbs.*;
import netscape.ldap.LDAPAttributeSet;

/**
 * A default stub ojbect for tests to extend.
 */
public class DBRegistryDefaultStub implements IDBRegistry {


    public void registerObjectClass(String className, String ldapNames[]) throws EDBException {
    }

    public boolean isObjectClassRegistered(String className) {
        return false;
    }

    public void registerAttribute(String ufName, IDBAttrMapper mapper) throws EDBException {
    }

    public boolean isAttributeRegistered(String ufName) {
        return false;
    }

    public void registerDynamicMapper(IDBDynAttrMapper mapper) {
    }

    public String getFilter(String filter) throws EBaseException {
        return null;
    }

    public String getFilter(String filter, IFilterConverter c) throws EBaseException {
        return null;
    }

    public void mapObject(IDBObj parent, String name, Object obj, LDAPAttributeSet attrs) throws EBaseException {
    }

    public String[] getLDAPAttributes(String attrs[]) throws EBaseException {
        return new String[0];
    }

    public LDAPAttributeSet createLDAPAttributeSet(IDBObj obj) throws EBaseException {
        return null;
    }

    public IDBObj createObject(LDAPAttributeSet attrs) throws EBaseException {
        return null;
    }

    public String getId() {
        return null;
    }

    public void setId(String id) throws EBaseException {
    }

    public void init(ISubsystem owner, IConfigStore config) throws EBaseException {
    }

    public void startup() throws EBaseException {
    }

    public void shutdown() {
    }

    public IConfigStore getConfigStore() {
        return null;
    }
}