Exemple #1
0
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            //SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Product", "~/Merchandise/Default.aspx", "Product");
            //siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that Product module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("PersonalLocations", "~/PersonalLocations/Default.aspx", "Personal Locations");
            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that PersonalLocations module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            NameValueCollection attributes = new NameValueCollection(1);

            attributes["imageName"] = "funds";
            SiteMapNodeInfo moduleRoot =
                new SiteMapNodeInfo("EFT", "~/EFT/Default.aspx", "Funds",
                                    "The Electronic Funds Transfer Module", null, attributes, null, null);
            SiteMapNodeInfo createTransferNode =
                new SiteMapNodeInfo("CreateTransfer", "~/EFT/CreateTransfer.aspx", "Create Transfer",
                                    "Creates a new transfer");

            SiteMapNodeInfo confirmTransfersViewNode =
                new SiteMapNodeInfo("ConfirmTransfersView", "~/EFT/ConfirmTransfersView.aspx",
                                    "Confirm Transfers");
            SiteMapNodeInfo createAccountViewNode =
                new SiteMapNodeInfo("CreateAccountView", "~/EFT/CreateAccountView.aspx", "Create Account");
            SiteMapNodeInfo newTransferViewNode =
                new SiteMapNodeInfo("NewTransferView", "~/EFT/NewTransferView.aspx", "New Transfer");
            SiteMapNodeInfo summaryViewNode =
                new SiteMapNodeInfo("SummaryView", "~/EFT/SummaryView.aspx", "Summary");

            siteMapBuilderService.AddNode(moduleRoot, 1);
            siteMapBuilderService.AddNode(createTransferNode, moduleRoot, "AllowCreateTransfer");
            siteMapBuilderService.AddNode(confirmTransfersViewNode, createTransferNode);
            siteMapBuilderService.AddNode(createAccountViewNode, createTransferNode);
            siteMapBuilderService.AddNode(newTransferViewNode, createTransferNode);
            siteMapBuilderService.AddNode(summaryViewNode, createTransferNode);
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("TributePortalAdmin", "~/TributePortalAdmin/Default.aspx", "TributePortalAdmin");
            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that TributePortalAdmin module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Miscellaneous", "~/Miscellaneous/Default.aspx", "Miscellaneous");
            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that Miscellaneous module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Home", "~/Default.aspx", "Home", "Home");

            siteMapBuilderService.AddNode(moduleNode);
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Snow Ski Chair", "~/Merchandise/ProductMenu.aspx?pid=1", "Snow Ski Chair", "Snow Ski Chair"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Water Ski Chair", "~/Merchandise/ProductMenu.aspx?pid=2", "Water Ski Chair", "Water Ski Chair"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Hockey Stick Chair", "~/Merchandise/ProductMenu.aspx?pid=3", "Hockey Stick Chair", "Hockey Stick Chair"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Golf Club Chair", "~/Merchandise/ProductMenu.aspx?pid=4", "Golf Club Chair", "Golf Club Chair"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Wakeboard Bench", "~/Merchandise/ProductMenu.aspx?pid=5", "Wakeboard Bench", "Wakeboard Bench"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Snowboard Bench", "~/Merchandise/ProductMenu.aspx?pid=6", "Snowboard Bench", "Snowboard Bench"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Skateboard Bench", "~/Merchandise/ProductMenu.aspx?pid=7", "Skateboard Bench", "Skateboard Bench"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Snow Ski Bench", "~/Merchandise/ProductMenu.aspx?pid=8", "Snow Ski Bench", "Snow Ski Bench"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Baseball Bat Chair", "~/Merchandise/ProductMenu.aspx?pid=9", "Baseball Bat Chair", "Baseball Bat Chair"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Snowboard Chair", "~/Merchandise/ProductMenu.aspx?pid=10", "Snowboard Chair", "Snowboard Chair"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Water Ski Bench", "~/Merchandise/ProductMenu.aspx?pid=11", "Water Ski Bench", "Water Ski Bench"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Wakeboard Chair", "~/Merchandise/ProductMenu.aspx?pid=12", "Wakeboard Chair", "Wakeboard Chair"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Skateboard Chair", "~/Merchandise/ProductMenu.aspx?pid=13", "Skateboard Chair", "Skateboard Chair"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Log Collection", "~/Merchandise/ProductMenu.aspx?pid=14", "Log Collection", "Log Collection"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Coat Rack", "~/Merchandise/ProductMenu.aspx?pid=15", "Coat Rack", "Coat Rack"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Wine Rack", "~/Merchandise/ProductMenu.aspx?pid=16", "Wine Rack", "Wine Rack"));
            siteMapBuilderService.AddNode(new SiteMapNodeInfo("Children's Chair", "~/Merchandise/ProductMenu.aspx?pid=17", "Children's Chair", "Children's Chair"));

            //bread crumb
            siteMapBuilderService.RootNode.Url   = "~/Default.aspx";
            siteMapBuilderService.RootNode.Title = "SkiChair Home";

            // TODO: register other site map nodes for pages that belong to the website root
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("MessagingSystem", "~/MessagingSystem/Default.aspx", "MessagingSystem");
            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that MessagingSystem module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Story", "~/Story/Default.aspx", "Story");
            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that Story module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("$ModuleName$", "~/$ModuleFolderNameOnWebSite$/Default.aspx", "$ModuleName$");
            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that $ModuleName$ module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("PortalController", "~/PortalController/Default.aspx", "PortalController");
            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that PortalController module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Contacts", "~/Contacts/Default.aspx", "Contacts");

            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that Contacts module might provide
        }
