Package com.jalios.jcms.policy
Class BasicCtxMenuPolicyFilter
java.lang.Object
com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicCtxMenuPolicyFilter
- All Implemented Interfaces:
CtxMenuConstants,PluginComponent,CtxMenuPolicyFilter,PolicyFilter,Comparable
public class BasicCtxMenuPolicyFilter
extends AbstractPolicyFilter
implements CtxMenuPolicyFilter, PluginComponent
This class provides hooks for contextual menu rendering.
- Since:
- jcms-5.7.0
- Author:
- Jean-Philippe Encausse
-
Field Summary
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
orderFields inherited from interface com.jalios.jcms.ajax.CtxMenuConstants
DISABLED, FLAG_CADDY, FLAG_DELETE, FLAG_EDIT, FLAG_EXPORT, FLAG_INSPECT, FLAG_SEPARATOR, INFO_ICON, MENU_DISABLED, MENU_ENABLED, MENU_SKIPPED, NO_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]checkCtxMenuItems(GroupCtxMenu ctxMenu, Group grp, char[] letters) Checks the processed contextual menuchar[]checkCtxMenuItems(MemberCtxMenu ctxMenu, Member mbr, char[] letters) Checks the processed contextual menuchar[]checkCtxMenuItems(PublicationCtxMenu ctxMenu, Publication pub, char[] letters) Checks the processed contextual menuvoidhandleCtxMenuItems(StringBuffer sb, GroupCtxMenu ctxMenu, Group grp) Handle the current StringBuffer to append custom content for the given MemberinthandleCtxMenuItems(StringBuffer sb, GroupCtxMenu ctxMenu, Group grp, char letter, int status) Handle the current StringBuffer to append custom content for the given Member and given LettervoidhandleCtxMenuItems(StringBuffer sb, MemberCtxMenu ctxMenu, Member mbr) Handle the current StringBuffer to append custom content for the given MemberinthandleCtxMenuItems(StringBuffer sb, MemberCtxMenu ctxMenu, Member mbr, char letter, int status) Handle the current StringBuffer to append custom content for the given Member and given LettervoidhandleCtxMenuItems(StringBuffer sb, PublicationCtxMenu ctxMenu, Publication pub) Handle the current StringBuffer to append custom content for the given PublicationinthandleCtxMenuItems(StringBuffer sb, PublicationCtxMenu ctxMenu, Publication pub, char letter, int status) Handle the current StringBuffer to append custom content for the given Publication and given LetterbooleanInitialize the component with the given plugin configurationvoidinitCtxMenu(GroupCtxMenu ctxMenu, JcmsJspContext jcmsContext) Initialize the contextual menu.
This method is called when the Context Menu object class is created.voidinitCtxMenu(MemberCtxMenu ctxMenu, JcmsJspContext jcmsContext) Initialize the contextual menu.
This method is called when the Context Menu object class is created.voidinitCtxMenu(PublicationCtxMenu ctxMenu, JcmsJspContext jcmsContext) Initialize the contextual menu.
This method is called when the Context Menu object class is created.Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrderMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
BasicCtxMenuPolicyFilter
public BasicCtxMenuPolicyFilter()
-
-
Method Details
-
init
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.
- Since:
- jcms-5.7.1
- See Also:
-
initCtxMenu
Description copied from interface:CtxMenuPolicyFilterInitialize the contextual menu.
This method is called when the Context Menu object class is created.- Specified by:
initCtxMenuin interfaceCtxMenuPolicyFilter- Parameters:
ctxMenu- the instance of the context menu created during initial request.jcmsContext- the JcmsJspContext of the request during which the context menu object was created.
-
initCtxMenu
Description copied from interface:CtxMenuPolicyFilterInitialize the contextual menu.
This method is called when the Context Menu object class is created.- Specified by:
initCtxMenuin interfaceCtxMenuPolicyFilter- Parameters:
ctxMenu- the instance of the context menu created during initial request.jcmsContext- the JcmsJspContext of the request during which the context menu object was created.
-
initCtxMenu
Description copied from interface:CtxMenuPolicyFilterInitialize the contextual menu.
This method is called when the Context Menu object class is created.- Specified by:
initCtxMenuin interfaceCtxMenuPolicyFilter- Parameters:
ctxMenu- the instance of the context menu created during initial request.jcmsContext- the JcmsJspContext of the request during which the context menu object was created.
-
checkCtxMenuItems
Description copied from interface:CtxMenuPolicyFilterChecks the processed contextual menu- Specified by:
checkCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
ctxMenu- the instance of the context menu created during initial request.pub- the working publicationletters- an array of letters describing menus to display- Returns:
- char[] reorganized chars
-
checkCtxMenuItems
Description copied from interface:CtxMenuPolicyFilterChecks the processed contextual menu- Specified by:
checkCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
ctxMenu- the instance of the context menu created during initial request.mbr- the working memberletters- an array of letters describing menus to display- Returns:
- char[] reorganized chars
-
checkCtxMenuItems
Description copied from interface:CtxMenuPolicyFilterChecks the processed contextual menu- Specified by:
checkCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
ctxMenu- the instance of the context menu created during initial request.grp- the working groupletters- an array of letters describing menus to display- Returns:
- char[] reorganized chars
-
handleCtxMenuItems
public int handleCtxMenuItems(StringBuffer sb, PublicationCtxMenu ctxMenu, Publication pub, char letter, int status) Description copied from interface:CtxMenuPolicyFilterHandle the current StringBuffer to append custom content for the given Publication and given Letter- Specified by:
handleCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
sb- the StringBuffer to updatectxMenu- the instance of the context menu created during initial request.pub- the working publicationletter- the current letterstatus- preious plugin's status- Returns:
- int the status MENU_SKIPPED, MENU_ENABLED, MENU_DISABLED
-
handleCtxMenuItems
public int handleCtxMenuItems(StringBuffer sb, MemberCtxMenu ctxMenu, Member mbr, char letter, int status) Description copied from interface:CtxMenuPolicyFilterHandle the current StringBuffer to append custom content for the given Member and given Letter- Specified by:
handleCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
sb- the StringBuffer to updatectxMenu- the instance of the context menu created during initial request.mbr- the working memberletter- the current letterstatus- preious plugin's status- Returns:
- int the status MENU_SKIPPED, MENU_ENABLED, MENU_DISABLED
-
handleCtxMenuItems
public int handleCtxMenuItems(StringBuffer sb, GroupCtxMenu ctxMenu, Group grp, char letter, int status) Description copied from interface:CtxMenuPolicyFilterHandle the current StringBuffer to append custom content for the given Member and given Letter- Specified by:
handleCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
sb- the StringBuffer to updatectxMenu- the instance of the context menu created during initial request.grp- the working groupletter- the current letterstatus- preious plugin's status- Returns:
- int the status MENU_SKIPPED, MENU_ENABLED, MENU_DISABLED
-
handleCtxMenuItems
Description copied from interface:CtxMenuPolicyFilterHandle the current StringBuffer to append custom content for the given Publication- Specified by:
handleCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
sb- the StringBuffer to updatectxMenu- the instance of the context menu created during initial request.pub- the working publication
-
handleCtxMenuItems
Description copied from interface:CtxMenuPolicyFilterHandle the current StringBuffer to append custom content for the given Member- Specified by:
handleCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
sb- the StringBuffer to updatectxMenu- the instance of the context menu created during initial request.mbr- the working member
-
handleCtxMenuItems
Description copied from interface:CtxMenuPolicyFilterHandle the current StringBuffer to append custom content for the given Member- Specified by:
handleCtxMenuItemsin interfaceCtxMenuPolicyFilter- Parameters:
sb- the StringBuffer to updatectxMenu- the instance of the context menu created during initial request.grp- the working group
-