public BirthdaysModule()
 {
     Context = new ModuleContext
     {
         DefaultSortOrder = 6,
         SmallIconFileName = string.Empty,
         IconFileName = string.Empty,
         SubscriptionManager = new BirthdaysSubscriptionManager()
     };
 }
示例#2
0
 public NewsModule()
 {
     Context = new ModuleContext
                   {
                       SmallIconFileName = "newslogo.png",
                       IconFileName = "32x_news.png",
                       SubscriptionManager = new SubscriptionManager(),
                       GetCreateContentPageAbsoluteUrl = () => CommunitySecurity.CheckPermissions(NewsConst.Action_Add) ? FeedUrls.EditNewsUrl : null,
                       SearchHandler = new SearchHandler(),
                   };
 }
示例#3
0
 public BlogsModule()
 {
     Context = new ModuleContext
     {
         DefaultSortOrder = 1,
         SmallIconFileName = "blog_add.png",
         IconFileName = "blogiconwg.png",
         SubscriptionManager = new BlogsSubscriptionManager(),
         GetCreateContentPageAbsoluteUrl = () => CanEdit() ? VirtualPathUtility.ToAbsolute(ASC.Blogs.Core.Constants.BaseVirtualPath + "addblog.aspx") : null,
         SearchHandler = new BlogsSearchHandler(),
     };
 }
示例#4
0
 public ForumModule()
 {
     Context = new ModuleContext
     {
         DefaultSortOrder = 2,
         SmallIconFileName = "forum_mini_icon.png",
         IconFileName = "forum_icon.png",
         SubscriptionManager = new ForumSubscriptionManager(),
         GetCreateContentPageAbsoluteUrl = ForumShortcutProvider.GetCreateContentPageUrl,
         SearchHandler = new ForumSearchHandler(),
     };
 }
示例#5
0
 public WikiModule()
 {
     Context = new ModuleContext
     {
         DefaultSortOrder = 5,
         SmallIconFileName = "WikiLogo16.png",
         IconFileName = "WikiLogo32.png",
         SubscriptionManager = new WikiSubscriptionManager(),
         GetCreateContentPageAbsoluteUrl = GetCreateContentPageUrl,
         SearchHandler = new WikiSearchHandler(),
     };
 }
 public BookmarkingModule()
 {
     Context = new ModuleContext
         {
             DefaultSortOrder = 4,
             SmallIconFileName = "bookmarking_mini_icon.png",
             IconFileName = "bookmarking_icon.png",
             SubscriptionManager = new BookmarkingSubscriptionManager(),
             SearchHandler = new BookmarkingSearchHandler(),
             GetCreateContentPageAbsoluteUrl = () => BookmarkingPermissionsCheck.PermissionCheckCreateBookmark() ? VirtualPathUtility.ToAbsolute("~/products/community/modules/bookmarking/" + BookmarkingServiceHelper.GetCreateBookmarkPageUrl()) : null,
         };
 }
示例#7
0
 public NewsModule()
 {
     Context = new ModuleContext
                   {
                       ThemesFolderVirtualPath = "~/products/community/modules/news/app_themes",
                       ImageFolder = "newsimages",
                       SmallIconFileName = "newslogo.png",
                       IconFileName = "32x_news.png",
                       SubscriptionManager = new SubscriptionManager(),
                       StatisticProvider = new StatisticProvider(),
                       UserActivityPublishers = new List<IUserActivityPublisher> {new ActivityPublisher()},
                       GetCreateContentPageAbsoluteUrl = () => CommunitySecurity.CheckPermissions(NewsConst.Action_Add) ? FeedUrls.EditNewsUrl : null,
                       SearchHandler = new SearchHandler(),
                   };
 }
