public class BasicCtxMenuPolicyFilter extends AbstractPolicyFilter implements CtxMenuPolicyFilter, PluginComponent
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
REVISION  | 
orderDISABLED, FLAG_CADDY, FLAG_DELETE, FLAG_EDIT, FLAG_EXPORT, FLAG_INSPECT, FLAG_SEPARATOR, INFO_ICON, MENU_DISABLED, MENU_ENABLED, MENU_SKIPPED, NO_ICON| Constructor and Description | 
|---|
BasicCtxMenuPolicyFilter()  | 
| Modifier and Type | Method and Description | 
|---|---|
char[] | 
checkCtxMenuItems(CategoryCtxMenu ctxMenu,
                 Category cat,
                 char[] letters)
Checks the processed contextual menu 
 | 
char[] | 
checkCtxMenuItems(MemberCtxMenu ctxMenu,
                 Member mbr,
                 char[] letters)
Checks the processed contextual menu 
 | 
char[] | 
checkCtxMenuItems(PublicationCtxMenu ctxMenu,
                 Publication pub,
                 char[] letters)
Checks the processed contextual menu 
 | 
char[] | 
checkCtxMenuItems(WidgetCtxMenu ctxMenu,
                 java.lang.String menuItems,
                 java.lang.String chooserType,
                 java.lang.String chooserId,
                 char[] letters)
Checks the processed contextual menu 
 | 
void | 
handleCtxMenuItems(java.lang.StringBuffer sb,
                  CategoryCtxMenu ctxMenu,
                  Category cat)
Handle the current StringBuffer to append custom content
 for the given Category 
 | 
int | 
handleCtxMenuItems(java.lang.StringBuffer sb,
                  CategoryCtxMenu ctxMenu,
                  Category cat,
                  char letter,
                  int status)
Handle the current StringBuffer to append custom content
 for the given Category and given Letter 
 | 
void | 
handleCtxMenuItems(java.lang.StringBuffer sb,
                  MemberCtxMenu ctxMenu,
                  Member mbr)
Handle the current StringBuffer to append custom content
 for the given Member 
 | 
int | 
handleCtxMenuItems(java.lang.StringBuffer sb,
                  MemberCtxMenu ctxMenu,
                  Member mbr,
                  char letter,
                  int status)
Handle the current StringBuffer to append custom content
 for the given Member and given Letter 
 | 
void | 
handleCtxMenuItems(java.lang.StringBuffer sb,
                  PublicationCtxMenu ctxMenu,
                  Publication pub)
Handle the current StringBuffer to append custom content
 for the given Publication 
 | 
int | 
handleCtxMenuItems(java.lang.StringBuffer sb,
                  PublicationCtxMenu ctxMenu,
                  Publication pub,
                  char letter,
                  int status)
Handle the current StringBuffer to append custom content
 for the given Publication and given Letter 
 | 
void | 
handleCtxMenuItems(java.lang.StringBuffer sb,
                  WidgetCtxMenu ctxMenu,
                  java.lang.String menuItems,
                  java.lang.String chooserType,
                  java.lang.String chooserId)
Handle the current StringBuffer to append custom content
 for the given Member 
 | 
int | 
handleCtxMenuItems(java.lang.StringBuffer sb,
                  WidgetCtxMenu ctxMenu,
                  java.lang.String menuItems,
                  java.lang.String chooserType,
                  java.lang.String chooserId,
                  char letter,
                  int status)
Handle the current StringBuffer to append custom content
 for the given Member and given Letter 
 | 
boolean | 
init(Plugin plugin)
Initialize the component with the given plugin configuration 
 | 
void | 
initCtxMenu(MemberCtxMenu ctxMenu,
           JcmsJspContext jcmsContext)
Initialize the contextual menu. 
This method is called when the Context Menu object class is created.  | 
void | 
initCtxMenu(PublicationCtxMenu ctxMenu,
           JcmsJspContext jcmsContext)
Initialize the contextual menu. 
This method is called when the Context Menu object class is created.  | 
void | 
initCtxMenu(WidgetCtxMenu ctxMenu,
           JcmsJspContext jcmsContext)
Initialize the contextual menu. 
This method is called when the Context Menu object class is created.  | 
compareTo, equals, getOrder, setOrderpublic static final java.lang.String REVISION
public boolean init(Plugin plugin)
PluginComponentinit in interface PluginComponentplugin - the calling pluginPluginComponent.init(Plugin)public void initCtxMenu(PublicationCtxMenu ctxMenu, JcmsJspContext jcmsContext)
CtxMenuPolicyFilterinitCtxMenu in interface CtxMenuPolicyFilterctxMenu - the instance of the context menu created during initial request.jcmsContext - the JcmsJspContext of the request during which the
        context menu object was created.public void initCtxMenu(MemberCtxMenu ctxMenu, JcmsJspContext jcmsContext)
CtxMenuPolicyFilterinitCtxMenu in interface CtxMenuPolicyFilterctxMenu - the instance of the context menu created during initial request.jcmsContext - the JcmsJspContext of the request during which the
        context menu object was created.public void initCtxMenu(WidgetCtxMenu ctxMenu, JcmsJspContext jcmsContext)
