|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.theme.NavItem
public class NavItem
Represents a portal navigation item, providing access to layouts and metadata
from templates, which can be found in a theme's
portal-normal.vm.
| Constructor Summary | |
|---|---|
NavItem(javax.servlet.http.HttpServletRequest request,
Layout layout,
Template template)
|
|
| Method Summary | |
|---|---|
static List<NavItem> |
fromLayouts(javax.servlet.http.HttpServletRequest request,
List<Layout> layouts,
Template template)
Creates a single level of navigation items from the layouts. |
List<NavItem> |
getChildren()
Returns all of child layouts that the current user has permission to access from this navigation item's layout. |
Layout |
getLayout()
Returns the navigation item's layout. |
long |
getLayoutId()
Returns the ID of the navigation item's layout. |
String |
getName()
Returns the HTML-escaped name of the navigation item's layout. |
String |
getRegularFullURL()
Returns the full, absolute URL (including the portal's URL) of the navigation item's layout. |
String |
getRegularURL()
Returns the regular URL of the navigation item's layout. |
String |
getResetLayoutURL()
|
String |
getResetMaxStateURL()
|
String |
getTarget()
Returns the target of the navigation item's layout. |
String |
getTitle()
Returns the title of the navigation item's layout in the current request's locale. |
String |
getUnescapedName()
Returns the unescaped name of the navigation item's layout in the current request's locale. |
String |
getURL()
Returns the URL of the navigation item's layout, in a format that makes it safe to use the URL as an HREF attribute value |
boolean |
hasChildren()
Returns true if the navigation item's layout has child
layouts. |
void |
icon()
|
boolean |
isChildSelected()
|
boolean |
isSelected()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NavItem(javax.servlet.http.HttpServletRequest request,
Layout layout,
Template template)
| Method Detail |
|---|
public static List<NavItem> fromLayouts(javax.servlet.http.HttpServletRequest request,
List<Layout> layouts,
Template template)
No permission checks are performed in this method. Permissions of child
layouts are honored when accessing them via getChildren().
request - the currently served HttpServletRequestlayouts - the layouts from which to create the navigation itemstemplate - the template to add navigation items to
null if the collection of layouts was
null.
public List<NavItem> getChildren()
throws Exception
Exception - if an exception occurredpublic Layout getLayout()
public long getLayoutId()
public String getName()
public String getRegularFullURL()
throws Exception
Exception - if an exception occurred
public String getRegularURL()
throws Exception
Exception - if an exception occurred
public String getResetLayoutURL()
throws Exception
Exception
public String getResetMaxStateURL()
throws Exception
Exceptionpublic String getTarget()
public String getTitle()
public String getUnescapedName()
public String getURL()
throws Exception
Exception - if an exception occurred
public boolean hasChildren()
throws Exception
true if the navigation item's layout has child
layouts.
true if the navigation item's layout has child
layouts; false otherwise
Exception - if an exception occurred
public void icon()
throws Exception
Exception
public boolean isChildSelected()
throws PortalException
PortalException
public boolean isSelected()
throws Exception
Exception
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||