Example #1
0
        public static Search SearchForGroup(Grouping grouping, object parent, object v)
        {
            bool        vAppsGroup  = (grouping is OrganizationalView && v.ToString() == Messages.VM_APPLIANCES);
            ObjectTypes objectTypes = vAppsGroup ? ObjectTypes.VM : ObjectTypes.AllExcFolders;

            return(new Search(new Query(new QueryScope(objectTypes), grouping.GetSubquery(parent, v)),
                              grouping.GetSubgrouping(v), false, grouping.GetGroupName(v), "", false));
        }
Example #2
0
 public static Search SearchForVappGroup(Grouping grouping, object parent, object v)
 {
     return(new Search(new Query(new QueryScope(ObjectTypes.VM), grouping.GetSubquery(parent, v)),
                       grouping.GetSubgrouping(v), false, grouping.GetGroupName(v), "", false));
 }