|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Superinterface that represents both Portlets and Portlet Templates.
Portlet interfaces representing new and existing Portlets can be obtained
from the IPortletManager
object. Note: No changes made to this object will
be saved to the portal until the save()
method is called.
At least an object name and an alignment must be set prior to saving.
Method Summary | |
void |
addAdminSetting(java.lang.String name,
java.lang.String value)
Adds an Administrative setting for this Portlet. |
java.lang.String |
createGatewayLink(int communityID,
java.lang.String URL)
Creates a link in this Portlet's gateway space. |
java.lang.String |
getAdminSetting(java.lang.String name)
Gets the value for a particular Administrative setting for this Portlet. |
java.util.Enumeration |
getAdminSettingNames()
Gets an enumeration of the names of current Administrative settings for this Portlet. |
Alignment |
getAlignment()
Gets the currently set alignment for this Portlet. |
int |
getWebServiceID()
Gets the ID for the Web Service object with which this Portlet is associated. |
void |
removeAdminSetting(java.lang.String name)
Removes an Administrative setting for this Portlet. |
void |
setAlignment(Alignment align)
Sets the alignment of the Portlet. |
Methods inherited from interface com.plumtree.remote.prc.IObject |
getDescription, getID, getName, getParentFolderID, save, setDescription, setName |
Method Detail |
public void setAlignment(Alignment align)
save()
is called.
align
- the alignment for the portletpublic Alignment getAlignment()
public int getWebServiceID() throws java.net.MalformedURLException
java.net.MalformedURLException
- if the query interface URL is not validpublic void addAdminSetting(java.lang.String name, java.lang.String value) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
save()
is called.
name
- the name of the new setting to addvalue
- the value of the setting to add
java.lang.IllegalArgumentException
- if the setting has an invalid (blank) name
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic void removeAdminSetting(java.lang.String name) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
save()
is called.
name
- the name of the setting to remove
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic java.util.Enumeration getAdminSettingNames() throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic java.lang.String getAdminSetting(java.lang.String name) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
name
- the setting name
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic java.lang.String createGatewayLink(int communityID, java.lang.String URL) throws java.net.MalformedURLException, PortalException, java.rmi.RemoteException
createPortletInstance()
and
save()
has not been called).
IPortlet portlet = ... String gatewayLink = portlet.createGatewayLink(communityID, "http://www.google.com");Yields this example gatewayLink: http://sinistar.plumtree.com:8080/portal/server.pt/gateway/PTARGS_0_272_202_0_43/http://www.google.com Note that the structure of the gateway URLs is subject to change; do not rely on the format of the structure of PTARGS or the format of the gateway URL.
communityID
- the ID of the Community in which to create the link. Use 0 if not using a community. The communityID is used to send community preferences to the gateway page if it is accessed through the community portlet.URL
- the URL to transform (gateway)
java.net.MalformedURLException
- if the query interface URL is not valid
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method call
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©2010 Oracle® Corporation. All Rights Reserved.