|
||||||
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.CmsMirPrSameLockedActiveNotDeletedAl
public class CmsMirPrSameLockedActiveNotDeletedAl
Defines a menu item rule that sets the visibility to active if the current resource is not deleted or inactive if the current resource is deleted and locked by the current user.
Constructor Summary | |
---|---|
CmsMirPrSameLockedActiveNotDeletedAl()
|
Method Summary | |
---|---|
CmsMenuItemVisibilityMode |
getVisibility(CmsObject cms,
CmsResourceUtil[] resourceUtil)
Returns the visibility for the menu item. |
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 |
Constructor Detail |
---|
public CmsMirPrSameLockedActiveNotDeletedAl()
Method Detail |
---|
public CmsMenuItemVisibilityMode getVisibility(CmsObject cms, CmsResourceUtil[] resourceUtil)
I_CmsMenuItemRule
The possible visibilities are:
CmsMenuItemVisibilityMode.VISIBILITY_ACTIVE
menu item is activeCmsMenuItemVisibilityMode.VISIBILITY_INACTIVE
menu item is inactive (greyed out)CmsMenuItemVisibilityMode.VISIBILITY_INVISIBLE
menu item is invisible
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 checked
I_CmsMenuItemRule.getVisibility(org.opencms.file.CmsObject, CmsResourceUtil[])
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 |