public GroupAdministrationFeature() : base(GroupAdministration.FeatureId, FeatureOptions.HasTransactionData | FeatureOptions.HasMetaData | FeatureOptions.HasAccountContainer | FeatureOptions.RequiresChainHandler | FeatureOptions.RequiresDataValidator | FeatureOptions.RequiresMetaDataProcessor | FeatureOptions.RequiresQueryHandler) { ErrorEnumType = typeof(GroupAdministrationError); RequiredFeatures.Add(Receiver.FeatureId); }
public SharedAccountIndexFeature() : base(SharedAccountIndex.FeatureId, FeatureOptions.HasTransactionData | FeatureOptions.HasMetaData | FeatureOptions.HasAccountContainer | FeatureOptions.RequiresMetaDataProcessor | FeatureOptions.RequiresDataValidator | FeatureOptions.RequiresQueryHandler) { ErrorEnumType = typeof(SharedAccountIndexError); RequiredFeatures.Add(Receiver.FeatureId); }
public FriendFeature() : base(Friend.FeatureId, FeatureOptions.HasAccountContainer | FeatureOptions.RequiresChainHandler | FeatureOptions.RequiresQueryHandler) { ErrorEnumType = typeof(FriendError); RequiredFeatures.Add(Receiver.FeatureId); }
/// <summary> /// Adds a control to the internal collections. /// If the control is a special control - ex: Link /// it will be added to the correct special List. /// </summary> /// <param name="control"></param> /// <returns></returns> public override BaseGadgetControl AddControl(BaseGadgetControl control) { base.AddControl(control); //make sure it is in the main controls collection if (null == control) { return(null); } if (control is ModuleFeature) { ModuleFeature feature = (ModuleFeature)control; if (control is ModuleRequire) { RequiredFeatures.Add((ModuleRequire)control); } else if (control is ModuleOptional) { OptionalFeatures.Add((ModuleOptional)control); } //MySpace settings - should be Optional element, but we'll allow either optional or require if (MySpaceAppSettings.FEATURE_KEY.Equals(feature.Feature, StringComparison.InvariantCultureIgnoreCase)) { MySpaceAppSettings.LoadFeatureSettings(feature); } //MySpace settings - should be Optional element, but we'll allow either optional or require else if (MySpaceViewSettings.FEATURE_KEY.Equals(feature.Feature, StringComparison.InvariantCultureIgnoreCase)) { MySpaceViewSettings.LoadFeatureSettings(feature); } //OpenSocial templates else if (ExternalTemplates.FEATURE_KEY.Equals(feature.Feature, StringComparison.InvariantCultureIgnoreCase)) { TemplateLibraries.LoadFeatureSettings(feature); } //Security Policy else if (GadgetSecurityPolicy.FEATURE_KEY.Equals(feature.Feature, StringComparison.InvariantCultureIgnoreCase)) { this.SecurityPolicy.LoadFeatureSettings(feature); } } else if (control is Locale) { this.Locales.Add((Locale)control); } else if (control is Link) { this.Links.Add((Link)control); } else if (control is ModuleIcon) { ModuleIcon icon = (ModuleIcon)control; if (icon.Mode == "base64") { IconUrl = null; } else { IconUrl = icon.Src; } this.IconControl = icon; } return(control); }