示例#8
0
 public WikiModule()
 {
     Context = new ModuleContext
     {
         DefaultSortOrder = 5,
         ThemesFolderVirtualPath = "~/Products/Community/Modules/Wiki/App_Themes",
         ImageFolder = "wikiimages",
         SmallIconFileName = "WikiLogo16.png",
         IconFileName = "WikiLogo32.png",
         SubscriptionManager = new WikiSubscriptionManager(),
         StatisticProvider = new WikiStatisticProvider(),
         UserActivityPublishers = new List<IUserActivityPublisher>() { new WikiActivityPublisher() },
         GetCreateContentPageAbsoluteUrl = GetCreateContentPageUrl,
         SearchHandler = new WikiSearchHandler(),
     };
 }
 public BookmarkingModule()
 {
     Context = new ModuleContext
     {
         DefaultSortOrder = 4,
         ThemesFolderVirtualPath = "~/products/community/modules/bookmarking/app_themes",
         ImageFolder = "images",
         SmallIconFileName = "bookmarking_mini_icon.png",
         IconFileName = "bookmarking_icon.png",
         SubscriptionManager = new BookmarkingSubscriptionManager(),
         SearchHandler = new BookmarkingSearchHandler(),
         StatisticProvider = new BookmarkingStatisticProvider(),
         UserActivityPublishers = new List<IUserActivityPublisher> { new BookmarkingUserActivityPublisher() },
         GetCreateContentPageAbsoluteUrl = () => BookmarkingPermissionsCheck.PermissionCheckCreateBookmark() ? VirtualPathUtility.ToAbsolute("~/products/community/modules/bookmarking/" + BookmarkingServiceHelper.GetCreateBookmarkPageUrl()) : null,
     };
 }
示例#10
0
        public override void Init(ProductContext productContext)
        {
            productContext.ThemesFolderVirtualPath = String.Concat(PathProvider.BaseVirtualPath, "App_Themes");
            productContext.ImageFolder = "images";
            productContext.MasterPageFile = String.Concat(PathProvider.BaseVirtualPath, "Masters/BasicTemplate.Master").ToLower();
            productContext.DisabledIconFileName = "product_disabled_logo.png";
            productContext.IconFileName = "product_logo.png";
            productContext.LargeIconFileName = "product_logolarge.png";
            productContext.DefaultSortOrder = 30;

            productContext.UserActivityControlLoader = new UserActivityControlLoader();
            productContext.UserActivityPublishers = new List<IUserActivityPublisher> {new FilesActivityPublisher()};
            UserActivityManager.AddFilter(new FilesActivityPublisher());
            productContext.SubscriptionManager = new SubscriptionManager();
            productContext.SpaceUsageStatManager = new FilesSpaceUsageStatManager();
            productContext.AdminOpportunities = GetAdminOpportunities;
            productContext.UserOpportunities = GetUserOpportunities;
            productContext.CanNotBeDisabled = true;

            _moduleContext = new ModuleContext {SearchHandler = new SearchHandler(), StatisticProvider = new StatisticProvider()};
            _productContext = productContext;
        }
示例#11
0
        public ForumModule()
        {
            var activityPublisher = new ForumActivityPublisher();
            activityPublisher.InitSettings(ForumManager.Settings);

            Context = new ModuleContext
            {
                DefaultSortOrder = 2,
                ThemesFolderVirtualPath = "~/products/community/modules/forum/app_themes",
                ImageFolder = "forumimages",
                SmallIconFileName = "forum_mini_icon.png",
                IconFileName = "forum_icon.png",
                SubscriptionManager = new ForumSubscriptionManager(),
                GlobalHandler = new ForumGlobalHandler(),
                StatisticProvider = new ForumStatisticProvider(),
                UserActivityPublishers = new List<IUserActivityPublisher>() { activityPublisher },
                GetCreateContentPageAbsoluteUrl = ForumShortcutProvider.GetCreateContentPageUrl,
                SearchHandler = new ForumSearchHandler(),
            };
        }
示例#12
0
 public BlogsModule()
 {
     Context = new ModuleContext
     {
         DefaultSortOrder = 1,
         ThemesFolderVirtualPath = "~/products/community/modules/blogs/app_themes",
         ImageFolder = "blogsimages",
         SmallIconFileName = "blog_add.png",
         IconFileName = "blogiconwg.png",
         SubscriptionManager = new BlogsSubscriptionManager(),
         StatisticProvider = new BlogsStatisticProvider(),
         UserActivityPublishers = new List<IUserActivityPublisher>() { new BlogUserActivityPublisher() },
         GetCreateContentPageAbsoluteUrl = () => CanEdit() ? VirtualPathUtility.ToAbsolute(ASC.Blogs.Core.Constants.BaseVirtualPath + "addblog.aspx") : null,
         SearchHandler = new BlogsSearchHandler(),
     };
 }