public abstract class A_CmsSimpleVisibilityCheck extends java.lang.Object implements I_CmsHasMenuItemVisibility
This class automatically handles the case where multiple resources are passed to the getVisibilityMethod. You just need to implement the getSingleVisibility method in subclasses.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_singleResourceOnly
Flag to indicate that the check should not match multiple resources.
|
| Constructor and Description |
|---|
A_CmsSimpleVisibilityCheck() |
| Modifier and Type | Method and Description |
|---|---|
abstract CmsMenuItemVisibilityMode |
getSingleVisibility(CmsObject cms,
CmsResource resource)
Computes visibility of the menu item for a single resource.
|
CmsMenuItemVisibilityMode |
getVisibility(CmsObject cms,
java.util.List<CmsResource> resources)
Gets the visibility for the current resource and CMS context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVisibilityprotected boolean m_singleResourceOnly
public A_CmsSimpleVisibilityCheck()
public abstract CmsMenuItemVisibilityMode getSingleVisibility(CmsObject cms, CmsResource resource)
cms - the CMS context to useresource - the resource to checkpublic CmsMenuItemVisibilityMode getVisibility(CmsObject cms, java.util.List<CmsResource> resources)
I_CmsHasMenuItemVisibilitygetVisibility in interface I_CmsHasMenuItemVisibilitycms - the CMS context to useresources - the list of resources to checkI_CmsHasMenuItemVisibility.getVisibility(org.opencms.file.CmsObject, java.util.List)