org.opencms.workplace.explorer.menu
Class CmsMirContainerPageActiveAndFileAvailable

java.lang.Object
  extended by org.opencms.workplace.explorer.menu.A_CmsMenuItemRule
      extended by org.opencms.workplace.explorer.menu.CmsMirContainerPageActive
          extended by org.opencms.workplace.explorer.menu.CmsMirContainerPageActiveAndFileAvailable
All Implemented Interfaces:
I_CmsMenuItemRule

public class CmsMirContainerPageActiveAndFileAvailable
extends CmsMirContainerPageActive

A menu item rule which checks whether the file given by the 'filename' attribute in the CmsExplorerContextMenuItem's parameters (after macro expansion) exists and is writable by the current user.


Field Summary
static org.apache.commons.logging.Log LOG
          The logger instance for this class.
 
Fields inherited from interface org.opencms.workplace.explorer.menu.I_CmsMenuItemRule
ATTR_CONTEXT_INFO, CONTEXT_CONTAINERPAGE, CONTEXT_EDITPROVIDER, CONTEXT_SITEMAP
 
Constructor Summary
CmsMirContainerPageActiveAndFileAvailable()
           
 
Method Summary
 CmsMenuItemVisibilityMode getVisibility(CmsObject cms, CmsResourceUtil[] resourceUtil, CmsExplorerContextMenuItem menuItem)
          Gets the visibility depending on resource utilities and the current menu item data.
 
Methods inherited from class org.opencms.workplace.explorer.menu.CmsMirContainerPageActive
getVisibility, matches
 
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

LOG

public static final org.apache.commons.logging.Log LOG
The logger instance for this class.

Constructor Detail

CmsMirContainerPageActiveAndFileAvailable

public CmsMirContainerPageActiveAndFileAvailable()
Method Detail

getVisibility

public CmsMenuItemVisibilityMode getVisibility(CmsObject cms,
                                               CmsResourceUtil[] resourceUtil,
                                               CmsExplorerContextMenuItem menuItem)
Description copied from class: A_CmsMenuItemRule
Gets the visibility depending on resource utilities and the current menu item data.

Overrides:
getVisibility in class A_CmsMenuItemRule
Parameters:
cms - the CMS context
resourceUtil - the resource utilities
menuItem - the context menu item
Returns:
the visibility
See Also:
A_CmsMenuItemRule.getVisibility(org.opencms.file.CmsObject, org.opencms.workplace.explorer.CmsResourceUtil[], org.opencms.workplace.explorer.CmsExplorerContextMenuItem)