Class CapabilityRenderCondition

  • All Implemented Interfaces:
    RenderCondition

    public class CapabilityRenderCondition
    extends java.lang.Object
    implements RenderCondition
    A condition that decides based on Session.hasCapability(String, Object, Object[]).
    • Constructor Summary

      Constructors 
      Constructor Description
      CapabilityRenderCondition​(javax.jcr.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()
      Returns true if the component should be rendered; false otherwise.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CapabilityRenderCondition

        public CapabilityRenderCondition​(javax.jcr.Session session,
                                         java.lang.String[] paths,
                                         java.lang.String[] methods)
                                  throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
    • Method Detail

      • check

        public boolean check()
                      throws javax.servlet.ServletException
        Description copied from interface: RenderCondition
        Returns true if the component should be rendered; false otherwise.
        Specified by:
        check in interface RenderCondition
        Returns:
        true if the component should be rendered, false otherwise
        Throws:
        javax.servlet.ServletException - in case a servlet error occurs