01: /*
02: * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop.context;
06:
07: import java.util.Set;
08:
09: import com.iplanet.sso.SSOToken;
10:
11: import javax.servlet.http.HttpServletRequest;
12:
13: public interface AdminDPContext extends DPContext {
14: public static final String ADMINDPCONTEXTCLASSNAME_KEY = "adminDPContextClassName";
15:
16: public void init(HttpServletRequest req);
17:
18: public void init(HttpServletRequest req, String uid, String pw);
19:
20: public void init(String uid, String pw, String propertiesFile,
21: String portalId);
22:
23: public void init(SSOToken ssoToken, String propertiesFile,
24: String portalId);
25:
26: public Set getAllNamesFromBase(String baseName, int level,
27: boolean includeParent);
28:
29: public Set getAllNames(int level);
30:
31: public String getGlobalDPDocument();
32:
33: public boolean isGlobal(String base);
34:
35: public String getDPDocument(String baseName);
36:
37: public void storeGlobalDPDocument(String dp);
38:
39: public void storeDPDocument(String baseName, String dp);
40:
41: public void removeGlobalDPDocument();
42:
43: public void removeDPDocument(String base);
44:
45: public String getDTAttribute(String baseName, String name);
46:
47: public void setDTAttribute(String baseName, String name, String val);
48:
49: public Set getGlobalAttributeMultiVal(String component, String name);
50:
51: public Set getAttributeMultiVal(String baseName, String component,
52: String name);
53:
54: public void setGlobalAttributeMultiVal(String component,
55: String name, Set vals);
56:
57: public void setAttributeMultiVal(String baseName, String component,
58: String name, Set vals);
59:
60: }
|