/// <summary> /// Metod koj gi vraka vidlivite funkcii(kako stringovi) za specificiran korisnik /// spored soodvetnite vidlivi web-strani /// </summary> /// <param name="userId"></param> /// <returns>mnozestvo od string-ovi - HashSet(string)</returns> public static HashSet <string> GetVisibleFunctionsByUser(int userId) { HashSet <string> set = new HashSet <string>(); foreach (UsersWebPage userPage in GetVisibleWebPagesByUser(userId)) { Broker.DataAccess.Function f = WebPage.GetFunctionByWebPage(userPage.WebPageID); if (f != null) { set.Add(f.Name); } } return(set); }