Package edu.uga.galileo.voci.bo

Examples of edu.uga.galileo.voci.bo.VBOTreeNode


    try {
      ArrayList<Community> topLevelCommunities = communityManager
          .getTopLevelCommunities(projectHandle);
      if (topLevelCommunities != null) {
        for (Community topLevelCommunity : topLevelCommunities) {
          rootNodes.add(new VBOTreeNode(topLevelCommunity,
              getSubcommunitiesForCommunity(topLevelCommunity),
              getCollectionsForCommunity(topLevelCommunity),
              getBundlesForCommunity(topLevelCommunity),
              getItemsForCommunity(topLevelCommunity)));
          Collections.sort(rootNodes);
        }
      }

      ArrayList<Collection> topLevelCollections = collectionManager
          .getTopLevelCollections(projectHandle);
      if (topLevelCollections != null) {
        for (Collection topLevelCollection : topLevelCollections) {
          rootNodes.add(new VBOTreeNode(topLevelCollection, null,
              getSubcollectionsForCollection(topLevelCollection),
              getBundlesForCollection(topLevelCollection),
              getItemsForCollection(topLevelCollection)));
          Collections.sort(rootNodes);
        }
View Full Code Here


      if (subcommunities == null) {
        return null;
      } else {
        ArrayList<VBOTreeNode> subcommunityNodes = new ArrayList<VBOTreeNode>();
        for (Community subcommunity : subcommunities) {
          subcommunityNodes.add(new VBOTreeNode(subcommunity,
              getSubcommunitiesForCommunity(subcommunity),
              getCollectionsForCommunity(subcommunity),
              getBundlesForCommunity(subcommunity),
              getItemsForCommunity(subcommunity)));
        }
View Full Code Here

      if (subcollections == null) {
        return null;
      } else {
        ArrayList<VBOTreeNode> subcommunityNodes = new ArrayList<VBOTreeNode>();
        for (Collection subcollection : subcollections) {
          subcommunityNodes.add(new VBOTreeNode(subcollection, null,
              getSubcollectionsForCollection(subcollection),
              getBundlesForCollection(subcollection),
              getItemsForCollection(subcollection)));
        }
        Collections.sort(subcommunityNodes);
View Full Code Here

      if (bundles == null) {
        return null;
      } else {
        ArrayList<VBOTreeNode> bundleNodes = new ArrayList<VBOTreeNode>();
        for (Bundle bundle : bundles) {
          bundleNodes.add(new VBOTreeNode(bundle, null, null, null,
              getItemsForBundle(bundle)));
        }
        Collections.sort(bundleNodes);
        return bundleNodes;
      }
View Full Code Here

      if (subcollections == null) {
        return null;
      } else {
        ArrayList<VBOTreeNode> subcollectionNodes = new ArrayList<VBOTreeNode>();
        for (Collection subcollection : subcollections) {
          subcollectionNodes.add(new VBOTreeNode(subcollection, null,
              getSubcollectionsForCollection(subcollection),
              getBundlesForCollection(subcollection),
              getItemsForCollection(subcollection)));
        }
        Collections.sort(subcollectionNodes);
View Full Code Here

      if (bundles == null) {
        return null;
      } else {
        ArrayList<VBOTreeNode> bundleNodes = new ArrayList<VBOTreeNode>();
        for (Bundle bundle : bundles) {
          bundleNodes.add(new VBOTreeNode(bundle, null, null, null,
              getItemsForBundle(bundle)));
        }
        Collections.sort(bundleNodes);
        return bundleNodes;
      }
View Full Code Here

        return null;
      } else {
        ArrayList<VBOTreeNode> itemNodes = new ArrayList<VBOTreeNode>();
        for (Item item : items) {
          itemNodes
              .add(new VBOTreeNode(item, null, null, null, null));
        }
        Collections.sort(itemNodes);
        return itemNodes;
      }
    } catch (SQLException e) {
View Full Code Here

        return null;
      } else {
        ArrayList<VBOTreeNode> itemNodes = new ArrayList<VBOTreeNode>();
        for (Item item : items) {
          itemNodes
              .add(new VBOTreeNode(item, null, null, null, null));
        }
        Collections.sort(itemNodes);
        return itemNodes;
      }
    } catch (SQLException e) {
View Full Code Here

        return null;
      } else {
        ArrayList<VBOTreeNode> itemNodes = new ArrayList<VBOTreeNode>();
        for (Item item : items) {
          itemNodes
              .add(new VBOTreeNode(item, null, null, null, null));
        }
        Collections.sort(itemNodes);
        return itemNodes;
      }
    } catch (SQLException e) {
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  private VBOTreeNode getTreeNodeFromTree(ArrayList<VBOTreeNode> nodes,
      int id, boolean mustBeActive) {
    if (nodes != null) {
      VBOTreeNode nodeHolder;
      for (VBOTreeNode node : nodes) {
        if ((node.getVociBusinessObject().getId() == id)
            && ((!mustBeActive) || ((mustBeActive) && (node
                .getVociBusinessObject().isActive())))) {
          return node;
        } else if ((node.getChildren() != null)
            && (node.getChildren().size() > 0)) {
          nodeHolder = getTreeNodeFromTree(node.getChildren(), id,
              mustBeActive);
          if ((nodeHolder != null)
              && ((!mustBeActive) || ((mustBeActive) && (nodeHolder
                  .getVociBusinessObject().isActive())))) {
            return nodeHolder;
          }
        }
      }
View Full Code Here

TOP

Related Classes of edu.uga.galileo.voci.bo.VBOTreeNode

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.