CtxMenuPolicyFilterinitCtxMenu in interface CtxMenuPolicyFilterctxMenu - the instance of the context menu created during initial request.jcmsContext - the JcmsJspContext of the request during which the
        context menu object was created.public char[] checkCtxMenuItems(PublicationCtxMenu ctxMenu, Publication pub, char[] letters)
CtxMenuPolicyFiltercheckCtxMenuItems in interface CtxMenuPolicyFilterctxMenu - the instance of the context menu created during initial request.pub - the working publicationletters - an array of letters describing menus to displaypublic char[] checkCtxMenuItems(CategoryCtxMenu ctxMenu, Category cat, char[] letters)
CtxMenuPolicyFiltercheckCtxMenuItems in interface CtxMenuPolicyFilterctxMenu - the instance of the context menu created during initial request.cat - the working categoryletters - an array of letters describing menus to displaypublic char[] checkCtxMenuItems(MemberCtxMenu ctxMenu, Member mbr, char[] letters)
CtxMenuPolicyFiltercheckCtxMenuItems in interface CtxMenuPolicyFilterctxMenu - the instance of the context menu created during initial request.mbr - the working memberletters - an array of letters describing menus to displaypublic char[] checkCtxMenuItems(WidgetCtxMenu ctxMenu, java.lang.String menuItems, java.lang.String chooserType, java.lang.String chooserId, char[] letters)
CtxMenuPolicyFiltercheckCtxMenuItems in interface CtxMenuPolicyFilterctxMenu - the instance of the context menu created during initial request.letters - an array of letters describing menus to displaypublic int handleCtxMenuItems(java.lang.StringBuffer sb,
                              PublicationCtxMenu ctxMenu,
                              Publication pub,
                              char letter,
                              int status)
CtxMenuPolicyFilterhandleCtxMenuItems in interface CtxMenuPolicyFiltersb - the StringBuffer to updatectxMenu - the instance of the context menu created during initial request.pub - the working publicationletter - the current letterstatus - preious plugin's statuspublic int handleCtxMenuItems(java.lang.StringBuffer sb,
                              CategoryCtxMenu ctxMenu,
                              Category cat,
                              char letter,
                              int status)
CtxMenuPolicyFilterhandleCtxMenuItems in interface CtxMenuPolicyFiltersb - the StringBuffer to updatectxMenu - the instance of the context menu created during initial request.cat - the working categoryletter - the current letterstatus - preious plugin's statuspublic int handleCtxMenuItems(java.lang.StringBuffer sb,
                              MemberCtxMenu ctxMenu,
                              Member mbr,
                              char letter,
                              int status)
CtxMenuPolicyFilterhandleCtxMenuItems in interface CtxMenuPolicyFiltersb - the StringBuffer to updatectxMenu - the instance of the context menu created during initial request.mbr - the working memberletter - the current letterstatus - preious plugin's statuspublic int handleCtxMenuItems(java.lang.StringBuffer sb,
                              WidgetCtxMenu ctxMenu,
                              java.lang.String menuItems,
                              java.lang.String chooserType,
                              java.lang.String chooserId,
                              char letter,
                              int status)
CtxMenuPolicyFilterhandleCtxMenuItems in interface CtxMenuPolicyFiltersb - the StringBuffer to updatectxMenu - the instance of the context menu created during initial request.letter - the current letterstatus - preious plugin's statuspublic void handleCtxMenuItems(java.lang.StringBuffer sb,
                               PublicationCtxMenu ctxMenu,
                               Publication pub)
CtxMenuPolicyFilterhandleCtxMenuItems in interface CtxMenuPolicyFiltersb - the StringBuffer to updatectxMenu - the instance of the context menu created during initial request.pub - the working publicationpublic void handleCtxMenuItems(java.lang.StringBuffer sb,
                               CategoryCtxMenu ctxMenu,
                               Category cat)
CtxMenuPolicyFilterhandleCtxMenuItems in interface CtxMenuPolicyFiltersb - the StringBuffer to updatectxMenu - the instance of the context menu created during initial request.cat - the working categorypublic void handleCtxMenuItems(java.lang.StringBuffer sb,
                               MemberCtxMenu ctxMenu,
                               Member mbr)
CtxMenuPolicyFilterhandleCtxMenuItems in interface CtxMenuPolicyFiltersb - the StringBuffer to updatectxMenu - the instance of the context menu created during initial request.mbr - the working memberpublic void handleCtxMenuItems(java.lang.StringBuffer sb,
                               WidgetCtxMenu ctxMenu,
                               java.lang.String menuItems,
                               java.lang.String chooserType,
                               java.lang.String chooserId)
CtxMenuPolicyFilterhandleCtxMenuItems in interface CtxMenuPolicyFiltersb - the StringBuffer to updatectxMenu - the instance of the context menu created during initial request.Copyright © 2001-2018 Jalios SA. All Rights Reserved.