Class CapabilityRenderCondition
- java.lang.Object
-
- com.adobe.cq.msm.ui.rendercondition.CapabilityRenderCondition
-
- All Implemented Interfaces:
RenderCondition
public class CapabilityRenderCondition extends java.lang.Object implements RenderCondition
A condition that decides based onSession.hasCapability(String, Object, Object[])
.
-
-
Constructor Summary
Constructors Constructor Description CapabilityRenderCondition(Session session, java.lang.String[] paths, java.lang.String[] methods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check()
Returnstrue
if the component should be rendered;false
otherwise.
-
-
-
Constructor Detail
-
CapabilityRenderCondition
public CapabilityRenderCondition(Session session, java.lang.String[] paths, java.lang.String[] methods) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
check
public boolean check() throws ServletException
Description copied from interface:RenderCondition
Returnstrue
if the component should be rendered;false
otherwise.- Specified by:
check
in interfaceRenderCondition
- Returns:
true
if the component should be rendered,false
otherwise- Throws:
ServletException
- in case a servlet error occurs
-
-