|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a set of well known settings that can affect the way that the container deals with a portlet. The settings apply to a given portlet handle (and therefore instance). The settings can be composite, that is where one handle may be the parent of another, and settings are inherited from the parent, and its parents.
Method Summary | |
String |
getLocalizedTitle(Locale[] locales)
Returns the localized title for the portlet. |
int |
getMaxTimeOut()
Indicates that the maximum amount of time in milliseconds the portal should wait for this portlet to return its content. |
EbiPortletSettings |
getParent()
Returns the parent of this settings object. |
String |
getTitle(Locale locale)
Returns the localized title for the portlet. |
String |
getUserTitle(com.novell.afw.portlet.api.EbiContext context)
Returns the localized title for the portlet. |
boolean |
isAuthenticationRequired()
Indicates if the portlet requires authentication before it can be run. |
boolean |
isAuthenticationRequiredInherited()
Indicates if the setting is defined at the current level or if it is only defined at a level in the parent hierarchy. |
boolean |
isHiddenFromUser()
Indicates if the portlet should be hidden from the user, that is not shown in a list of portlets the user may choose from. |
boolean |
isHiddenFromUserInherited()
Indicates if the setting is defined at the current level or if it is only defined at a level in the parent hierarchy. |
boolean |
isMaxTimeOutInherited()
Indicates if the setting is defined at the current level or if it is only defined at a level in the parent hierarchy. |
boolean |
isOptionInherited(String option)
Indicates if the setting is defined at the current level or if it is only defined at a level in the parent hierarchy. |
boolean |
isOptionSupported(String option)
Indicates whether an option is supported by this portlet. |
boolean |
isTitlebarEnabled()
Indicates if the portlet's titlebar should be shown. |
boolean |
isTitlebarEnabledInherited()
Indicates if the setting is defined at the current level or if it is only defined at a level in the parent hierarchy. |
boolean |
isTitleInherited(Locale locale)
Indicates if the setting is defined at the current level or if it is only defined at a level in the parent hierarchy. |
boolean |
isTitleReadOnly()
Indicates if the title is read-only. |
void |
resetAuthenticationRequired()
Resests the value to the original value (that is the one inherited from the parent settings). |
void |
resetHiddenFromUser()
Resests the value to the original value (that is the one inherited from the parent settings). |
void |
resetMaxTimeOut()
Resests the value to the original value (that is the one inherited from the parent settings). |
void |
resetOption(String option)
Resests the suported status of the option to the original value (that is the one inherited from the parent settings). |
void |
resetTitle(Locale locale)
Resets the value to the original value (that is the one inherited from the parent settings). |
void |
resetTitlebarEnabled()
Resests the value to the original value (that is the one inherited from the parent settings). |
void |
setAuthenticationRequired(boolean authreq)
Sets the flag to indicate if the portlet requires authentication before it can be run. |
void |
setHiddenFromUser(boolean enabled)
Sets the flag to indicates that the portlet should be hidden from the user, that is not shown in a list of portlets the user may choose from. |
void |
setMaxTimeOut(long timeout)
Indicates that the maximum amount of time in milliseconds the portal should wait for this portlet to return its content. |
void |
setOption(String option,
boolean supported)
Sets an option to be supported or unsupported for the portlet. |
void |
setTitle(Locale locale,
String title)
Sets the localized title for the portlet. |
void |
setTitlebarEnabled(boolean enabled)
Sets the flag to indicates that the titlebar should be shwon. |
void |
setTitleReadOnly(boolean readOnly)
Sets the readOnly status of the title. |
Method Detail |
public EbiPortletSettings getParent()
public int getMaxTimeOut()
public void setMaxTimeOut(long timeout)
timeout
- long for the number of milliseconds or -1 to mean no timeout.public void resetMaxTimeOut()
public boolean isMaxTimeOutInherited()
public String getTitle(Locale locale)
getLocalizedTitle(java.util.Locale[])
method and pass in an array
of Locale objects (usually gotten from com.novell.afw.portlet.util.EboLocaleHelper).
Alternatively, use the getUserTitle(com.sssw.fw.api.EbiContext)
which will figure out the
the best locale for the user based on the context and return the localized title.locale
- for which to return the title.EbiPortletSettings.getLocalizedTitle(java.util.Locale[])
,
#getUserTitle(com.sssw.fw.api.EbiContext)
public String getLocalizedTitle(Locale[] locales)
getTitle(java.util.Locale)
to consider a set of locales instead of just one. The array of locales is used as is
(no variants of locales considered) and it is assumed that the list is populated
with all variants of of locales to be considered in the order of specificity.
As a convienience, you can also use the getUserTitle(com.sssw.fw.api.EbiContext)
which will figure out the
the best locale for the user based on the context and return the localized title.locales
- Array of Locale objects, usually gotten from com.novell.afw.portlet.util.EboLocaleHelper.EbiPortletSettings.getTitle(java.util.Locale)
,
#getUserTitle(com.sssw.fw.api.EbiContext)
public String getUserTitle(com.novell.afw.portlet.api.EbiContext context)
context
- EbiContext containing information about the user's request.EbiPortletSettings.getTitle(java.util.Locale)
,
EbiPortletSettings.getLocalizedTitle(java.util.Locale[])
public void setTitle(Locale locale, String title)
locale
- for which to set the locale.title
- String with the title for the portlet.public void resetTitle(Locale locale)
locale
- The locale for which to reset the valuepublic boolean isTitleInherited(Locale locale)
public boolean isTitleReadOnly()
public void setTitleReadOnly(boolean readOnly)
readOnly
- boolean true to mean the title is set read-only.public boolean isAuthenticationRequired()
public void setAuthenticationRequired(boolean authreq)
authreq
- true to mean that a user must be authenticated before the portlet can be run.public void resetAuthenticationRequired()
public boolean isAuthenticationRequiredInherited()
public boolean isTitlebarEnabled()
public void setTitlebarEnabled(boolean enabled)
enabled
- true to mean that titlebar should be shown.public void resetTitlebarEnabled()
public boolean isTitlebarEnabledInherited()
public boolean isHiddenFromUser()
public void setHiddenFromUser(boolean enabled)
enabled
- boolean true to mean that the user cannot see the portlet in listings of portlets.public void resetHiddenFromUser()
public boolean isHiddenFromUserInherited()
public void setOption(String option, boolean supported)
option
- String name of the option.supported
- boolean true to indicate that the portlet supports this option.public void resetOption(String option)
option
- String name of the option.public boolean isOptionSupported(String option)
option
- String the option name.public boolean isOptionInherited(String option)
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |