01: package com.sun.portal.desktop.dp.cli;
02:
03: import com.sun.portal.desktop.context.AdminDPContext;
04:
05: import java.io.InputStream;
06: import java.util.logging.Logger;
07: import java.util.logging.Level;
08:
09: /**
10: * Created by IntelliJ IDEA.
11: * User: Administrator
12: * Date: Jan 3, 2005
13: * Time: 6:15:05 PM
14: * To change this template use Options | File Templates.
15: *
16: * This class contains public wrapper methods to access private methods of DPAAdd,DPAList,DPAMerge,DPAModify, DPARemove
17: */
18: public class DPAAccess {
19:
20: public void dpAdd(AdminDPContext adc, String dn, String parent,
21: InputStream[] xmlByteStreams, boolean global,
22: boolean dryrun, boolean verbose, Logger logger)
23: throws DPAException {
24: DPAAdd dpa = new DPAAdd();
25: dpa.process(adc, dn, global, parent, xmlByteStreams, verbose,
26: dryrun, logger);
27: }
28:
29: public String dpList(AdminDPContext adc, String dn, String name,
30: boolean global, boolean verbose, Logger logger)
31: throws DPAException {
32: DPAList dplist = new DPAList();
33: String dp = dplist.process(adc, dn, global, name, verbose,
34: logger);
35: return dp;
36: };
37:
38: public String dpMerge(AdminDPContext adc, String dn, String name,
39: boolean global, boolean verbose, Logger logger)
40: throws DPAException {
41: DPAMerge dpmerge = new DPAMerge();
42: String dp = dpmerge.process(adc, dn, global, name, verbose,
43: logger);
44: return dp;
45:
46: };
47:
48: public void dpModify(AdminDPContext adc, String dn, String parent,
49: InputStream[] xmlByteStreams, boolean global,
50: boolean combine, boolean dryrun, boolean verbose,
51: Logger logger) throws DPAException {
52: DPAModify dpmodify = new DPAModify();
53: dpmodify.process(adc, dn, global, parent, combine,
54: xmlByteStreams, verbose, dryrun, logger);
55:
56: };
57:
58: public void dpRemove(AdminDPContext adc, String dn, String parent,
59: String name, String type, boolean global, boolean dryrun,
60: boolean verbose, Logger logger) throws DPAException {
61:
62: DPARemove dpremove = new DPARemove();
63: dpremove.process(adc, dn, global, parent, name, type, verbose,
64: dryrun, logger);
65:
66: };
67:
68: public void dpBatch(String batchFile, boolean toContinue)
69: throws DPAException {
70: ;
71: };
72: }
|