Package org.aperteworkflow.ui.view

Examples of org.aperteworkflow.ui.view.ViewRegistry


    return new String[]{};
  }

  private Collection<GenericPortletViewRenderer> getRegisteredViews() {
    ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
    ViewRegistry viewRegistry = ctx.getRegistry().getRegisteredService(ViewRegistry.class);
    return viewRegistry.getGenericPortletViews(PortletKeys.USER);
  }
View Full Code Here


    Button button = refreshIcon(application, refreshable);
    return button;
  }

  protected List<GenericPortletViewRenderer> getPermittedRenderers() {
    ViewRegistry viewRegistry = getThreadProcessToolContext().getRegistry().getRegisteredService(ViewRegistry.class);
    List<GenericPortletViewRenderer> permittedViews = new ArrayList<GenericPortletViewRenderer>();

    for (GenericPortletViewRenderer renderer : viewRegistry.getGenericPortletViews(portletKey)) {
      if (isPermitted(renderer)) {
        permittedViews.add(renderer);
      }
    }
View Full Code Here

      }
    });

    // to remove "strange" views, depending on external addons. Such
    // approach also gives us much greater flexibility
    ViewRegistry registeredService = ProcessToolContext.Util.getThreadProcessToolContext().getRegistry().getRegisteredService(ViewRegistry.class);
    if(registeredService != null)
    {
      for(final ViewRenderer viewRenderer: registeredService.getViews())
      {
        viewRenderer.setBpmSession(getBpmSession());
        viewRenderer.setUp(application);
        viewRenderer.setViewCallback(this);
        viewController.addView(viewRenderer);
View Full Code Here

* @author tlipski@bluesoft.net.pl
*/
public class HistoryViewBundleActivator implements BundleActivator {
    @Override
    public void start(BundleContext bundleContext) throws Exception {
    ViewRegistry registeredService = getViewRegistry(bundleContext);
    if (registeredService != null) {
            registeredService.registerView(ViewGeneratingFunction.INSTANCE);
        }
    }
View Full Code Here

        }
    }

  @Override
    public void stop(BundleContext bundleContext) throws Exception {
    ViewRegistry registeredService = getViewRegistry(bundleContext);
    if (registeredService != null) {
      registeredService.unregisterView(ViewGeneratingFunction.INSTANCE);
    }
    }
View Full Code Here

TOP

Related Classes of org.aperteworkflow.ui.view.ViewRegistry

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.