|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface PortletState represents the current state of a given
portlet instance for the user it is associated with. This state aggregates
the user and group personalizations for this portlet as well as the original
definition. If a PortletState object is been retrieved from within a custom
jsp tag that extends the RenderBaseTag class then it is safe to
assume that entitlement and visibility checks have already occurred.
| Method Summary | |
String |
getCurrentWebflowNamespace()
Method getCurrentWebflowNamespace returns the current
namespace being used by this portlet. |
String |
getDisplayName()
Method getDisplayName returns the display
name of this portlet. |
PlaceholderIdentifier |
getPlaceholderIdentifier()
Method getPlaceholderIdentifier retrieves an identifier
for the placeholder that this portlet instance is currently situated
within. |
int |
getPlaceholderIndex()
Method getPlaceholderIndex retrieves an index representing
an ordering for this portlet within the placeholder that is specified by
the getPlaceholderIdentifier method. |
PortletIdentifier |
getPortletIdentifier()
Method getPortletIdentifier retrieves an identifier
representing the portlet definition that this portlet is an instance of. |
String |
getUrl(int urlType)
Method getUrl retrieves a url associated with this
portlet. |
String |
getWebflowNamespace()
Method getWebflowNamespace retrieves the (optional) webflow
namespace associated with this portlet. |
boolean |
isEditable()
Method isEditable determines whether this portlet
currently has the 'editable' attribute set for this user. |
boolean |
isFloatable()
Method isFloatable determines whether this portlet
currently has the 'floatable' attribute set for this user. |
boolean |
isHelpable()
Method isHelpable determines whether this portlet
currently has the 'helpable' attribute set for this user. |
boolean |
isMaximizable()
Method isMaximizable determines whether this portlet
currently has the 'maximizable' attribute set for this user. |
boolean |
isMinimizable()
Method isMinimizable determines whether this portlet
currently has the 'minimizable' attribute set for this user. |
boolean |
isMinimized()
Method isMinimized determines whether this portlet is
currently in the 'minimized' state for this user. |
boolean |
isRemovable()
Method isRemovable determines whether this portlet
currently has the 'removable' attribute set for this user. |
void |
setCurrentWebflowNamespace(String currentNS)
Method setCurrentWebflowNamespace returns the current
namespace being used by this portlet. |
void |
setMinimized(boolean minimized)
Method setMinimized sets whether this portlet is currently
minimized. |
void |
setUrl(int type,
String url)
Webflow can set URLs on Portlets, specifically the content URL. |
| Method Detail |
public PortletIdentifier getPortletIdentifier()
getPortletIdentifier retrieves an identifier
representing the portlet definition that this portlet is an instance of.
PortletIdentifier representing the
portlet definition that this portlet is an instance ofpublic PlaceholderIdentifier getPlaceholderIdentifier()
getPlaceholderIdentifier retrieves an identifier
for the placeholder that this portlet instance is currently situated
within. This data is personalized to the associated user at user scope.
PlaceholderIdentifier representing the
placeholder that this portlet instance is currently located within.public int getPlaceholderIndex()
getPlaceholderIndex retrieves an index representing
an ordering for this portlet within the placeholder that is specified by
the getPlaceholderIdentifier method. The index is expected
to start at 1 with 0 representing an unspecified index.
int representing index of
this portlet within the specified placeholder.public String getUrl(int urlType)
getUrl retrieves a url associated with this
portlet. The default set of url types recognised are defined in the
Portlet interface as follows:
Portlet.URL_CONTENT
Portlet.URL_HEADER
Portlet.URL_FOOTER
Portlet.URL_ALTERNATE_HEADER
Portlet.URL_ALTERNATE_FOOTER
Portlet.URL_TITLEBAR
Portlet.URL_BANNER
Portlet.URL_EDIT
Portlet.URL_HELP
Portlet.URL_ICON
Portlet.URL_MAXIMIZE
String representing the url
specified for the type supplied.
public void setUrl(int type,
String url)
Portlet interface as follows:
Portlet.URL_CONTENT
Portlet.URL_HEADER
Portlet.URL_FOOTER
Portlet.URL_ALTERNATE_HEADER
Portlet.URL_ALTERNATE_FOOTER
Portlet.URL_TITLEBAR
Portlet.URL_BANNER
Portlet.URL_EDIT
Portlet.URL_HELP
Portlet.URL_ICON
Portlet.URL_MAXIMIZE
type - A parameter of type int used to specify the
type of url required.url - The URL to set in for the corresponding URL type.public String getWebflowNamespace()
getWebflowNamespace retrieves the (optional) webflow
namespace associated with this portlet.
String representing the webflow
namespace associated with this portlet.public String getCurrentWebflowNamespace()
getCurrentWebflowNamespace returns the current
namespace being used by this portlet.
String representing the
current namespace being used by this portlet.public void setCurrentWebflowNamespace(String currentNS)
setCurrentWebflowNamespace returns the current
namespace being used by this portlet.
currentNS - The name of the current namespace. This should be
set by the PortletEventProcessor.public boolean isMinimized()
isMinimized determines whether this portlet is
currently in the 'minimized' state for this user.
boolean representing whether
this portlet is in the 'minimized' state for this user.public boolean isFloatable()
isFloatable determines whether this portlet
currently has the 'floatable' attribute set for this user.
boolean representing whether
this portlet has the 'floatable' attribute set for this user.public boolean isMinimizable()
isMinimizable determines whether this portlet
currently has the 'minimizable' attribute set for this user.
boolean representing whether
this portlet has the 'minimizable' attribute set for this user.public boolean isHelpable()
isHelpable determines whether this portlet
currently has the 'helpable' attribute set for this user.
boolean representing whether
this portlet has the 'helpable' attribute set for this user.public boolean isMaximizable()
isMaximizable determines whether this portlet
currently has the 'maximizable' attribute set for this user.
boolean representing whether
this portlet has the 'maximizable' attribute set for this user.public boolean isEditable()
isEditable determines whether this portlet
currently has the 'editable' attribute set for this user.
boolean representing whether
this portlet has the 'editable' attribute set for this user.public boolean isRemovable()
isRemovable determines whether this portlet
currently has the 'removable' attribute set for this user.
boolean representing whether
this portlet has the 'removable' attribute set for this user.public void setMinimized(boolean minimized)
setMinimized sets whether this portlet is currently
minimized. The method is used by rendering to test this value in lieu
of having to go back to the PortalManager to get the minimized value
from the database.
minimized - the boolean minimized state for this portlet.public String getDisplayName()
getDisplayName returns the display
name of this portlet.
String representing the
display name of this portlet.
|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||