Package pt.webdetails.cdf.dd

Examples of pt.webdetails.cdf.dd.DashboardManager


  private void saveCgg( IUserContentAccess access, String cdeRelFilePath )
    throws ThingReadException, UnsupportedThingException, ThingWriteException {
    String wcdfFilePath = cdeRelFilePath.replace( ".cdfde", ".wcdf" );

    // Obtain an UPDATED dashboard object
    DashboardManager dashMgr = DashboardManager.getInstance();
    Dashboard dash = dashMgr.getDashboard( wcdfFilePath, /*bypassCacheRead*/false );

    CggRunJsThingWriterFactory cggWriteFactory = new CggRunJsThingWriterFactory();
    IThingWriter cggDashWriter = cggWriteFactory.getWriter( dash );
    CggRunJsDashboardWriteContext cggDashContext = new CggRunJsDashboardWriteContext( cggWriteFactory, dash );
    cggDashWriter.write( access, cggDashContext, dash );
View Full Code Here


  private void saveCgg( IRWAccess access, String cdeRelFilePath )
    throws ThingReadException, UnsupportedThingException, ThingWriteException {
    String wcdfFilePath = cdeRelFilePath.replace( ".cdfde", ".wcdf" );

    // Obtain an UPDATED dashboard object
    DashboardManager dashMgr = DashboardManager.getInstance();
    Dashboard dash = dashMgr.getDashboard( wcdfFilePath, /*bypassCacheRead*/false );

    CggRunJsThingWriterFactory cggWriteFactory = new CggRunJsThingWriterFactory();
    IThingWriter cggDashWriter = cggWriteFactory.getWriter( dash );
    CggRunJsDashboardWriteContext cggDashContext = new CggRunJsDashboardWriteContext( cggWriteFactory, dash );
    cggDashWriter.write( access, cggDashContext, dash );
View Full Code Here

            new HashMap<String, CdfRunJsDashboardWriteResult>();
   
    Dashboard dashboard = this._context.getDashboard();
    if(dashboard.getRegularCount() > 0)
    {
      DashboardManager dashMgr = DashboardManager.getInstance();
      CdfRunJsDashboardWriteOptions options = this._context.getOptions();
     
      Iterable<Component> components = dashboard.getRegulars();
      for(Component comp : components)
      {
        if(StringUtils.isNotEmpty(comp.getName()) && comp instanceof WidgetComponent)
        {
          WidgetComponent widgetComp = (WidgetComponent)comp;
         
          CdfRunJsDashboardWriteOptions childOptions = options
                  .addAliasPrefix(comp.getName()); // <-- NOTE:!
         
          CdfRunJsDashboardWriteResult dashResult = null;
          try
          {
            dashResult = dashMgr.getDashboardCdfRunJs(
                    widgetComp.getWcdfPath(),
                    childOptions,
                    this._context.isBypassCacheRead());
          }
          catch (ThingWriteException ex)
View Full Code Here

  }
 
  public void write(StringBuilder out, CdfRunJsDashboardWriteContext context, WidgetComponent comp) throws ThingWriteException
  {
    //WidgetComponentType compType = comp.getMeta();
    DashboardManager dashMgr = DashboardManager.getInstance();
   
    CdfRunJsDashboardWriteOptions options = context.getOptions()
            .addAliasPrefix(comp.getName()); // <-- NOTE:!
   
    String newAliasPrefix = options.getAliasPrefix();
   
    CdfRunJsDashboardWriteResult dashResult = dashMgr.getDashboardCdfRunJs(
          comp.getWcdfPath(),
          options,
          context.isBypassCacheRead());
   
    out.append(dashResult.getComponents());
View Full Code Here

TOP

Related Classes of pt.webdetails.cdf.dd.DashboardManager

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.