info.magnolia.ui.contentapp.movedialog.predicate
Class MovePossibilityPredicate

java.lang.Object
  extended by 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.


Field Summary
protected  DropConstraint constraint
           
 
Constructor Summary
protected MovePossibilityPredicate(DropConstraint constraint, List<? extends com.vaadin.data.Item> candidates)
           
 
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
 

Field Detail

constraint

protected DropConstraint constraint
Constructor Detail

MovePossibilityPredicate

protected MovePossibilityPredicate(DropConstraint constraint,
                                   List<? extends com.vaadin.data.Item> candidates)
Method Detail

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.