/// <summary> /// setup context by creating appropriate objects /// </summary> /// <history> /// /08/10/2007 sCullmann created /// </history> /// <remarks > /// security is not the purpose of the initialization, this is in the responsibility of each property access class /// </remarks> private void InitializePropertySources() { //Cleanup, by default "" is returned for these objects and any property IPropertyAccess DefaultPropertyAccess = new EmptyPropertyAccess(); PropertySource["portal"] = DefaultPropertyAccess; PropertySource["tab"] = DefaultPropertyAccess; PropertySource["host"] = DefaultPropertyAccess; PropertySource["module"] = DefaultPropertyAccess; PropertySource["user"] = DefaultPropertyAccess; PropertySource["membership"] = DefaultPropertyAccess; PropertySource["profile"] = DefaultPropertyAccess; //initialization if (CurrentAccessLevel >= Scope.Configuration) { if (PortalSettings != null) { PropertySource["portal"] = PortalSettings; PropertySource["tab"] = PortalSettings.ActiveTab; } PropertySource["host"] = new HostPropertyAccess(); if (ModuleInfo != null) { PropertySource["module"] = ModuleInfo; } } if (CurrentAccessLevel >= Scope.DefaultSettings && !(User == null || User.UserID == -1)) { PropertySource["user"] = User; PropertySource["membership"] = new MembershipPropertyAccess(User); PropertySource["profile"] = new ProfilePropertyAccess(User); } }