Package com.hlcl.rql.util.as

Examples of com.hlcl.rql.util.as.PageArrayList


   *            verschiebt jede child page an das Ende der Liste (nicht für automatisch sortierte verwendbar)
   */
  public void moveAllChildsTo(MultiLink targetMultiLink, boolean addAtBottom) throws RQLException {

    // first connect to new multi link
    PageArrayList childs = getChildPages();
    for (int i = 0; i < childs.size(); i++) {
      Page child = (Page) childs.get(i);
      targetMultiLink.connectToExistingPage(child, addAtBottom);
    }

    // disconnect all childs from here
    disconnectAllChilds(childs);
View Full Code Here


   * @throws WrongSortModeException,NoChildException
   */
  public void moveChildPage(Page childPage, MultiLink targetMultiLink, boolean addAtBottom, boolean setMainLink) throws RQLException {

    // check is really child
    PageArrayList checkChilds = getChildPages();
    if (!checkChilds.contains(childPage)) {
      throw new NoChildException("The page " + childPage.getHeadlineAndId() + " is not a child of this multi link " + name
          + " on page " + getPage().getHeadlineAndId() + ".");
    }
    // do it
    moveChildPagePrimitive(childPage, targetMultiLink, addAtBottom);
View Full Code Here

   * @throws WrongSortModeException,NoChildException
   */
  public void moveChildPage(Page childPage, MultiLink targetMultiLink, boolean addAtBottom) throws RQLException {

    // check is really child
    PageArrayList checkChilds = getChildPages();
    if (!checkChilds.contains(childPage)) {
      throw new NoChildException("The page " + childPage.getHeadlineAndId() + " is not a child of this multi link " + name
          + " on page " + getPage().getHeadlineAndId() + ".");
    }
    // do it
    moveChildPagePrimitive(childPage, targetMultiLink, addAtBottom);
View Full Code Here

   * Die Seiten an targetMultiLink werden nicht absteigend sortiert!
   */
  public int moveChildrenWithStandardFieldDateValueBeforTo(ReddotDate marginDate, String standardFieldDateTmpltElemName,
      MultiLink targetMultiLink) throws RQLException {
    // get
    PageArrayList toMove = getChildPages().selectAllPagesWithStandardFieldDateValueBefore(marginDate,
        standardFieldDateTmpltElemName);
    // connect
    targetMultiLink.connectToExistingPages(toMove, false, true);
    // disconnect
    disconnectChildren(toMove);

    return toMove.size();
  }
View Full Code Here

  /**
   * Verschiebt alle Seiten deren Überschrift mit dem gegebenen Prefix beginnen ans Ende dieser Liste.
   */
  @SuppressWarnings("unchecked")
  public void movePagesHeadlineStartsWithToLastPosition(String prefix) throws RQLException {
    PageArrayList allChildren = getChildPages();
    PageArrayList prefixPages = allChildren.selectAllPagesHeadlineStartsWith(prefix);

    // build new order of collection
    allChildren.removeAll(prefixPages);
    allChildren.addAll(prefixPages);
    changeOrder(allChildren);
View Full Code Here

  public PageArrayList sortChangeableChildrenByDateDesc(String standardFieldDateTmpltElemName) throws RQLException {

    // create comparator and sort
    StandardFieldDatePageComparator comparator = new StandardFieldDatePageComparator(standardFieldDateTmpltElemName);
    comparator.forceDescendingOrdering();
    PageArrayList sortedChilds = getChangeableChildPages().sort(comparator);

    // update cms
    changeOrder(sortedChilds);

    return sortedChilds;
View Full Code Here

   * Sortiert alle Kindseiten dieses MultiLinks nach dem gegebenen comparator.
   *
   * @return returns die sortierte Liste der Kindseiten
   */
  public PageArrayList sortChilds(PageComparator comparator) throws RQLException {
    PageArrayList sortedChilds = getChildPages().sort(comparator);
    changeOrder(sortedChilds);
    return sortedChilds;
  }
View Full Code Here

   */
  public PageArrayList sortChildsByDateAsc(String standardFieldDateTmpltElemName) throws RQLException {

    // create comparator and sort
    StandardFieldDatePageComparator comparator = new StandardFieldDatePageComparator(standardFieldDateTmpltElemName);
    PageArrayList sortedChilds = getChildPages().sort(comparator);

    // update cms
    changeOrder(sortedChilds);

    return sortedChilds;
View Full Code Here

  public PageArrayList sortChildsByDateDesc(String standardFieldDateTmpltElemName) throws RQLException {

    // create comparator and sort
    StandardFieldDatePageComparator comparator = new StandardFieldDatePageComparator(standardFieldDateTmpltElemName);
    comparator.forceDescendingOrdering();
    PageArrayList sortedChilds = getChildPages().sort(comparator);

    // update cms
    changeOrder(sortedChilds);

    return sortedChilds;
View Full Code Here

  public PageArrayList sortChildsByDateDescAndHeadlineAsc(String standardFieldDateTmpltElemName) throws RQLException {

    // create comparator and sort in default order
    StandardFieldDateDescAndHeadlineAscPageComparator comparator = new StandardFieldDateDescAndHeadlineAscPageComparator(
        standardFieldDateTmpltElemName);
    PageArrayList sortedChilds = getChildPages().sort(comparator);

    // update cms
    changeOrder(sortedChilds);

    return sortedChilds;
View Full Code Here

TOP

Related Classes of com.hlcl.rql.util.as.PageArrayList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.