Exemple #12
0
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("$ModuleName$", "~/$ModuleFolderNameOnWebSite$/Default.aspx", "$ModuleName$");

            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that $ModuleName$ module might provide
        }
Exemple #13
0
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Photo Gallery Menu", "~/PhotoGallery/PhotoGalleryTemp.aspx", "Photo Gallery Menu");

            siteMapBuilderService.AddNode(moduleNode);

            // TODO: register other site map nodes that PhotoGallery module might provide
        }
 protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
 {
     SiteMapNodeInfo moduleRootNode = new SiteMapNodeInfo("Customers", null, "Customers");
     SiteMapNodeInfo customersSimpleViewNode = new SiteMapNodeInfo("CustomersSimpleView", "~/Customers/CustomersSimpleView.aspx", "Customers (simple)", "Shows simple usage patterns of the ObjectContainerDataSource control, including select/update/insert/delete operations with sorting and paging provided by the control");
     SiteMapNodeInfo customersAdvancedViewNode = new SiteMapNodeInfo("CustomersAdvancedView", "~/Customers/CustomersAdvancedView.aspx", "Customers (advanced)", "Shows advanced usage patterns of the ObjectContainerDataSource control, including select/update/insert/delete operations and server-side sorting and paging");
     siteMapBuilderService.AddNode(moduleRootNode);
     siteMapBuilderService.AddNode(customersSimpleViewNode, moduleRootNode);
     siteMapBuilderService.AddNode(customersAdvancedViewNode, moduleRootNode);
 }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Products", "~/Products/Default.aspx", "Products");
            SiteMapNodeInfo searchNode = new SiteMapNodeInfo("ProductSearch", "~/Products/ProductSearch.aspx", "Search");
            siteMapBuilderService.AddNode(moduleNode);
            siteMapBuilderService.AddNode(searchNode, moduleNode);

            // TODO: register other site map nodes that Products module might provide
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Home", "~/Default.aspx", "Home", "Home");
            siteMapBuilderService.AddNode(moduleNode);

            siteMapBuilderService.RootNode.Url = "~/Default.aspx";
            siteMapBuilderService.RootNode.Title = "$ApplicationNameArgument$";

            // TODO: register other site map nodes for pages that belong to the website root
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleRootNode            = new SiteMapNodeInfo("Customers", null, "Customers");
            SiteMapNodeInfo customersSimpleViewNode   = new SiteMapNodeInfo("CustomersSimpleView", "~/Customers/CustomersSimpleView.aspx", "Customers (simple)", "Shows simple usage patterns of the ObjectContainerDataSource control, including select/update/insert/delete operations with sorting and paging provided by the control");
            SiteMapNodeInfo customersAdvancedViewNode = new SiteMapNodeInfo("CustomersAdvancedView", "~/Customers/CustomersAdvancedView.aspx", "Customers (advanced)", "Shows advanced usage patterns of the ObjectContainerDataSource control, including select/update/insert/delete operations and server-side sorting and paging");

            siteMapBuilderService.AddNode(moduleRootNode);
            siteMapBuilderService.AddNode(customersSimpleViewNode, moduleRootNode);
            siteMapBuilderService.AddNode(customersAdvancedViewNode, moduleRootNode);
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Home", "~/Default.aspx", "Home", "Home");
            siteMapBuilderService.AddNode(moduleNode);

            siteMapBuilderService.RootNode.Url = "~/Default.aspx";
            siteMapBuilderService.RootNode.Title = "Locator";

            SiteMapNodeInfo silverlightNode = new SiteMapNodeInfo("SL Client", "~/SilverlightClient.aspx", "SL Client", "The Silverlight Client");
            siteMapBuilderService.AddNode(silverlightNode);
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Home", "~/Default.aspx", "Home", "Home");

            siteMapBuilderService.AddNode(moduleNode);

            siteMapBuilderService.RootNode.Url   = "~/Default.aspx";
            siteMapBuilderService.RootNode.Title = "ModuleQuickstart";

            // TODO: register other site map nodes for pages that belong to the website root
        }
