|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.explorer.menu.A_CmsMenuItemRule
org.opencms.workplace.explorer.menu.CmsMirSubStandard
public class CmsMirSubStandard
Defines a menu item rule for the sub menu generation that checks the visibility of the sub items to show.
Field Summary | |
---|---|
static java.lang.String |
RULE_NAME
The name of the standard rule set used for sub context menu entries. |
Constructor Summary | |
---|---|
CmsMirSubStandard()
|
Method Summary | |
---|---|
CmsMenuItemVisibilityMode |
getVisibility(CmsObject cms,
CmsResourceUtil[] resourceUtil,
I_CmsMenuItemRule[] rule)
Returns the visibility for the menu item, depending on the resource utilities and menu item rules. |
boolean |
matches(CmsObject cms,
CmsResourceUtil[] resourceUtil)
Returns if the rule for the menu item should be applied or not. |
Methods inherited from class org.opencms.workplace.explorer.menu.A_CmsMenuItemRule |
---|
getVisibility |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RULE_NAME
Constructor Detail |
---|
public CmsMirSubStandard()
Method Detail |
---|
public CmsMenuItemVisibilityMode getVisibility(CmsObject cms, CmsResourceUtil[] resourceUtil, I_CmsMenuItemRule[] rule)
I_CmsMenuItemRule
getVisibility
in interface I_CmsMenuItemRule
getVisibility
in class A_CmsMenuItemRule
cms
- the current OpenCms user contextresourceUtil
- the initialized resource utilities for which the menu item visibility is checkedrule
- the rules which are checked for visibility
I_CmsMenuItemRule.getVisibility(org.opencms.file.CmsObject, org.opencms.workplace.explorer.CmsResourceUtil[], org.opencms.workplace.explorer.menu.I_CmsMenuItemRule[])
public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil)
I_CmsMenuItemRule
cms
- the current OpenCms user contextresourceUtil
- the initialized resource utilities for which the menu item rule is checked
I_CmsMenuItemRule.matches(org.opencms.file.CmsObject, CmsResourceUtil[])
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |