Example #1
0
 /// <remarks/>
 public void GetDocumentSecurityAsync(GetDocumentSecurityRequest GetDocumentSecurityRequest) {
     this.GetDocumentSecurityAsync(GetDocumentSecurityRequest, null);
 }
Example #2
0
 /// <remarks/>
 public void GetDocumentSecurityAsync(GetDocumentSecurityRequest GetDocumentSecurityRequest, object userState) {
     if ((this.GetDocumentSecurityOperationCompleted == null)) {
         this.GetDocumentSecurityOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDocumentSecurityOperationCompleted);
     }
     this.InvokeAsync("GetDocumentSecurity", new object[] {
                 GetDocumentSecurityRequest}, this.GetDocumentSecurityOperationCompleted, userState);
 }
Example #3
0
        static bool getDocumentSecurity(string url, Credentials c, string documentId)
        {
            Console.WriteLine("Getting document security...");

            ArticulateOnline ao = new ArticulateOnline();
            ao.Url = url;
            GetDocumentSecurityRequest request = new GetDocumentSecurityRequest();
            request.Credentials = c;
            request.DocumentID = documentId;

            GetDocumentSecurityResponse response = ao.GetDocumentSecurity(request);
            if (response.Success)
            {
                Console.WriteLine("Privacy: {0}", response.PrivacyOption);
                Console.WriteLine("Allowed users & groups: ");
                foreach (string allowedAccountId in response.AllowedAccountIDs)
                {
                    Console.WriteLine("\t"+allowedAccountId);
                }
            }

            return response.Success;
        }