Exemple #20
0
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Customers", "~/Customers/Default.aspx", "Customers");

            siteMapBuilderService.AddNode(moduleNode, "AllowSearchCustomers");

            SiteMapNodeInfo searchCustomerNode =
                new SiteMapNodeInfo("SearchCustomer", "~/Customers/SearchCustomers.aspx", "Search Customers");

            siteMapBuilderService.AddNode(searchCustomerNode, moduleNode, "AllowSearchCustomers");
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            //SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("BeheerThemas", "~/BeheerThemas/Default.aspx", "BeheerThemas");
            //siteMapBuilderService.AddNode(moduleNode);

            //SiteMapNodeInfo beheerThemasViewNode = new SiteMapNodeInfo("BeheerThemasView",
            //                                                           "~/BeheerThemas/BeheerThemas.aspx",
            //                                                           "Thema Beheer");
            //siteMapBuilderService.AddNode(beheerThemasViewNode, moduleNode);

            // TODO: register other site map nodes that BeheerThemas module might provide            
        }
Exemple #22
0
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("CustomerManager", "~/CustomerManager/Default.aspx", "Customers");

            siteMapBuilderService.AddNode(moduleNode);

            SiteMapNodeInfo searchNode = new SiteMapNodeInfo("SearchCustomer", "~/CustomerManager/SearchCustomer.aspx", "Search");

            siteMapBuilderService.AddNode(searchNode, moduleNode);

            // TODO: register other site map nodes that CustomerManager module might provide
        }
        protected void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            // Register the nodes published by this module
            NameValueCollection attributes = new NameValueCollection(1);

            attributes["imageName"] = "admin";
            SiteMapNodeInfo adminNode      = new SiteMapNodeInfo("Admin", "~/Admin/Default.aspx", "Administration", "Admin Module", null, attributes, null, null);
            SiteMapNodeInfo permissionNode = new SiteMapNodeInfo("ViewRolePermissions", "~/Admin/ViewRolePermissionsView.aspx", "Permissions", "View Role Permissions");

            siteMapBuilderService.AddNode(adminNode, 1000);
            siteMapBuilderService.AddNode(permissionNode, adminNode, Permissions.AllowAdministerPermissions);
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            NameValueCollection attributes = new NameValueCollection(1);

            attributes["imageName"] = "reports";
            SiteMapNodeInfo moduleNode     = new SiteMapNodeInfo("Reports", "~/Reports/Default.aspx", "Reports", "Reports Module", null, attributes, null, null);
            SiteMapNodeInfo viewReportNode = new SiteMapNodeInfo("AccountsSummary", "~/Reports/AccountsSummaryView.aspx", "Accounts Summary");
            SiteMapNodeInfo paymentHistory = new SiteMapNodeInfo("PaymentHistory", "~/Reports/PaymentHistoryView.aspx", "Payment History");

            siteMapBuilderService.AddNode(moduleNode, 500);
            siteMapBuilderService.AddNode(viewReportNode, moduleNode, Permissions.AllowViewAccountsSummary);
            siteMapBuilderService.AddNode(paymentHistory, moduleNode, Permissions.AllowViewPaymentHistory);
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleRoot =
                new SiteMapNodeInfo("Appointment", "~/Appointment/Default.aspx", "E-Appointments - Dashboard",
                                    "The E-Appointments Dashboard", null, null, null, null);
            SiteMapNodeInfo createAppointmentNode =
                new SiteMapNodeInfo("Create", "~/Appointment/Create.aspx", "New Appointment",
                                    "Creates a new appointment");

            // TODO: Add the remaining nodes...
            siteMapBuilderService.AddNode(moduleRoot, 1);
            siteMapBuilderService.AddNode(createAppointmentNode, moduleRoot, "AllowCreateAppointment");
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Audittrail", 
                "~/Audittrail/Default.aspx", 
                "Audittrail");
            siteMapBuilderService.AddNode(moduleNode);

            //children
            SiteMapNodeInfo beheerThemasViewNode = new SiteMapNodeInfo("Overzicht",
                                                                       "~/Audittrail/Audittrail.aspx",
                                                                       "Overzicht");
            siteMapBuilderService.AddNode(beheerThemasViewNode, moduleNode);
            // TODO: register other site map nodes that Audittrail module might provide            
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Beheer", "~/Beheer/Default.aspx", "Beheer");
            siteMapBuilderService.AddNode(moduleNode);

            //children
            SiteMapNodeInfo beheerThemasViewNode = new SiteMapNodeInfo("BeheerThemasView",
                                                                       "~/Beheer/Themas.aspx",
                                                                       "Thema Beheer");
            siteMapBuilderService.AddNode(beheerThemasViewNode, moduleNode);
            SiteMapNodeInfo beheerCategrieViewNode = new SiteMapNodeInfo("CategorieView",
                                                           "~/Beheer/Categorieen.aspx",
                                                           "Categorie Beheer");
            siteMapBuilderService.AddNode(beheerCategrieViewNode, moduleNode);

            // TODO: register other site map nodes that Beheer module might provide            
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Orders", "", "Orders");

            siteMapBuilderService.AddNode(moduleNode);
            SiteMapNodeInfo moduleNodeUpdateOrderDetails = new SiteMapNodeInfo("UpdateOrderDetails", "~/TTAOrders/UpdateOrderDetails.aspx", "Update Order Details");

            siteMapBuilderService.AddNode(moduleNodeUpdateOrderDetails, moduleNode);
            SiteMapNodeInfo moduleNodeCreateOrderDetails = new SiteMapNodeInfo("CreateOrderDetails", "~/TTAOrders/CreateOrderDetails.aspx", "Create Order Details");

            siteMapBuilderService.AddNode(moduleNodeCreateOrderDetails, moduleNode);
            SiteMapNodeInfo moduleNodeOrderList = new SiteMapNodeInfo("OrderList", "~/TTAOrders/OrderList.aspx", "Order List");

            siteMapBuilderService.AddNode(moduleNodeOrderList, moduleNode);
            SiteMapNodeInfo moduleNodeOrderSearch = new SiteMapNodeInfo("OrderSearch", "~/TTAOrders/OrderSearch.aspx", "Search Order Details");

            siteMapBuilderService.AddNode(moduleNodeOrderSearch, moduleNode);
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Orders", "~/Orders/Default.aspx", "Orders");

            siteMapBuilderService.AddNode(moduleNode, "AllowBrowseOrders");

            SiteMapNodeInfo createNewNode = new SiteMapNodeInfo("CreateNewOrder", "~/Orders/OrderEntry.aspx", "Create New Order");

            siteMapBuilderService.AddNode(createNewNode, moduleNode, "AllowCreateOrders");

            SiteMapNodeInfo savedDraftNode = new SiteMapNodeInfo("MySavedDrafts", "~/Orders/MySavedDrafts.aspx", "My Saved Drafts");

            siteMapBuilderService.AddNode(savedDraftNode, moduleNode, "AllowCreateOrders");

            SiteMapNodeInfo approvalsNode = new SiteMapNodeInfo("MyApprovals", "~/Orders/MyApprovals.aspx", "My Approvals");

            siteMapBuilderService.AddNode(approvalsNode, moduleNode, "AllowApprovals");

            SiteMapNodeInfo searchOrderNode = new SiteMapNodeInfo("SearchOrder", "~/Orders/SearchOrders.aspx", "Search Orders");

            siteMapBuilderService.AddNode(searchOrderNode, moduleNode, "AllowBrowseOrders");
        }
