info.magnolia.ui.api.availability
Class AbstractAvailabilityRule

java.lang.Object
  extended by info.magnolia.ui.api.availability.AbstractAvailabilityRule
All Implemented Interfaces:
AvailabilityRule
Direct Known Subclasses:
HasVersionsRule, IsDeletedRule, IsNotCurrentUserRule, IsNotDeletedRule, IsNotVersionedDetailLocationRule, IsNotVersionedRule, PageHasSubpagesAndIsNotDeletedRule, PageHasSubpagesRule

public abstract class AbstractAvailabilityRule
extends Object
implements AvailabilityRule

Abstract rule class.


Constructor Summary
AbstractAvailabilityRule()
           
 
Method Summary
 boolean isAvailable(javax.jcr.Item... items)
          Returns true if the availability subject (e.g.
protected abstract  boolean isAvailableForItem(javax.jcr.Item item)
          This method defines the actual evaluation logic for one item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAvailabilityRule

public AbstractAvailabilityRule()
Method Detail

isAvailable

public boolean isAvailable(javax.jcr.Item... items)
Description copied from interface: AvailabilityRule
Returns true if the availability subject (e.g. action) is available for the specified items (root node is represented by a null value in the array).

Specified by:
isAvailable in interface AvailabilityRule

isAvailableForItem

protected abstract boolean isAvailableForItem(javax.jcr.Item item)
This method defines the actual evaluation logic for one item.



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