public final class QueryAndContainerCommonMethods extends Object
Query
and QueryContainer
Modifier | Constructor and Description |
---|---|
private |
QueryAndContainerCommonMethods() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canMoveTo(AmetysObject newParent,
SimpleAmetysObject queryOrQueryContainer,
QueryDAO queryDAO)
Implementation of
MovableAmetysObject.canMoveTo(AmetysObject) |
static void |
moveTo(AmetysObject newParent,
boolean renameIfExist,
SimpleAmetysObject queryOrQueryContainer)
Implementation of
MovableAmetysObject.moveTo(AmetysObject, boolean) |
static void |
orderBefore(AmetysObject siblingNode,
SimpleAmetysObject queryOrQueryContainer)
Implementation of
MovableAmetysObject.orderBefore(AmetysObject) |
private QueryAndContainerCommonMethods()
public static boolean canMoveTo(AmetysObject newParent, SimpleAmetysObject queryOrQueryContainer, QueryDAO queryDAO) throws AmetysRepositoryException
MovableAmetysObject.canMoveTo(AmetysObject)
newParent
- See moveTo.queryOrQueryContainer
- The object to movequeryDAO
- The Query DAOAmetysRepositoryException
- if an error occurs.public static void moveTo(AmetysObject newParent, boolean renameIfExist, SimpleAmetysObject queryOrQueryContainer) throws AmetysRepositoryException, RepositoryIntegrityViolationException
MovableAmetysObject.moveTo(AmetysObject, boolean)
newParent
- The new parent for the current object. Can not be null. Can not be a child of the current node. Must be a TraversableAmetyObject.renameIfExist
- true to rename moved page if a page with same name already existqueryOrQueryContainer
- The object to moveAmetysRepositoryException
- if an error occurs.RepositoryIntegrityViolationException
- if a page with the same name already exists.public static void orderBefore(AmetysObject siblingNode, SimpleAmetysObject queryOrQueryContainer) throws AmetysRepositoryException
MovableAmetysObject.orderBefore(AmetysObject)
siblingNode
- The node that will be the next sibling node of the current node. Must have the same parent as the current node. Can be null to set the current node as the last node.queryOrQueryContainer
- The object to moveAmetysRepositoryException
- if an error occurs.