public bool IsInternalUser(Microsoft.SharePoint.SPUser user) { string loginName = user.LoginName.ToUpper(); bool result = (loginName == "NT AUTHORITY\\LOCAL SERVICE") || (loginName == "NT AUTHORITY\\SYSTEM") || (loginName == "SHAREPOINT\\SYSTEM"); return(result); }
protected override bool FillProviderContext(Microsoft.SharePoint.SPUser user, out object providerContext) { object context = null; foreach (SPUserSettingsProvider provider in SPUserSettingsProviderManager.Local.UserSettingsProviders) { try { if (this.Name == provider.Name) { context = Provider; } } catch { }; } providerContext = context; return(providerContext != null); }
protected override bool UpdateUserSettingsProperties(object providerContext, Microsoft.SharePoint.SPUser user, SPUserSettingsProperty[] usProperty, object[] values) { return(false); //throw new NotImplementedException(); }
protected override bool FillUserSettingsPropertyValue(object providerContext, Microsoft.SharePoint.SPUser user, SPUserSettingsProperty usProperty, out object value) { value = null; return(false); //throw new NotImplementedException(); }
protected override bool FillUserSettingsEditorUri(object providerContext, Microsoft.SharePoint.SPUser user, string source, out string userSettingsEditorUri) { userSettingsEditorUri = null; return(false); //throw new NotImplementedException(); }
protected override bool FillIsUserSettingsPropertyEditable(object providerContext, Microsoft.SharePoint.SPUser user, SPUserSettingsProperty usProperty, out bool isUserEditable) { isUserEditable = true; return(isUserEditable); //throw new NotImplementedException(); }
protected override bool FillIsUserSettingsInitialized(object providerContext, Microsoft.SharePoint.SPUser user, out bool isUserSettingsInitialized) { throw new NotImplementedException(); }