info.magnolia.ui.contentapp.movedialog.predicate
Class MovePossibilityPredicate
java.lang.Object
info.magnolia.ui.contentapp.movedialog.predicate.MovePossibilityPredicate
- Direct Known Subclasses:
- MoveAfterPossibilityPredicate, MoveBeforePossibilityPredicate, MoveInsidePossibilityPredicate
public class MovePossibilityPredicate
- extends Object
Checks whether it is possible to place the collection of nodes relatively to the tested node.
Method Summary |
protected boolean |
basicMoveCheck(javax.jcr.Item source,
javax.jcr.Item target)
Perform basic check. |
protected boolean |
checkItem(com.vaadin.data.Item item,
com.vaadin.data.Item hostCandidate)
|
protected boolean |
hostIsRoot(com.vaadin.data.Item hostCandidate)
|
boolean |
isMovePossible(com.vaadin.data.Item hostCandidate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
constraint
protected DropConstraint constraint
MovePossibilityPredicate
protected MovePossibilityPredicate(DropConstraint constraint,
List<? extends com.vaadin.data.Item> candidates)
isMovePossible
public boolean isMovePossible(com.vaadin.data.Item hostCandidate)
checkItem
protected boolean checkItem(com.vaadin.data.Item item,
com.vaadin.data.Item hostCandidate)
hostIsRoot
protected boolean hostIsRoot(com.vaadin.data.Item hostCandidate)
basicMoveCheck
protected boolean basicMoveCheck(javax.jcr.Item source,
javax.jcr.Item target)
throws javax.jcr.RepositoryException
- Perform basic check.
- Throws:
javax.jcr.RepositoryException
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.