Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        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);
        }