01: package com.sun.portal.portlet.admin.mbeans;
02:
03: import com.sun.portal.admin.common.PSMBeanException;
04: import com.sun.portal.admin.common.util.AdminUtil;
05:
06: import java.io.File;
07: import java.util.Properties;
08: import java.util.Set;
09: import java.util.List;
10: import java.util.Map;
11:
12: /**
13: * $Id: PortletAdminMBean.java,v 1.8 2006/05/08 10:21:30 rg149970 Exp $
14: * Copyright 2004 Sun Microsystems, Inc. All
15: * rights reserved. Use of this product is subject
16: * to license terms. Federal Acquisitions:
17: * Commercial Software -- Government Users
18: * Subject to Standard License Terms and
19: * Conditions.
20: *
21: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
22: * are trademarks or registered trademarks of Sun Microsystems,
23: * Inc. in the United States and other countries.
24: */
25:
26: //This interface is a mbean for deploying and undeploying portlets.
27: public interface PortletAdminMBean {
28: public static final String TYPE = AdminUtil.PORTLET_ADMIN_MBEAN_TYPE;
29:
30: public Boolean deployAll(String dn, Boolean global, String warFile,
31: Properties roles, Properties userinfo, Boolean verbose,
32: List instanceList, Boolean toContinue, Boolean nodeploy)
33: throws PSMBeanException;
34:
35: public Boolean undeployAll(String dn, Boolean global,
36: String warName, Boolean verbose, List instances,
37: Boolean toContinue) throws PSMBeanException;
38:
39: public Boolean deploy(String dn, Boolean global, String warFile,
40: Properties roles, Properties userinfo, Boolean verbose,
41: List instances, Boolean toContinue, Boolean nodeploy)
42: throws PSMBeanException;
43:
44: public Boolean undeploy(String dn, Boolean global, String warName,
45: Boolean verbose, List instances, Boolean toContinue)
46: throws PSMBeanException;
47:
48: public void copyFile(String sourceFile, String destFile)
49: throws PSMBeanException;
50:
51: //below methods are only for accessing portlet specific dp
52: public void createPortletChannel(String baseDN, String channelName,
53: String portletName) throws PSMBeanException;
54:
55: public Set getExistingPortlets(String baseDN)
56: throws PSMBeanException;
57:
58: public Set getPortletPreferenceNames(String baseDN,
59: String portletName) throws PSMBeanException;
60:
61: public String getPortletPreference(String baseDN,
62: String portletName, String prefName)
63: throws PSMBeanException;
64:
65: public List getPortletPreferenceValues(String baseDN,
66: String portletName, String prefName)
67: throws PSMBeanException;
68:
69: public void setPortletPreference(String baseDN, String portletName,
70: String prefName, String value) throws PSMBeanException;
71:
72: public void setPortletPreferenceValues(String baseDN,
73: String portletName, String prefName, String[] values)
74: throws PSMBeanException;
75:
76: public Boolean isPortletChannel(String baseDN, String channelName)
77: throws PSMBeanException;
78:
79: public Map getPortletPreferenceMap(String baseDN, String portletName)
80: throws PSMBeanException;
81:
82: public void registerPortletApp(String dn, Boolean global,
83: String earFile, Properties roles, Properties userinfo,
84: Boolean verbose) throws PSMBeanException;
85:
86: public void unregisterPortletApp(String dn, Boolean global,
87: String earName, Boolean verbose) throws PSMBeanException;
88:
89: }
|