|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.portal.provider.v1.http.DefaultPortlet
A portlet is implemented as a set of controllers: a renderer and optionally a personalization manager and a security manager. The Portlet interface is a container for these controllers as well as portlet meta-data. The DefaultPortlet implements the Portlet interface. It is designed to work with the DefaultProvider/provider.xml mechanism that allows you to describe the characteristics of the portlet's controllers and meta-data using an XML syntax rather then program them directly.
The Portlet interface is a container interface; its function is to return (pre)set values vs. perform computation. Because of this DefaultPortlet should never need to be subclassed.
Portlets are encouraged to support multiple language versions of their
portlet meta-data. This is accomplished by storing the meta-data strings in
resource bundles and then registering the resource bundle with the Portlet
(in the provider.xml file this is specified within the
<resource> element of a <portlet> element).
The DefaultPortlet defines constants for the resource names it uses to
extract the meta-data from the resource file.
| Constructor Summary | |
DefaultPortlet()
Null Constructor |
|
| Method Summary | |
void |
addAcceptContentType(java.lang.String type)
Adds to the set of mime-types (represented as Strings) that this Portlet can render. |
void |
addInputParameter(java.lang.Object parameter)
Adds to the array of (input) parameters that this portlet recognizes when requested to render to control/affect the rendering. |
boolean |
callGetPortlet()
Returns true if calls to retrieve this Portlet's meta data should be made. |
boolean |
callIsRunnable()
Returns true if calls to isPortletRunnable should be made
to this Portlet before displaying in the portlet repository. |
java.lang.String[] |
getAcceptContentTypes()
Gets an array of mime-types (represented as Strings) that this Portlet can render. |
PortletContainerRenderer |
getContainerRenderer()
Returns the controller that will render this portlet's container. |
java.util.Locale |
getDefaultLocale()
Gets this Portlet's default locale. |
java.lang.String |
getDescription(java.util.Locale l)
Gets the Portlet description. |
long |
getId()
Gets the Portlet unique ID. |
PortletParameter[] |
getInputParameters()
Gets an array of (input) parameters that this portlet recognizes when requested to render to control/affect the rendering. |
int |
getMinEditAuthLevel()
Returns the minimum user authentication level required for the customize link to be displayed in the portlet header If the authentication level of a user is less than the minimum authentication level specified, the customize link will not be displayed in the portlet header. |
MobileFlags |
getMobileFlags()
Returns the portlet's mobile settings as a bitwise flag. |
java.lang.String |
getName(java.util.Locale l)
Gets the Portlet name. |
PortletPersonalizationManager |
getPersonalizationManager()
Gets the personalization manager for this portlet. |
Provider |
getProvider()
Gets the Provider that created this instance. |
PortletRenderer |
getRenderer()
Gets the renderer for this portlet. |
java.util.ResourceBundle |
getResourceBundle(java.util.Locale l)
Gets the string resource (bundle) for this Portlet. |
PortletSecurityManager |
getSecurityManager()
Gets the security manager for this portlet. |
java.lang.String |
getShortTitle(java.util.Locale l)
Gets the Portlet short title. |
boolean |
getShowEditToPublic()
Returns true if this Portlet exposes per user personalization to the public (non-logged in) user. |
int |
getTimeout()
Gets the number of seconds the portal should wait before timing out a request to this portlet. |
java.lang.String |
getTimeoutMessage(java.util.Locale l)
Gets the timeout messsage that the portal should use in its response when a request to this Portlet times out. |
java.lang.String |
getTitle(java.util.Locale l)
Gets the Portlet title. |
boolean |
hasAbout()
Return returns true if this Portlet is capable of displaying about information. |
boolean |
hasHelp()
Return returns true if this Portlet is capable of displaying help information. |
boolean |
hasShowDetails()
Return returns true if this Portlet is capable of displaying a full-screen (detailed) version of itself. |
boolean |
hasShowEdit()
Returns true if this Portlet supports per user personalization, false otherwise. |
boolean |
hasShowEditDefault()
Returns true if this Portlet supports per portlet customization, false otherwise. |
boolean |
hasShowLink()
Returns true if this Portlet is capable of rendering content for link mode. |
boolean |
hasShowLinkMode()
Returns true if this Portlet is capable of rendering content for link mode. |
boolean |
hasShowPreview()
Returns true if this Portlet is capable of displaying a design-time preview of itself (after customization or personalization). |
void |
init(Provider p)
Initializes the portlet. |
void |
setCallGetPortlet(boolean value)
Controls whether calls to retrieve this Portlet's meta data should be made before displaying in the portlet repository. |
void |
setCallGetPortlet(java.lang.String value)
Controls whether calls to retrieve this Portlet's meta data should be made before displaying in the portlet repository. |
void |
setCallIsRunnable(boolean value)
Controls whether calls to isPortletRunnable should be made
to this Portlet before displaying in the portlet repository. |
void |
setCallIsRunnable(java.lang.String value)
Controls whether calls to isPortletRunnable should be made
to this Portlet before displaying in the portlet repository. |
void |
setContainerRenderer(java.lang.Object renderer)
Sets the controller that will render this portlet's container. |
void |
setContainerRenderer(PortletContainerRenderer renderer)
Sets the controller that will render this portlet's container. |
void |
setDefaultLocale(java.lang.String lang)
Sets the default Locale for this Portal |
void |
setDescription(java.lang.String description)
Sets the Portlet description. |
void |
setHasAbout(java.lang.String hasAbout)
Controls whether this Portlet displays about information. |
void |
setHasHelp(java.lang.String hasHelp)
Controls whether this Portlet displays help information. |
void |
setId(java.lang.String id)
Sets the Portlet unique ID. |
void |
setMinEditAuthLevel(java.lang.String authLevel)
Sets the minimum user authentication level required for the customize link to be displayed in the portlet header If the authentication level of a user is less than the minimum authentication level specified, the customize link will not be displayed in the portlet header. |
void |
setMobileFlags(long flags)
Sets the portlet's mobile settings. |
void |
setMobileFlags(java.lang.String flags)
Sets the portlet's mobile settings. |
void |
setName(java.lang.String name)
Sets the Portlet name. |
void |
setPersonalizationManager(java.lang.Object mgr)
Sets the Portlet personalization manager. |
void |
setRenderer(java.lang.Object renderer)
Sets the Portlet renderer. |
void |
setResource(java.lang.String resourceClassName)
Sets the name of the default resource bundle class for this Portlet |
void |
setSecurityManager(java.lang.Object mgr)
Sets the Portlet security manager. |
void |
setShortTitle(java.lang.String title)
Sets the Portlet short title. |
void |
setShowDetails(java.lang.String hasDetails)
Controls whether this Portlet displays "detailed" mode. |
void |
setShowEdit(java.lang.String canEdit)
Controls whether this Portlet supports per user personalization. |
void |
setShowEditDefault(java.lang.String canEditDefault)
Controls whether this Portlet supports per portlet customization. |
void |
setShowEditToPublic(java.lang.String canEditString)
Deprecated. use setMinEditAuthLevel() |
void |
setShowLink(boolean value)
Controls whether this Portlet is capable of rendering content for link mode. |
void |
setShowLink(java.lang.String value)
Controls whether this Portlet is capable of rendering content for link mode. |
void |
setShowLinkMode(boolean value)
Controls whether this Portlet is capable of rendering content for link mode. |
void |
setShowLinkMode(java.lang.String value)
Controls whether this Portlet is capable of rendering content for link mode. |
void |
setShowPreview(java.lang.String canPreview)
Controls whether this Portlet is capable of displaying a design-time preview of itself (after customization or personalization). |
void |
setTimeout(java.lang.String timeout)
Sets the number of seconds the portal should wait before timing out a request to this portlet. |
void |
setTimeoutMessage(java.lang.String msg)
Sets the timeout messsage that the portal should use in its response when a request to this Portlet times out. |
void |
setTitle(java.lang.String title)
Sets the Portlet title. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DefaultPortlet()
| Method Detail |
public void init(Provider p)
init() method.p - the provider that created this instance.public PortletSecurityManager getSecurityManager()
public PortletPersonalizationManager getPersonalizationManager()
public PortletRenderer getRenderer()
public Provider getProvider()
public java.util.Locale getDefaultLocale()
public java.util.ResourceBundle getResourceBundle(java.util.Locale l)
l - the Locale of the resource bundle being requested.public void setResource(java.lang.String resourceClassName)
resourceClassName - full name of class extending ResourceBundle.public java.lang.String getName(java.util.Locale l)
l - the Locale (language) the requested name should be
retrieved/returned in.public long getId()
public java.lang.String getTitle(java.util.Locale l)
l - the Locale (language) the requested title should be
retrieved/returned in.public java.lang.String getShortTitle(java.util.Locale l)
l - the Locale (language) the requested shorttitle should be
retrieved/returned in.public java.lang.String getDescription(java.util.Locale l)
l - the Locale (language) the requested description should be
retrieved/returned in.public PortletParameter[] getInputParameters()
public java.lang.String[] getAcceptContentTypes()
public int getTimeout()
public java.lang.String getTimeoutMessage(java.util.Locale l)
l - the Locale (language) the requested timeout message should be
retrieved/returned in.public boolean hasShowEdit()
public boolean getShowEditToPublic()
public boolean hasShowEditDefault()
public boolean hasShowPreview()
public boolean hasShowDetails()
public boolean hasHelp()
public boolean hasAbout()
public boolean hasShowLinkMode()
Returns true if this Portlet is capable of rendering content for link mode.
public boolean hasShowLink()
public boolean callIsRunnable()
isPortletRunnable should be made
to this Portlet before displaying in the portlet repository. If false,
the portlet is treated as a public portlet visible to all users.isPortletRunnable should
be made to this Portlet.public boolean callGetPortlet()
public MobileFlags getMobileFlags()
MobileFlags.
public void setSecurityManager(java.lang.Object mgr)
throws PortletException
mgr - Object implementing the PortletSecurityManager interface.PortletSecurityManager
public void setPersonalizationManager(java.lang.Object mgr)
throws PortletException
mgr - Object implementing the PortletPersonalizationManager interface.PortletPersonalizationManager
public void setRenderer(java.lang.Object renderer)
throws PortletException
renderer - Object implementing the PortletRenderer interface.PortletRendererpublic void setName(java.lang.String name)
name - the Portlet name. This is the Portlet's non-unique display
name.
public void setId(java.lang.String id)
throws PortletException
id - the Portlet (unique ID). Value should be a String
representation of a long value, unique with respect to the Provider.long.public void setTitle(java.lang.String title)
title - the title of this Portlet. This is the name that shows up
in a portlet's title bar.public void setShortTitle(java.lang.String title)
sthe - short title of this Portlet. This is the name used when real
estate is at a premium such as when rendering a mobile link.public void setDescription(java.lang.String description)
description - a short description of what this portlet is.
Displayed at design-time along with the name and thumbnail image when a
user is choosing to add a portlet to a page.
public void addInputParameter(java.lang.Object parameter)
throws PortletException
parameter - Object implementing the PortletParameter interface.PortletParameterpublic void addAcceptContentType(java.lang.String type)
type - mime-type String, e.g. "text/html" or "text/xml".
public void setTimeout(java.lang.String timeout)
throws PortletException
timeout - timeout period, as a String representation of an integer
number of seconds.int.public void setTimeoutMessage(java.lang.String msg)
msg - timeout message.public void setShowEdit(java.lang.String canEdit)
canEdit - String representation of boolean value. Should be "true"
if this Portlet is to support per user personalization, "false"
otherwise.public void setShowEditToPublic(java.lang.String canEditString)
canEdit - String representation of boolean value. Should be "true"
if this Portlet exposes per user personalization to the public
non-logged in user, "false" otherwise.public void setShowEditDefault(java.lang.String canEditDefault)
canEditDefault - String representation of boolean value. Should be
"true" if this Portlet supports per portlet customization, "false"
otherwise.public void setShowPreview(java.lang.String canPreview)
canPreview - String representation of boolean value. Should be
"true" if this Portlet is capable of displaying a design-time preview of
itself (after customization or personalization), or "false" otherwise.public void setShowDetails(java.lang.String hasDetails)
hasDetails - String representation of boolean value. Should be
"true" if this Portlet is capable of displaying a "detailed" mode, or
"false" otherwise.public void setHasHelp(java.lang.String hasHelp)
hasHelp - String representation of boolean value. Should be "true"
if this Portlet is capable of displaying a help information, or "false"
otherwise.public void setHasAbout(java.lang.String hasAbout)
hasAbout - String representation of boolean value. Should be "true"
if this Portlet is capable of displaying about information, or "false"
otherwise.public void setDefaultLocale(java.lang.String lang)
lang - a String specifying a Locale, in the form
"language.country".public void setShowLinkMode(boolean value)
Controls whether this Portlet is capable of rendering content for link mode.
value - boolean flag.public void setShowLinkMode(java.lang.String value)
Controls whether this Portlet is capable of rendering content for link mode.
value - String representing a boolean.public void setShowLink(boolean value)
value - boolean flag.public void setShowLink(java.lang.String value)
value - String representing a boolean.public void setCallIsRunnable(boolean value)
isPortletRunnable should be made
to this Portlet before displaying in the portlet repository. If false,
the portlet is treated as a public portlet visible to all users.value - boolean flag.public void setCallIsRunnable(java.lang.String value)
isPortletRunnable should be made
to this Portlet before displaying in the portlet repository. If false,
the portlet is treated as a public portlet visible to all users.value - String representing a boolean.public void setCallGetPortlet(boolean value)
value - boolean flag.public void setCallGetPortlet(java.lang.String value)
value - String representing a boolean.public void setMobileFlags(long flags)
MobileFlags inteface.the - portlet's mobile setting in a bitwise flag
public void setMobileFlags(java.lang.String flags)
throws java.lang.IllegalArgumentException
MobileFlags interface.
This form allows you to set the flags as a string.
The string can either be the (case insensitive) delimited
names of the flags or the number itself (as a String). E.g.
passing "MOBILE_ONLY | EXTERNAL_SHOW" is the same as
passing the string "3" to the method.the - portlet's mobile setting in a bitwise flagpublic int getMinEditAuthLevel()
public void setMinEditAuthLevel(java.lang.String authLevel)
throws PortletException
authLevel - minimum authentication level. Possible values are
"PUBLIC", "WEAK", "STRONG"public PortletContainerRenderer getContainerRenderer()
public void setContainerRenderer(PortletContainerRenderer renderer)
throws PortletException
renderer - the portlet container renderer
public void setContainerRenderer(java.lang.Object renderer)
throws PortletException
renderer - the portlet container renderer. Even though the type
of the parameter is Object, the parameter must be an
instance of PortletContainerRenderer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||