1
/** BEGIN COPYRIGHT BLOCK
2
* Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
3
* Copyright (C) 2005 Red Hat, Inc.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
* END COPYRIGHT BLOCK **/
20
package com.netscape.admin.dirserv.task;
22
import com.netscape.management.client.*;
23
import com.netscape.management.client.TaskObject;
24
import com.netscape.management.client.console.ConsoleInfo;
26
import com.netscape.admin.dirserv.panel.LDAPAddPanel;
27
import com.netscape.admin.dirserv.panel.SimpleDialog;
28
import com.netscape.admin.dirserv.IDSModel;
29
import com.netscape.admin.dirserv.*;
30
import com.netscape.management.client.util.Debug;
32
* Netscape Directory Server 4.0 task for setting up keys & certificates
37
* @see com.netscape.admin.dirserv.DSAdmin
39
public class CompleteImport extends TaskObject {
41
* Constructor for the KeyCert Directory Task
43
public CompleteImport() {
45
setName(DSUtil._resource.getString("dirtask","Import-title"));
46
setDescription(DSUtil._resource.getString(
47
"dirtask","Import-description"));
51
* Call the frame work class.
53
* @param viewInstance The calling page
55
public boolean run(IPage viewInstance) {
60
private void databaseImport() {
62
(IDSModel)getConsoleInfo().get( "dsresmodel" );
63
LDAPAddPanel child = new LDAPAddPanel(model);
65
SimpleDialog dlg = new SimpleDialog( model.getFrame(),
71
dlg.setComponent( child );
72
dlg.setOKButtonEnabled( false );
73
dlg.setDefaultButton( SimpleDialog.OK );