Package org.glassfish.admingui.plugin

Examples of org.glassfish.admingui.plugin.IntegrationPoint


    private static int getLowestPriorityNum(List ipList) {
        Iterator iter = ipList.iterator();
            //assuming priority values can only be 1 to 100
            int lowest = 101;
            while (iter.hasNext()) {
                IntegrationPoint iP = (IntegrationPoint) iter.next();
                if (iP.getPriority() < lowest) {
                    lowest = iP.getPriority();
                }
            }

        return lowest;
    }
View Full Code Here


      getSortedIntegrationPoints(getIntegrationPoints(ctx, type));
  if (points != null) {
      Iterator<IntegrationPoint> it = points.iterator();
      if (it.hasNext()) {
    // Get the first one...
    IntegrationPoint point = it.next();
    root = getIntegrationPointParent(ctx, root, point);

    // Check to see if IP points to an external URL...
    if (point.getContent().lastIndexOf("://", 15) != -1) {
        // Treat content as a url...
        URL contentURL = FileUtil.searchForFile(
          point.getContent(), null);
        if (contentURL == null) {
      throw new IOException("Unable to locate file: "
        + point.getContent());
        }

        // Read the content...
        String content = new String(FileUtil.readFromURL(contentURL));
View Full Code Here

      // No root is specified, search whole page
      root = ctx.getViewRoot();
  }

  // Iterate
  IntegrationPoint point;
  Iterator<IntegrationPoint> it = null;
  int lastSize = 0;
  int currSize = points.size();
  String parentId = null;
  String lastParentId = null;
  while (currSize != lastSize) {
      // Stop loop by comparing previous size
      lastSize = currSize;
      it = points.iterator();
      lastParentId = "";
      UIComponent parent = root;

      // Iterate through the IntegrationPoints
      while (it.hasNext()) {
    point = it.next();

    // Optimize for multiple plugins for the same parent
    parentId = point.getParentId();
    // Resolve any EL that may be used in identifying the parent ID
    parentId = (String) ComponentUtil.getInstance(ctx).resolveValue(ctx, null, root, parentId);
    if ((parentId == null) || !parentId.equals(lastParentId)) {
        // New parent (or root -- null)
        parent = getIntegrationPointParent(ctx, root, point);
View Full Code Here

TOP

Related Classes of org.glassfish.admingui.plugin.IntegrationPoint

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.