info.magnolia.module.forum.app.availability
Class UnlockableRule
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnlockableRule
public UnlockableRule()
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.