Exemple #30
0
        public void LoadRegistersServicesInRootContainer()
        {
            MockRootCompositionContainer rootContainer     = new MockRootCompositionContainer();
            CompositionContainer         moduleContainer   = rootContainer.Containers.AddNew <CompositionContainer>();
            ShellModuleInitializer       moduleInitializer = new ShellModuleInitializer();

            moduleInitializer.Load(moduleContainer);

            IAuthorizationService authorizationService = rootContainer.Services.Get <IAuthorizationService>(true);

            Assert.IsTrue(authorizationService is EnterpriseLibraryAuthorizationService);

            IPermissionsCatalog permissionsCatalog = rootContainer.Services.Get <IPermissionsCatalog>(true);

            Assert.IsTrue(permissionsCatalog is PermissionsCatalog);

            IRolesCatalog rolesCatalog = rootContainer.Services.Get <IRolesCatalog>();

            Assert.IsTrue(rolesCatalog is RolesCatalog);

            ISiteMapBuilderService siteMapBuilderService = rootContainer.Services.Get <ISiteMapBuilderService>();

            Assert.IsTrue(siteMapBuilderService is SiteMapBuilderService);
        }
Exemple #31
0
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Products", "~/TTAProduct/ProductList.aspx", "Products");

            siteMapBuilderService.AddNode(moduleNode);
        }
 public void TestRegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
 {
     RegisterSiteMapInformation(siteMapBuilderService);
 }
 protected override void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilder)
 {
     RegisterSiteMapWasCalled = true;
 }
 internal void TestRegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
 {
     base.RegisterSiteMapInformation(siteMapBuilderService);
 }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("CustomerManager", "~/CustomerManager/Default.aspx", "Customers");
            siteMapBuilderService.AddNode(moduleNode);

            SiteMapNodeInfo searchNode = new SiteMapNodeInfo("SearchCustomer", "~/CustomerManager/SearchCustomer.aspx", "Search");
            siteMapBuilderService.AddNode(searchNode, moduleNode);

            // TODO: register other site map nodes that CustomerManager module might provide
        }
 protected void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
 {
     // Register the nodes published by this module
     NameValueCollection attributes = new NameValueCollection(1);
     attributes["imageName"] = "admin";
     SiteMapNodeInfo adminNode = new SiteMapNodeInfo("Admin", "~/Admin/Default.aspx", "Administration", "Admin Module", null, attributes, null, null);
     SiteMapNodeInfo permissionNode = new SiteMapNodeInfo("ViewRolePermissions", "~/Admin/ViewRolePermissionsView.aspx", "Permissions", "View Role Permissions");
     siteMapBuilderService.AddNode(adminNode, 1000);
     siteMapBuilderService.AddNode(permissionNode, adminNode, Permissions.AllowAdministerPermissions);
 }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Customers", "~/Customers/Default.aspx", "Customers");
            siteMapBuilderService.AddNode(moduleNode, "AllowSearchCustomers");

            SiteMapNodeInfo searchCustomerNode =
                new SiteMapNodeInfo("SearchCustomer", "~/Customers/SearchCustomers.aspx", "Search Customers");
            siteMapBuilderService.AddNode(searchCustomerNode, moduleNode, "AllowSearchCustomers");
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            NameValueCollection attributes = new NameValueCollection(1);
            attributes["imageName"] = "reports";
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Reports", "~/Reports/Default.aspx", "Reports", "Reports Module", null, attributes, null, null);
            SiteMapNodeInfo viewReportNode = new SiteMapNodeInfo("AccountsSummary", "~/Reports/AccountsSummaryView.aspx", "Accounts Summary");
            SiteMapNodeInfo paymentHistory = new SiteMapNodeInfo("PaymentHistory", "~/Reports/PaymentHistoryView.aspx", "Payment History");

            siteMapBuilderService.AddNode(moduleNode, 500);
            siteMapBuilderService.AddNode(viewReportNode, moduleNode, Permissions.AllowViewAccountsSummary);
            siteMapBuilderService.AddNode(paymentHistory, moduleNode, Permissions.AllowViewPaymentHistory);
        }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            NameValueCollection attributes = new NameValueCollection(1);
            attributes["imageName"] = "funds";
            SiteMapNodeInfo moduleRoot =
                new SiteMapNodeInfo("EFT", "~/EFT/Default.aspx", "Funds",
                                    "The Electronic Funds Transfer Module", null, attributes, null, null);
            SiteMapNodeInfo createTransferNode =
                new SiteMapNodeInfo("CreateTransfer", "~/EFT/CreateTransfer.aspx", "Create Transfer",
                                    "Creates a new transfer");

            SiteMapNodeInfo confirmTransfersViewNode =
                new SiteMapNodeInfo("ConfirmTransfersView", "~/EFT/ConfirmTransfersView.aspx",
                                    "Confirm Transfers");
            SiteMapNodeInfo createAccountViewNode =
                new SiteMapNodeInfo("CreateAccountView", "~/EFT/CreateAccountView.aspx", "Create Account");
            SiteMapNodeInfo newTransferViewNode =
                new SiteMapNodeInfo("NewTransferView", "~/EFT/NewTransferView.aspx", "New Transfer");
            SiteMapNodeInfo summaryViewNode =
                new SiteMapNodeInfo("SummaryView", "~/EFT/SummaryView.aspx", "Summary");

            siteMapBuilderService.AddNode(moduleRoot, 1);
            siteMapBuilderService.AddNode(createTransferNode, moduleRoot, "AllowCreateTransfer");
            siteMapBuilderService.AddNode(confirmTransfersViewNode, createTransferNode);
            siteMapBuilderService.AddNode(createAccountViewNode, createTransferNode);
            siteMapBuilderService.AddNode(newTransferViewNode, createTransferNode);
            siteMapBuilderService.AddNode(summaryViewNode, createTransferNode);
        }
 protected override void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilder)
 {
     RegisterSiteMapWasCalled = true;
 }
