Package com.jalios.jcms.shortcut
Interface ShortcutPolicyFilter
-
- All Superinterfaces:
java.lang.Comparable,PluginComponent,PolicyFilter
- All Known Implementing Classes:
BasicShortcutPolicyFilter,WorkspaceApplicationShortcutPolicyFilter
public interface ShortcutPolicyFilter extends PolicyFilter
This interface provides hooks for shortcut badge.- Since:
- jcms-10.0.0
- Author:
- kevin.bransard@jalios.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationMenuBadgegetApplicationMenuBadge(Member mbr)Returns an ApplicationMenuBadge which will be displayed on topbar application menu itemApplicationMenuBadgegetApplicationMenuBadge(Member mbr, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session)Returns an ApplicationMenuBadge which will be displayed on topbar application menu itemAbstractShortcutgetShortcut()Used for filtering ongetApplicationMenuBadge(Member)ShortcutInfogetShortcutInfo(AbstractShortcut shortcut, Member loggedMember)Returns a ShortcutInfo which is used to synchronously query the shortcut badge for topbar application menu items (When the menu is opened)java.lang.StringgetShortcutInfoAsync(AbstractShortcut shortcut)Returns an url which is used to asynchronously query the shortcut badge for topbar application menu items (When the menu is opened)booleanshowShortcut(AbstractShortcut shortcut, Member mbr)Show or hide theAbstractShortcutin the application menu-
Methods inherited from interface com.jalios.jcms.plugin.PluginComponent
init
-
-
-
-
Method Detail
-
getShortcutInfo
ShortcutInfo getShortcutInfo(AbstractShortcut shortcut, Member loggedMember)
Returns a ShortcutInfo which is used to synchronously query the shortcut badge for topbar application menu items (When the menu is opened)- Parameters:
shortcut- theAbstractShortcutloggedMember- theMember- Returns:
- a
ShortcutInfofor current Shortcut and givenMember
-
getShortcutInfoAsync
java.lang.String getShortcutInfoAsync(AbstractShortcut shortcut)
Returns an url which is used to asynchronously query the shortcut badge for topbar application menu items (When the menu is opened)- Parameters:
shortcut- theAbstractShortcut- Returns:
- an url
-
getApplicationMenuBadge
ApplicationMenuBadge getApplicationMenuBadge(Member mbr)
Returns an ApplicationMenuBadge which will be displayed on topbar application menu item- Parameters:
mbr- theMember- Returns:
- an
ApplicationMenuBadgefor given user
-
getApplicationMenuBadge
ApplicationMenuBadge getApplicationMenuBadge(Member mbr, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session)
Returns an ApplicationMenuBadge which will be displayed on topbar application menu item- Parameters:
mbr- theMemberrequest- the currentHttpServletRequestsession- the currentHttpSession- Returns:
- an
ApplicationMenuBadgefor given user
-
getShortcut
AbstractShortcut getShortcut()
Used for filtering ongetApplicationMenuBadge(Member)- Returns:
- the
AbstractShortcut
-
showShortcut
boolean showShortcut(AbstractShortcut shortcut, Member mbr)
Show or hide theAbstractShortcutin the application menu- Parameters:
shortcut-AbstractShortcutmbr-- Returns:
- true if the
AbstractShortcutmust be displayed in the application menu
-
-