Package org.apache.jetspeed.layout

Examples of org.apache.jetspeed.layout.PortletPlacementException


      }
      else
      {
        if ( ! nextTarget.getId().equals( rootFragment.getId() ) )
        {
          throw new PortletPlacementException( "Cannot determine complete nested structure for fragment " + targetFragment.getId() );
        }
        nextTarget = null;
      }
    }
    while ( nextTarget != null );
View Full Code Here


        log.error( "getFragmentOnNewPage failure to locate fragment on new page (index=" + i + ") :" + eol + this.toString() + ( placement != null ? ( eol + placement.dumpFragments(null) ) : "" ) + eol, ex );
        throw ex;
     
        if ( nextFragment == null )
      {
        throw new PortletPlacementException( "Cannot locate copy of fragment " + targetFragment.getId() + " in the new page structure :" + eol + this.toString() + ( placement != null ? ( eol + placement.dumpFragments(null) ) : "" ));
      }
    }
    return nextFragment;
  }
View Full Code Here

    {
        if ( container == null )
        {
            container = page.getRootFragment();
            if ( container == null )
              throw new PortletPlacementException( "PortletPlacementContext cannot acquire root layout fragment from page" );
        }       
        if ( ! "layout".equals( container.getType() ) )
        {
          throw new PortletPlacementException( "PortletPlacementContext specified container fragment (" + container.getId() + ") is not a layout fragment, but is type: " + container.getType() );
        }
        this.layoutContainerFragment = container;
       
        int columnCount = PortletPlacementContextImpl.getColumnCountAndSizes( container, registry, null );
        if ( columnCount <= 0 )
        {
          throw new PortletPlacementException( "PortletPlacementContext cannot detemine number of columns in layout fragment (" + container.getId() + ")" );
        }
        this.numberOfColumns = columnCount;
       
        initProcessLayoutContainerFragment();
       
View Full Code Here

    // Do some sanity checking about the request
    if ( col < 0 || col >= this.numberOfColumns )
        {
      if ( suppressExceptions )
        return null;
      throw new PortletPlacementException( "Requested column (" + col + ") is out of bounds (column-count=" + this.numberOfColumns + ")" );
    }
   
    // Get the array list associated with the column
    ArrayList columnArray = this.columnsList[col];
    if ( row < 0 || row >= columnArray.size() )
        {
      if ( suppressExceptions )
        return null;
      throw new PortletPlacementException( "Requested row (" + row + ") is out of bounds (col[" + col + "].row-count=" + columnArray.size() + ")" );
    }
   
    return (Fragment)columnArray.get( row );
  }
View Full Code Here

  public int getNumberRows( int col ) throws PortletPlacementException
    {
    // Sanity check the column
    if ( col < 0 || col >= this.numberOfColumns )
        {
      throw new PortletPlacementException( "Requested column (" + col + ") is out of bounds (column-count=" + this.numberOfColumns + ")" );
    }
    return this.columnsList[col].size();
  }
View Full Code Here

                if(foundFragment != null)
                {
                    out.append(" - found fragment ").append(foundFragment.getId());
                }               
        out.append( ")" );
        throw new PortletPlacementException( out.toString() );
      }
    }
    return fragment;
  }
View Full Code Here

    {
        if ( container == null )
        {
            container = page.getRootFragment();
            if ( container == null )
              throw new PortletPlacementException( "PortletPlacementContext cannot acquire root layout fragment from page" );
        }       
        if ( ! "layout".equals( container.getType() ) )
        {
          throw new PortletPlacementException( "PortletPlacementContext specified container fragment (" + container.getId() + ") is not a layout fragment, but is type: " + container.getType() );
        }
        this.layoutContainerFragment = container;
       
        int columnCount = PortletPlacementMetadataAccess.getColumnCountAndSizes( container, registry, null );
        if ( columnCount <= 0 )
        {
          throw new PortletPlacementException( "PortletPlacementContext cannot detemine number of columns in layout fragment (" + container.getId() + ")" );
        }
        this.numberOfColumns = columnCount;
       
        initProcessLayoutContainerFragment( excludeFragment );
       
View Full Code Here

    // Do some sanity checking about the request
    if ( col < 0 || col >= this.numberOfColumns )
        {
      if ( suppressExceptions )
        return null;
      throw new PortletPlacementException( "Requested column (" + col + ") is out of bounds (column-count=" + this.numberOfColumns + ")" );
    }
   
    // Get the array list associated with the column
    ArrayList columnArray = this.columnsList[col];
    if ( row < 0 || row >= columnArray.size() )
        {
      if ( suppressExceptions )
        return null;
      throw new PortletPlacementException( "Requested row (" + row + ") is out of bounds (col[" + col + "].row-count=" + columnArray.size() + ")" );
    }
   
    return (ContentFragment)columnArray.get( row );
  }
View Full Code Here

  public int getNumberRows( int col ) throws PortletPlacementException
    {
    // Sanity check the column
    if ( col < 0 || col >= this.numberOfColumns )
        {
      throw new PortletPlacementException( "Requested column (" + col + ") is out of bounds (column-count=" + this.numberOfColumns + ")" );
    }
    return this.columnsList[col].size();
  }
View Full Code Here

                if(foundFragment != null)
                {
                    out.append(" - found fragment ").append(foundFragment.getId());
                }               
        out.append( ")" );
        throw new PortletPlacementException( out.toString() );
      }
    }
    return fragment;
  }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.layout.PortletPlacementException

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.