public static List <PathwaySetSummary> GetPathwaySetsOwnedByOrg(int orgId, int maxRecords)
        {
            string where = "";
            List <string> competencies = new List <string>();
            int           totalRows    = 0;

            //only target full entities
            where = " ( base.EntityStateId = 3 ) ";

            if (orgId > 0)
            {
                where = where + " AND " + string.Format(" ( base.OrganizationId = {0} ) ", orgId);
            }

            LoggingHelper.DoTrace(5, "PathwayServices.GetPathwaySetsOwnedByOrg(). Filter: " + where);
            return(PathwaySetManager.Search(where, "", 1, maxRecords, ref totalRows));
        }
        }        //

        public static List <PathwaySetSummary> DoPathwaySetSearch(MainSearchInput data, ref int totalRows)
        {
            string where = "";

            //only target full entities
            where = " ( base.EntityStateId = 3 ) ";

            //need to create a new category id for custom filters
            //SearchServices.HandleCustomFilters( data, 61, ref where );

            SetKeywordFilter(data.Keywords, false, ref where);
            SearchServices.SetSubjectsFilter(data, CodesManager.ENTITY_TYPE_PATHWAY, ref where);

            //SetPropertiesFilter( data, ref where );
            SearchServices.SetRolesFilter(data, ref where);
            SearchServices.SetBoundariesFilter(data, ref where);


            LoggingHelper.DoTrace(5, "PathwayServices.DoPathwaySetSearch(). Filter: " + where);
            return(PathwaySetManager.Search(where, data.SortOrder, data.StartPage, data.PageSize, ref totalRows));
        }