Example #1
0
        public static Search SearchForFolders()
        {
            var   foldersQuery = new NullQuery <Folder>(PropertyNames.folder, false);
            Query query        = new Query(new QueryScope(ObjectTypes.AllIncFolders), foldersQuery);

            return(new Search(query, null, false, "", null, false));
        }
Example #2
0
        public static Search SearchForOrganization()
        {
            var foldersQuery = new NullQuery <Folder>(PropertyNames.folder, false);
            var vAppsQuery   = new BooleanQuery(PropertyNames.in_any_appliance, true);
            var tagsQuery    = new ListEmptyQuery <String>(PropertyNames.tags, false);
            var fieldsQuery  = new BooleanQuery(PropertyNames.has_custom_fields, true);
            var groupQuery   = new GroupQuery(new QueryFilter[] { foldersQuery, vAppsQuery, tagsQuery, fieldsQuery }, GroupQuery.GroupQueryType.Or);

            Query query = new Query(new QueryScope(ObjectTypes.AllIncFolders), groupQuery);

            return(new Search(query, null, false, "", null, false));
        }
Example #3
0
        public override bool Equals(object obj)
        {
            if (!base.Equals(obj))
            {
                return(false);
            }

            NullQuery <T> other = obj as NullQuery <T>;

            if (other == null)
            {
                return(false);
            }

            return(query == other.query);
        }