info.magnolia.pages.app.availability
Class PageHasSubpagesAndIsNotDeletedRule

java.lang.Object
  extended by info.magnolia.ui.api.availability.AbstractAvailabilityRule
      extended by info.magnolia.pages.app.availability.PageHasSubpagesAndIsNotDeletedRule
All Implemented Interfaces:
AvailabilityRule

public class PageHasSubpagesAndIsNotDeletedRule
extends AbstractAvailabilityRule

This rule returns true, if the item is node of the mgnl:page type, has a subnode of the same type, and is not deleted (i.e. has not the mgnl:deleted mixin type).


Constructor Summary
PageHasSubpagesAndIsNotDeletedRule()
           
 
Method Summary
 boolean isAvailableForItem(javax.jcr.Item item)
          This method defines the actual evaluation logic for one item.
 
Methods inherited from class info.magnolia.ui.api.availability.AbstractAvailabilityRule
isAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageHasSubpagesAndIsNotDeletedRule

public PageHasSubpagesAndIsNotDeletedRule()
Method Detail

isAvailableForItem

public boolean isAvailableForItem(javax.jcr.Item item)
Description copied from class: AbstractAvailabilityRule
This method defines the actual evaluation logic for one item.

Specified by:
isAvailableForItem in class AbstractAvailabilityRule


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.