public class BasicShortcutPolicyFilter extends AbstractPolicyFilter implements ShortcutPolicyFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
order
Constructor and Description |
---|
BasicShortcutPolicyFilter() |
Modifier and Type | Method and Description |
---|---|
ApplicationMenuBadge |
getApplicationMenuBadge(Member mbr)
Returns an ApplicationMenuBadge which will be displayed on topbar application menu item
|
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
|
AbstractShortcut |
getShortcut()
Used for filtering on
ShortcutPolicyFilter.getApplicationMenuBadge(Member) |
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)
|
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)
|
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration
|
compareTo, equals, getOrder, setOrder
public static final java.lang.String REVISION
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
plugin
- the calling pluginpublic ShortcutInfo getShortcutInfo(AbstractShortcut shortcut, Member loggedMember)
ShortcutPolicyFilter
getShortcutInfo
in interface ShortcutPolicyFilter
shortcut
- the AbstractShortcut
loggedMember
- the Member
ShortcutInfo
for current Shortcut and given Member
public java.lang.String getShortcutInfoAsync(AbstractShortcut shortcut)
ShortcutPolicyFilter
getShortcutInfoAsync
in interface ShortcutPolicyFilter
shortcut
- the AbstractShortcut
public ApplicationMenuBadge getApplicationMenuBadge(Member mbr)
ShortcutPolicyFilter
getApplicationMenuBadge
in interface ShortcutPolicyFilter
mbr
- the Member
ApplicationMenuBadge
for given userpublic AbstractShortcut getShortcut()
ShortcutPolicyFilter
ShortcutPolicyFilter.getApplicationMenuBadge(Member)
getShortcut
in interface ShortcutPolicyFilter
AbstractShortcut
public ApplicationMenuBadge getApplicationMenuBadge(Member mbr, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session)
ShortcutPolicyFilter
getApplicationMenuBadge
in interface ShortcutPolicyFilter
mbr
- the Member
request
- the current HttpServletRequest
session
- the current HttpSession
ApplicationMenuBadge
for given userCopyright © 2001-2022 Jalios SA. All Rights Reserved.