info.magnolia.module.forum.app.availability
Class UnlockableRule

java.lang.Object
  extended by info.magnolia.module.forum.app.availability.UnlockableRule
All Implemented Interfaces:
info.magnolia.ui.api.availability.AvailabilityRule
Direct Known Subclasses:
LockableRule

public class UnlockableRule
extends Object
implements info.magnolia.ui.api.availability.AvailabilityRule

This rule - an AvailabilityRule - checks whether an Item can be unlocked. The item must be of type forum or thread and cannot be locked, yet.


Constructor Summary
UnlockableRule()
           
 
Method Summary
protected  boolean canChangeLockState(javax.jcr.Node node)
           
 boolean isAvailable(Collection<?> itemIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnlockableRule

public UnlockableRule()
Method Detail

isAvailable

public boolean isAvailable(Collection<?> itemIds)
Specified by:
isAvailable in interface info.magnolia.ui.api.availability.AvailabilityRule

canChangeLockState

protected boolean canChangeLockState(javax.jcr.Node node)


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