Exemple #41
0
 internal void TestRegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
 {
     base.RegisterSiteMapInformation(siteMapBuilderService);
 }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Home", "~/Default.aspx", "Home", "Home");
            _siteMapBuilderService.AddNode(moduleNode);

            _siteMapBuilderService.RootNode.Url = "~/Default.aspx";
            _siteMapBuilderService.RootNode.Title = "MVPWithCWABQuickStart";

            // TODO: register other site map nodes for pages that belong to the website root
        }
Exemple #43
0
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Customers", "~/Customers/ApproveCustomerView.aspx", "Approve Customer");

            siteMapBuilderService.AddNode(moduleNode);
        }
 public void TestRegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilder)
 {
     base.RegisterSiteMapInformation(siteMapBuilder);
 }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Orders", "~/Orders/Default.aspx", "Orders");
            siteMapBuilderService.AddNode(moduleNode, "AllowBrowseOrders");

            SiteMapNodeInfo createNewNode = new SiteMapNodeInfo("CreateNewOrder", "~/Orders/OrderEntry.aspx", "Create New Order");
            siteMapBuilderService.AddNode(createNewNode, moduleNode, "AllowCreateOrders");

            SiteMapNodeInfo savedDraftNode = new SiteMapNodeInfo("MySavedDrafts", "~/Orders/MySavedDrafts.aspx", "My Saved Drafts");
            siteMapBuilderService.AddNode(savedDraftNode, moduleNode, "AllowCreateOrders");

            SiteMapNodeInfo approvalsNode = new SiteMapNodeInfo("MyApprovals", "~/Orders/MyApprovals.aspx", "My Approvals");
            siteMapBuilderService.AddNode(approvalsNode, moduleNode, "AllowApprovals");

            SiteMapNodeInfo searchOrderNode = new SiteMapNodeInfo("SearchOrder", "~/Orders/SearchOrders.aspx", "Search Orders");
            siteMapBuilderService.AddNode(searchOrderNode, moduleNode, "AllowBrowseOrders");
        }
 public new void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilder)
 {
     base.RegisterSiteMapInformation(siteMapBuilder);
 }
        protected virtual void RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService)
        {
            SiteMapNodeInfo moduleNode = new SiteMapNodeInfo("Customers", "~/TTACustomer/ShowAllCustomers.aspx", "Customers");

            siteMapBuilderService.AddNode(moduleNode);
        }