org.apache.myfaces.component
Interface UserRoleAware

All Known Implementing Classes:
AbstractDiv, AbstractFieldset, AbstractHtmlCheckbox, AbstractHtmlCollapsiblePanel, AbstractHtmlCommandButton, AbstractHtmlCommandJSCookMenu, AbstractHtmlCommandLink, AbstractHtmlCommandNavigation, AbstractHtmlCommandNavigationItem, AbstractHtmlCommandSortHeader, AbstractHtmlDataList, AbstractHtmlDataScroller, AbstractHtmlDataTable, AbstractHtmlGraphicImage, AbstractHtmlHeaderLink, AbstractHtmlInputCalendar, AbstractHtmlInputDate, AbstractHtmlInputFileUpload, AbstractHtmlInputSecret, AbstractHtmlInputText, AbstractHtmlInputTextarea, AbstractHtmlInputTextHelp, AbstractHtmlMessage, AbstractHtmlMessages, AbstractHtmlOutputLabel, AbstractHtmlOutputText, AbstractHtmlPanelGrid, AbstractHtmlPanelGroup, AbstractHtmlPanelNavigation, AbstractHtmlPanelNavigationMenu, AbstractHtmlPanelTab, AbstractHtmlPanelTabbedPane, AbstractHtmlPopup, AbstractHtmlRadio, AbstractHtmlSchedule, AbstractHtmlSelectBooleanCheckbox, AbstractHtmlSelectManyCheckbox, AbstractHtmlSelectManyListbox, AbstractHtmlSelectManyMenu, AbstractHtmlSelectManyPicklist, AbstractHtmlSelectOneListbox, AbstractHtmlSelectOneMenu, AbstractHtmlSelectOneRadio, AbstractHtmlTag, AbstractSelectOneCountry, AbstractSelectOneLanguage, AbstractStylesheet, AbstractUINavigationMenuItem, org.apache.myfaces.component.html.ext.HtmlCommandLink, org.apache.myfaces.component.html.ext.HtmlInputText, org.apache.myfaces.component.html.ext.HtmlPanelGroup, org.apache.myfaces.component.html.ext.HtmlSelectManyListbox, org.apache.myfaces.component.html.ext.HtmlSelectOneMenu, org.apache.myfaces.custom.htmlTag.HtmlTag, InputHtml

public interface UserRoleAware

Behavioral interface. Components that support user role checking should implement this interface to optimize property access.

Version:
$Revision: 659874 $ $Date: 2008-05-24 15:59:15 -0500 (Sat, 24 May 2008) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Field Summary
static String ENABLED_ON_USER_ROLE_ATTR
           
static String VISIBLE_ON_USER_ROLE_ATTR
           
 
Method Summary
 String getEnabledOnUserRole()
          If user is in given role, this component will be rendered normally.
 String getVisibleOnUserRole()
          If user is in given role, this component will be rendered normally.
 void setEnabledOnUserRole(String userRole)
           
 void setVisibleOnUserRole(String userRole)
           
 

Field Detail

ENABLED_ON_USER_ROLE_ATTR

static final String ENABLED_ON_USER_ROLE_ATTR
See Also:
Constant Field Values

VISIBLE_ON_USER_ROLE_ATTR

static final String VISIBLE_ON_USER_ROLE_ATTR
See Also:
Constant Field Values
Method Detail

getEnabledOnUserRole

String getEnabledOnUserRole()
If user is in given role, this component will be rendered normally. If not, no hyperlink is rendered but all nested tags (=body) are rendered.

Returns:

setEnabledOnUserRole

void setEnabledOnUserRole(String userRole)

getVisibleOnUserRole

String getVisibleOnUserRole()
If user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped.

Returns:

setVisibleOnUserRole

void setVisibleOnUserRole(String userRole)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.