Class TopbarMenuInfoFilter
- java.lang.Object
-
- com.jalios.jcms.uicomponent.topbar.TopbarMenuInfoFilter
-
- All Implemented Interfaces:
MenuInfoFilter
public class TopbarMenuInfoFilter extends java.lang.Object implements MenuInfoFilter
Updates topbar's navigation when the favorite space root category exists.It adds member's favorite workspaces if any.
It adds member's team portal if any.
If CSP plugin is here and active, it adds a link to CSP Hub.
Also, it skips categories which name contains "$NAME$".
- Since:
- jcms-10.0.0
- Version:
- $Revision: 119349 $
- Author:
- Sylvain Devaux
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Fields inherited from interface com.jalios.jcms.taglib.menu.MenuInfoFilter
MENU_INFO_FILTER_ATTR
-
-
Constructor Summary
Constructors Constructor Description TopbarMenuInfoFilter(Member member, JcmsJspContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAccepted(MenuInfo menuInfo)
If givenmenuInfo
is the "Favorite workspace root cat", accepts it only if member has at least one favorite workspace, and / or a team portal.MenuInfo
update(MenuInfo menuInfo)
Dynamically adds menu items when givenmenuInfo
is the "Favorite workspace root cat".
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TopbarMenuInfoFilter
public TopbarMenuInfoFilter(Member member, JcmsJspContext context)
-
-
Method Detail
-
isAccepted
public boolean isAccepted(MenuInfo menuInfo)
If givenmenuInfo
is the "Favorite workspace root cat", accepts it only if member has at least one favorite workspace, and / or a team portal.If given
menuInfo
is a Category which name contains "$NAME$", it will be skipped.Always accepts others menuInfos.
- Specified by:
isAccepted
in interfaceMenuInfoFilter
- See Also:
MenuInfoFilter.isAccepted(com.jalios.jcms.taglib.menu.MenuInfo)
-
update
public MenuInfo update(MenuInfo menuInfo)
Dynamically adds menu items when givenmenuInfo
is the "Favorite workspace root cat".Added menu items are member's favorite workspaces, and/or member's team portal if any.
- Specified by:
update
in interfaceMenuInfoFilter
- See Also:
MenuInfoFilter.update(com.jalios.jcms.taglib.menu.MenuInfo)
-
-