Package com.jalios.jcms.shortcut
Class BasicShortcutPolicyFilter
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyFilter
-
- com.jalios.jcms.shortcut.BasicShortcutPolicyFilter
-
- All Implemented Interfaces:
PluginComponent,PolicyFilter,ShortcutPolicyFilter,java.lang.Comparable
- Direct Known Subclasses:
WorkspaceApplicationShortcutPolicyFilter
public class BasicShortcutPolicyFilter extends AbstractPolicyFilter implements ShortcutPolicyFilter
-
-
Field Summary
-
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
-
-
Constructor Summary
Constructors Constructor Description BasicShortcutPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete 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 onShortcutPolicyFilter.getApplicationMenuBadge(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)booleaninit(Plugin plugin)Initialize the component with the given plugin configurationbooleanshowShortcut(AbstractShortcut shortcut, Member mbr)Show or hide theAbstractShortcutin the application menu-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
-
-
-
-
Method Detail
-
init
public boolean init(Plugin plugin)
Description copied from interface:PluginComponentInitialize the component with the given plugin configuration- Specified by:
initin interfacePluginComponent- Parameters:
plugin- the calling plugin- Returns:
- true if the component has been correctly initialized.
-
getShortcutInfo
public ShortcutInfo getShortcutInfo(AbstractShortcut shortcut, Member loggedMember)
Description copied from interface:ShortcutPolicyFilterReturns a ShortcutInfo which is used to synchronously query the shortcut badge for topbar application menu items (When the menu is opened)- Specified by:
getShortcutInfoin interfaceShortcutPolicyFilter- Parameters:
shortcut- theAbstractShortcutloggedMember- theMember- Returns:
- a
ShortcutInfofor current Shortcut and givenMember
-
getShortcutInfoAsync
public java.lang.String getShortcutInfoAsync(AbstractShortcut shortcut)
Description copied from interface:ShortcutPolicyFilterReturns an url which is used to asynchronously query the shortcut badge for topbar application menu items (When the menu is opened)- Specified by:
getShortcutInfoAsyncin interfaceShortcutPolicyFilter- Parameters:
shortcut- theAbstractShortcut- Returns:
- an url
-
getApplicationMenuBadge
public ApplicationMenuBadge getApplicationMenuBadge(Member mbr)
Description copied from interface:ShortcutPolicyFilterReturns an ApplicationMenuBadge which will be displayed on topbar application menu item- Specified by:
getApplicationMenuBadgein interfaceShortcutPolicyFilter- Parameters:
mbr- theMember- Returns:
- an
ApplicationMenuBadgefor given user
-
getShortcut
public AbstractShortcut getShortcut()
Description copied from interface:ShortcutPolicyFilterUsed for filtering onShortcutPolicyFilter.getApplicationMenuBadge(Member)- Specified by:
getShortcutin interfaceShortcutPolicyFilter- Returns:
- the
AbstractShortcut
-
getApplicationMenuBadge
public ApplicationMenuBadge getApplicationMenuBadge(Member mbr, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session)
Description copied from interface:ShortcutPolicyFilterReturns an ApplicationMenuBadge which will be displayed on topbar application menu item- Specified by:
getApplicationMenuBadgein interfaceShortcutPolicyFilter- Parameters:
mbr- theMemberrequest- the currentHttpServletRequestsession- the currentHttpSession- Returns:
- an
ApplicationMenuBadgefor given user
-
showShortcut
public boolean showShortcut(AbstractShortcut shortcut, Member mbr)
Description copied from interface:ShortcutPolicyFilterShow or hide theAbstractShortcutin the application menu- Specified by:
showShortcutin interfaceShortcutPolicyFilter- Parameters:
shortcut-AbstractShortcut- Returns:
- true if the
AbstractShortcutmust be displayed in the application menu
-
-