internal static Uri WebCollectionUrlGetter(IPropertyBag propertyBag) { string sharePointSiteInfo = (string)propertyBag[ADUserSchema.SharePointSiteInfo]; string urlString; string text; TeamMailbox.ParseSharePointSiteInfo(sharePointSiteInfo, out urlString, out text); return(TeamMailbox.GetUrl(urlString)); }
internal static object WebIdGetter(IPropertyBag propertyBag) { string sharePointSiteInfo = (string)propertyBag[ADUserSchema.SharePointSiteInfo]; string text; string guidString; TeamMailbox.ParseSharePointSiteInfo(sharePointSiteInfo, out text, out guidString); return(TeamMailbox.GetGuid(guidString)); }
internal static bool IsPendingDeleteSiteMailbox(ADUser dataObject) { if (dataObject == null) { throw new ArgumentNullException("dataObject"); } DateTime?closedTime = TeamMailbox.FromDataObject(dataObject).ClosedTime; return(((dataObject.DisplayName != null && dataObject.DisplayName.StartsWith("MDEL:")) || (closedTime != null && closedTime.Value.ToUniversalTime() == TeamMailbox.ClosedTimeOfMarkedForDeletion)) && dataObject.SharePointUrl == null); }